Skip to content

Commit

Permalink
style: update requirements and change ruff-format style to stable (#1517
Browse files Browse the repository at this point in the history
)

Bump requirements' versions, update ruff format style and apply changes.

To reproduce code style changes locally, bump ruff version (either run
`tox run -e requirements-base`, which requires python3.8 or update ruff
pre-commit hook in `.pre-commit-config.yaml` to `v0.3.5`), remove
`preview = true` setting in the ruff configuration (in `pyproject.toml`,
inside the `[[tool.ruff.format]]` table) and run ruff-format.

In a following PR (#1518) the format will be changed to reduce vertical
space usage.
  • Loading branch information
egparedes authored Apr 3, 2024
1 parent 7d14a27 commit fb37a58
Show file tree
Hide file tree
Showing 50 changed files with 968 additions and 817 deletions.
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repos:
## version = re.search('ruff==([0-9\.]*)', open("constraints.txt").read())[1]
## print(f"rev: v{version}")
##]]]
rev: v0.2.0
rev: v0.3.5
##[[[end]]]
hooks:
# Run the linter.
Expand All @@ -66,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 @@ -86,27 +86,27 @@ repos:
##]]]
- astunparse==1.6.3
- attrs==23.2.0
- black==24.2.0
- boltons==23.1.1
- black==24.3.0
- boltons==24.0.0
- cached-property==1.5.2
- click==8.1.7
- cmake==3.28.3
- cmake==3.29.0.1
- cytoolz==0.12.3
- deepdiff==6.7.1
- devtools==0.12.2
- factory-boy==3.3.0
- frozendict==2.4.0
- frozendict==2.4.1
- gridtools-cpp==2.3.2
- importlib-resources==6.1.2
- importlib-resources==6.4.0
- 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
- pybind11==2.11.1
- setuptools==69.1.1
- packaging==24.0
- pybind11==2.12.0
- setuptools==69.2.0
- tabulate==0.9.0
- typing-extensions==4.5.0
- xxhash==3.0.0
Expand Down
161 changes: 85 additions & 76 deletions constraints.txt

Large diffs are not rendered by default.

Loading

0 comments on commit fb37a58

Please sign in to comment.