Skip to content

Commit

Permalink
Bump test dependencies; improve pycln config (#9197)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Nov 14, 2022
1 parent 66edd05 commit 263427f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
repos:
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.1 # must match requirements-tests.txt
rev: v2.1.2 # must match requirements-tests.txt
hooks:
- id: pycln
args: [--all, stubs, stdlib, tests, scripts]
args: [--config=pyproject.toml, stubs, stdlib, tests, scripts]
- repo: https://github.com/psf/black
rev: 22.10.0 # must match requirements-tests.txt
hooks:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ That being said, if you *want* to run the checks locally when you commit,
you're free to do so. Either run `pycln`, `black` and `isort` manually...

```
pycln --all .
pycln --config=pyproject.toml .
isort .
black .
```
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ extra_standard_library = [
"opcode",
"pyexpat",
]

[tool.pycln]
all = true
disable_all_dunder_policy = true
6 changes: 3 additions & 3 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ flake8-bugbear==22.10.27 # must match .pre-commit-config.yaml
flake8-noqa==1.2.9 # must match .pre-commit-config.yaml
flake8-pyi==22.10.0 # must match .pre-commit-config.yaml
isort==5.10.1 # must match .pre-commit-config.yaml
mypy==0.990
mypy==0.991
packaging==21.3
pathspec
pycln==2.1.1 # must match .pre-commit-config.yaml
pycln==2.1.2 # must match .pre-commit-config.yaml
pyyaml==6.0
pytype==2022.10.26; platform_system != "Windows" and python_version < "3.11"
pytype==2022.11.10; platform_system != "Windows" and python_version < "3.11"
termcolor>=2
tomli==2.0.1
tomlkit==0.11.6
Expand Down

0 comments on commit 263427f

Please sign in to comment.