Skip to content

Commit

Permalink
Update tools config and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
egparedes committed Mar 20, 2024
1 parent 0a9be51 commit b90845d
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 155 deletions.
32 changes: 15 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -----------------------------------------------------------------------
# This file contains 'cog' snippets (https://nedbatchelder.com/code/cog/)
# to keep version numbers in sync with 'constraints.txt'
# -----------------------------------------------------------------------

default_language_version:
python: python3.10
Expand Down Expand Up @@ -42,7 +44,13 @@ repos:
- id: debug-statements

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
##[[[cog
## import re
## version = re.search('ruff==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"rev: v{version}")
##]]]
rev: v0.3.3
##[[[end]]]
hooks:
# Run the linter.
# TODO: include tests here
Expand All @@ -58,9 +66,9 @@ repos:
## version = re.search('mypy==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"#========= FROM constraints.txt: v{version} =========")
##]]]
#========= FROM constraints.txt: v1.8.0 =========
#========= FROM constraints.txt: v1.9.0 =========
##[[[end]]]
rev: v1.8.0 # MUST match version ^^^^ in constraints.txt (if the mirror is up-to-date)
rev: v1.9.0 # MUST match version ^^^^ in constraints.txt (if the mirror is up-to-date)
hooks:
- id: mypy
additional_dependencies: # versions from constraints.txt
Expand All @@ -78,7 +86,7 @@ repos:
##]]]
- astunparse==1.6.3
- attrs==23.2.0
- black==24.2.0
- black==24.3.0
- boltons==23.1.1
- cached-property==1.5.2
- click==8.1.7
Expand All @@ -89,16 +97,16 @@ repos:
- factory-boy==3.3.0
- frozendict==2.4.0
- gridtools-cpp==2.3.2
- importlib-resources==6.1.2
- importlib-resources==6.3.2
- jinja2==3.1.3
- lark==1.1.9
- mako==1.3.2
- nanobind==1.9.2
- ninja==1.11.1.1
- numpy==1.24.4
- packaging==23.2
- packaging==24.0
- pybind11==2.11.1
- setuptools==69.1.1
- setuptools==69.2.0
- tabulate==0.9.0
- typing-extensions==4.5.0
- xxhash==3.0.0
Expand All @@ -112,15 +120,5 @@ repos:
build/.* |
ci/.* |
docs/.* |
tests/conftest.py |
tests/cartesian_tests/.* |
tests/next_tests/unit_tests/.* |
tests/next_tests/integration_tests/multi_feature_tests/.* |
tests/next_tests/integration_tests/feature_tests/ffront_tests/.* |
tests/next_tests/integration_tests/feature_tests/iterator_tests/.* |
tests/next_tests/integration_tests/feature_tests/otf_tests/.* |
tests/next_tests/integration_tests/feature_tests/math_builtin_test_data.py |
tests/next_tests/past_common_fixtures.py |
tests/next_tests/toy_connectivity.py |
tests/.*
)$
116 changes: 58 additions & 58 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ astunparse==1.6.3 ; python_version < "3.9" # via dace, gt4py (pyproject.toml)
attrs==23.2.0 # via flake8-bugbear, flake8-eradicate, gt4py (pyproject.toml), hypothesis, jsonschema, referencing
babel==2.14.0 # via sphinx
backcall==0.2.0 # via ipython
black==24.2.0 # via gt4py (pyproject.toml)
black==24.3.0 # via gt4py (pyproject.toml)
blinker==1.7.0 # via flask
boltons==23.1.1 # via gt4py (pyproject.toml)
build==1.0.3 # via pip-tools
build==1.1.1 # via pip-tools
cached-property==1.5.2 # via gt4py (pyproject.toml)
cachetools==5.3.3 # via tox
certifi==2024.2.2 # via requests
cffi==1.16.0 # via cryptography
cfgv==3.4.0 # via pre-commit
chardet==5.2.0 # via tox
charset-normalizer==3.3.2 # via requests
clang-format==17.0.6 # via -r requirements-dev.in, gt4py (pyproject.toml)
clang-format==18.1.1 # via -r requirements-dev.in, gt4py (pyproject.toml)
click==8.1.7 # via black, flask, gt4py (pyproject.toml), pip-tools
cmake==3.28.3 # via gt4py (pyproject.toml)
cogapp==3.3.0 # via -r requirements-dev.in
cogapp==3.4.1 # via -r requirements-dev.in
colorama==0.4.6 # via tox
comm==0.2.1 # via ipykernel
comm==0.2.2 # via ipykernel
contourpy==1.1.1 # via matplotlib
coverage==7.4.3 # via -r requirements-dev.in, pytest-cov
coverage==7.4.4 # via -r requirements-dev.in, pytest-cov
cryptography==42.0.5 # via types-paramiko, types-pyopenssl, types-redis
cycler==0.12.1 # via matplotlib
cytoolz==0.12.3 # via gt4py (pyproject.toml)
Expand All @@ -47,7 +47,7 @@ exceptiongroup==1.2.0 # via hypothesis, pytest
execnet==2.0.2 # via pytest-cache, pytest-xdist
executing==2.0.1 # via devtools, stack-data
factory-boy==3.3.0 # via gt4py (pyproject.toml), pytest-factoryboy
faker==23.2.1 # via factory-boy
faker==24.3.0 # via factory-boy
fastjsonschema==2.19.1 # via nbformat
filelock==3.13.1 # via tox, virtualenv
flake8==7.0.0 # via -r requirements-dev.in, flake8-bugbear, flake8-builtins, flake8-debugger, flake8-docstrings, flake8-eradicate, flake8-mutable, flake8-pyproject, flake8-rst-docstrings
Expand All @@ -60,16 +60,16 @@ flake8-mutable==1.2.0 # via -r requirements-dev.in
flake8-pyproject==1.2.3 # via -r requirements-dev.in
flake8-rst-docstrings==0.3.0 # via -r requirements-dev.in
flask==3.0.2 # via dace
fonttools==4.49.0 # via matplotlib
fonttools==4.50.0 # via matplotlib
fparser==0.1.4 # via dace
frozendict==2.4.0 # via gt4py (pyproject.toml)
gridtools-cpp==2.3.2 # via gt4py (pyproject.toml)
hypothesis==6.98.13 # via -r requirements-dev.in, gt4py (pyproject.toml)
hypothesis==6.99.9 # via -r requirements-dev.in, gt4py (pyproject.toml)
identify==2.5.35 # via pre-commit
idna==3.6 # via requests
imagesize==1.4.1 # via sphinx
importlib-metadata==7.0.1 # via build, flask, jax, jupyter-client, sphinx
importlib-resources==6.1.2 ; python_version < "3.9" # via gt4py (pyproject.toml), jsonschema, jsonschema-specifications, matplotlib
importlib-metadata==7.0.2 # via build, flask, jax, jupyter-client, sphinx
importlib-resources==6.3.2 ; python_version < "3.9" # via gt4py (pyproject.toml), jsonschema, jsonschema-specifications, matplotlib
inflection==0.5.1 # via pytest-factoryboy
iniconfig==2.0.0 # via pytest
ipykernel==6.29.3 # via nbmake
Expand All @@ -82,8 +82,8 @@ jedi==0.19.1 # via ipython
jinja2==3.1.3 # via flask, gt4py (pyproject.toml), sphinx
jsonschema==4.21.1 # via nbformat
jsonschema-specifications==2023.12.1 # via jsonschema
jupyter-client==8.6.0 # via ipykernel, nbclient
jupyter-core==5.7.1 # via ipykernel, jupyter-client, nbformat
jupyter-client==8.6.1 # via ipykernel, nbclient
jupyter-core==5.7.2 # via ipykernel, jupyter-client, nbformat
jupytext==1.16.1 # via -r requirements-dev.in
kiwisolver==1.4.5 # via matplotlib
lark==1.1.9 # via gt4py (pyproject.toml)
Expand All @@ -97,27 +97,27 @@ mdit-py-plugins==0.4.0 # via jupytext
mdurl==0.1.2 # via markdown-it-py
ml-dtypes==0.2.0 # via jax, jaxlib
mpmath==1.3.0 # via sympy
mypy==1.8.0 # via -r requirements-dev.in
mypy==1.9.0 # via -r requirements-dev.in
mypy-extensions==1.0.0 # via black, mypy
nanobind==1.9.2 # via gt4py (pyproject.toml)
nbclient==0.6.8 # via nbmake
nbformat==5.9.2 # via jupytext, nbclient, nbmake
nbmake==1.5.0 # via -r requirements-dev.in
nbformat==5.10.3 # via jupytext, nbclient, nbmake
nbmake==1.5.3 # via -r requirements-dev.in
nest-asyncio==1.6.0 # via ipykernel, nbclient
networkx==3.1 # via dace
ninja==1.11.1.1 # via gt4py (pyproject.toml)
nodeenv==1.8.0 # via pre-commit
numpy==1.24.4 # via contourpy, dace, gt4py (pyproject.toml), jax, jaxlib, matplotlib, ml-dtypes, opt-einsum, scipy, types-jack-client
opt-einsum==3.3.0 # via jax
ordered-set==4.1.0 # via deepdiff
packaging==23.2 # via black, build, gt4py (pyproject.toml), ipykernel, jupytext, matplotlib, pyproject-api, pytest, setuptools-scm, sphinx, tox
packaging==24.0 # via black, build, gt4py (pyproject.toml), ipykernel, jupytext, matplotlib, pyproject-api, pytest, pytest-factoryboy, setuptools-scm, sphinx, tox
parso==0.8.3 # via jedi
pathspec==0.12.1 # via black
pexpect==4.9.0 # via ipython
pickleshare==0.7.5 # via ipython
pillow==10.2.0 # via matplotlib
pip-tools==7.4.0 # via -r requirements-dev.in
pipdeptree==2.15.1 # via -r requirements-dev.in
pip-tools==7.4.1 # via -r requirements-dev.in
pipdeptree==2.16.1 # via -r requirements-dev.in
pkgutil-resolve-name==1.3.10 # via jsonschema
platformdirs==4.2.0 # via black, jupyter-core, tox, virtualenv
pluggy==1.4.0 # via pytest, tox
Expand All @@ -133,23 +133,23 @@ pycparser==2.21 # via cffi
pydocstyle==6.3.0 # via flake8-docstrings
pyflakes==3.2.0 # via flake8
pygments==2.17.2 # via -r requirements-dev.in, devtools, flake8-rst-docstrings, ipython, nbmake, sphinx
pyparsing==3.1.1 # via matplotlib
pyparsing==3.1.2 # via matplotlib
pyproject-api==1.6.1 # via tox
pyproject-hooks==1.0.0 # via build, pip-tools
pytest==8.0.2 # via -r requirements-dev.in, gt4py (pyproject.toml), nbmake, pytest-cache, pytest-cov, pytest-factoryboy, pytest-xdist
pytest==8.1.1 # via -r requirements-dev.in, gt4py (pyproject.toml), nbmake, pytest-cache, pytest-cov, pytest-factoryboy, pytest-xdist
pytest-cache==1.0 # via -r requirements-dev.in
pytest-cov==4.1.0 # via -r requirements-dev.in
pytest-factoryboy==2.6.0 # via -r requirements-dev.in
pytest-factoryboy==2.7.0 # via -r requirements-dev.in
pytest-xdist==3.5.0 # via -r requirements-dev.in
python-dateutil==2.8.2 # via faker, jupyter-client, matplotlib
python-dateutil==2.9.0.post0 # via faker, jupyter-client, matplotlib
pytz==2024.1 # via babel
pyyaml==6.0.1 # via dace, jupytext, pre-commit
pyzmq==25.1.2 # via ipykernel, jupyter-client
referencing==0.33.0 # via jsonschema, jsonschema-specifications
referencing==0.34.0 # via jsonschema, jsonschema-specifications
requests==2.31.0 # via dace, sphinx
restructuredtext-lint==1.4.0 # via flake8-rst-docstrings
rpds-py==0.18.0 # via jsonschema, referencing
ruff==0.2.2 # via -r requirements-dev.in
ruff==0.3.3 # via -r requirements-dev.in
scipy==1.10.1 # via gt4py (pyproject.toml), jax, jaxlib
setuptools-scm==8.0.4 # via fparser
six==1.16.0 # via asttokens, astunparse, python-dateutil
Expand All @@ -171,34 +171,34 @@ toml==0.10.2 # via jupytext
tomli==2.0.1 ; python_version < "3.11" # via -r requirements-dev.in, black, build, coverage, flake8-pyproject, mypy, pip-tools, pyproject-api, pyproject-hooks, pytest, setuptools-scm, tox
toolz==0.12.1 # via cytoolz
tornado==6.4 # via ipykernel, jupyter-client
tox==4.13.0 # via -r requirements-dev.in
traitlets==5.14.1 # via comm, ipykernel, ipython, jupyter-client, jupyter-core, matplotlib-inline, nbclient, nbformat
types-aiofiles==23.2.0.20240106 # via types-all
tox==4.14.1 # via -r requirements-dev.in
traitlets==5.14.2 # via comm, ipykernel, ipython, jupyter-client, jupyter-core, matplotlib-inline, nbclient, nbformat
types-aiofiles==23.2.0.20240311 # via types-all
types-all==1.0.0 # via -r requirements-dev.in
types-annoy==1.17.8.4 # via types-all
types-atomicwrites==1.4.5.1 # via types-all
types-backports==0.1.3 # via types-all
types-backports-abc==0.5.2 # via types-all
types-bleach==6.1.0.20240222 # via types-all
types-bleach==6.1.0.20240311 # via types-all
types-boto==2.49.18.20240205 # via types-all
types-cachetools==5.3.0.7 # via types-all
types-certifi==2021.10.8.3 # via types-all
types-cffi==1.16.0.20240106 # via types-jack-client
types-cffi==1.16.0.20240311 # via types-jack-client
types-characteristic==14.3.7 # via types-all
types-chardet==5.0.4.6 # via types-all
types-click==7.1.8 # via types-all, types-flask
types-click-spinner==0.1.13.20240106 # via types-all
types-colorama==0.4.15.20240205 # via types-all
types-click-spinner==0.1.13.20240311 # via types-all
types-colorama==0.4.15.20240311 # via types-all
types-contextvars==2.4.7.3 # via types-all
types-croniter==2.0.0.20240106 # via types-all
types-croniter==2.0.0.20240318 # via types-all
types-cryptography==3.3.23.2 # via types-all, types-openssl-python, types-pyjwt
types-dataclasses==0.6.6 # via types-all
types-dateparser==1.1.4.20240106 # via types-all
types-datetimerange==2.0.0.6 # via types-all
types-decorator==5.1.8.20240106 # via types-all
types-deprecated==1.2.9.20240106 # via types-all
types-decorator==5.1.8.20240310 # via types-all
types-deprecated==1.2.9.20240311 # via types-all
types-docopt==0.6.11.4 # via types-all
types-docutils==0.20.0.20240227 # via types-all
types-docutils==0.20.0.20240317 # via types-all
types-emoji==2.1.0.3 # via types-all
types-enum34==1.1.8 # via types-all
types-fb303==1.0.0 # via types-all, types-scribe
Expand All @@ -209,53 +209,53 @@ types-freezegun==1.1.10 # via types-all
types-frozendict==2.0.9 # via types-all
types-futures==3.3.8 # via types-all
types-geoip2==3.0.0 # via types-all
types-html5lib==1.1.11.20240222 # via types-bleach
types-html5lib==1.1.11.20240228 # via types-bleach
types-ipaddress==1.0.8 # via types-all, types-maxminddb
types-itsdangerous==1.1.6 # via types-all
types-jack-client==0.5.10.20240106 # via types-all
types-jinja2==2.11.9 # via types-all, types-flask
types-kazoo==0.1.3 # via types-all
types-markdown==3.5.0.20240129 # via types-all
types-markdown==3.6.0.20240316 # via types-all
types-markupsafe==1.1.10 # via types-all, types-jinja2
types-maxminddb==1.5.0 # via types-all, types-geoip2
types-mock==5.1.0.20240106 # via types-all
types-mypy-extensions==1.0.0.5 # via types-all
types-mock==5.1.0.20240311 # via types-all
types-mypy-extensions==1.0.0.20240311 # via types-all
types-nmap==0.1.6 # via types-all
types-openssl-python==0.1.3 # via types-all
types-orjson==3.6.2 # via types-all
types-paramiko==3.4.0.20240205 # via types-all, types-pysftp
types-paramiko==3.4.0.20240311 # via types-all, types-pysftp
types-pathlib2==2.3.0 # via types-all
types-pillow==10.2.0.20240213 # via types-all
types-pillow==10.2.0.20240311 # via types-all
types-pkg-resources==0.1.3 # via types-all
types-polib==1.2.0.20240115 # via types-all
types-protobuf==4.24.0.20240129 # via types-all
types-protobuf==4.24.0.20240311 # via types-all
types-pyaudio==0.2.16.20240106 # via types-all
types-pycurl==7.45.2.20240106 # via types-all
types-pyfarmhash==0.3.1.2 # via types-all
types-pycurl==7.45.2.20240311 # via types-all
types-pyfarmhash==0.3.1.20240311 # via types-all
types-pyjwt==1.7.1 # via types-all
types-pymssql==2.1.0 # via types-all
types-pymysql==1.1.0.1 # via types-all
types-pyopenssl==24.0.0.20240130 # via types-redis
types-pyopenssl==24.0.0.20240311 # via types-redis
types-pyrfc3339==1.1.1.5 # via types-all
types-pysftp==0.2.17.20240106 # via types-all
types-python-dateutil==2.8.19.20240106 # via types-all, types-datetimerange
types-python-dateutil==2.9.0.20240316 # via types-all, types-datetimerange
types-python-gflags==3.1.7.3 # via types-all
types-python-slugify==8.0.2.20240127 # via types-all
types-python-slugify==8.0.2.20240310 # via types-all
types-pytz==2024.1.0.20240203 # via types-all, types-tzlocal
types-pyvmomi==8.0.0.6 # via types-all
types-pyyaml==6.0.12.12 # via types-all
types-redis==4.6.0.20240218 # via types-all
types-requests==2.31.0.20240218 # via types-all
types-pyyaml==6.0.12.20240311 # via types-all
types-redis==4.6.0.20240311 # via types-all
types-requests==2.31.0.20240311 # via types-all
types-retry==0.9.9.4 # via types-all
types-routes==2.5.0 # via types-all
types-scribe==2.0.0 # via types-all
types-setuptools==69.1.0.20240223 # via types-cffi
types-simplejson==3.19.0.20240218 # via types-all
types-setuptools==69.2.0.20240317 # via types-cffi
types-simplejson==3.19.0.20240310 # via types-all
types-singledispatch==4.1.0.0 # via types-all
types-six==1.16.21.20240106 # via types-all
types-six==1.16.21.20240311 # via types-all
types-tabulate==0.9.0.20240106 # via types-all
types-termcolor==1.1.6.2 # via types-all
types-toml==0.10.8.7 # via types-all
types-toml==0.10.8.20240310 # via types-all
types-tornado==5.1.1 # via types-all
types-typed-ast==1.5.8.7 # via types-all
types-tzlocal==5.1.0.1 # via types-all
Expand All @@ -269,10 +269,10 @@ virtualenv==20.25.1 # via pre-commit, tox
wcwidth==0.2.13 # via prompt-toolkit
websockets==12.0 # via dace
werkzeug==3.0.1 # via flask
wheel==0.42.0 # via astunparse, pip-tools
wheel==0.43.0 # via astunparse, pip-tools
xxhash==3.0.0 # via gt4py (pyproject.toml)
zipp==3.17.0 # via importlib-metadata, importlib-resources
zipp==3.18.1 # via importlib-metadata, importlib-resources

# The following packages are considered to be unsafe in a requirements file:
pip==24.0 # via pip-tools
setuptools==69.1.1 # via gt4py (pyproject.toml), nodeenv, pip-tools, setuptools-scm
setuptools==69.2.0 # via gt4py (pyproject.toml), nodeenv, pip-tools, setuptools-scm
2 changes: 1 addition & 1 deletion min-extra-requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pytest-cov==2.8
pytest-factoryboy==2.0.3
pytest-xdist[psutil]==2.4
pytest==7.0
ruff==0.2.0
ruff==0.3.2
scipy==1.9.2
setuptools==65.5.0
sphinx==4.4
Expand Down
2 changes: 1 addition & 1 deletion min-requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pytest-cov==2.8
pytest-factoryboy==2.0.3
pytest-xdist[psutil]==2.4
pytest==7.0
ruff==0.2.0
ruff==0.3.2
setuptools==65.5.0
sphinx==4.4
sphinx_rtd_theme==1.0
Expand Down
Loading

0 comments on commit b90845d

Please sign in to comment.