Bump test dependencies; improve pycln config (#9197)

This commit is contained in:
Alex Waygood
2022-11-14 19:58:45 +00:00
committed by GitHub
parent 66edd05cf3
commit 263427f438
4 changed files with 10 additions and 6 deletions

View File

@@ -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:

View File

@@ -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 .
```

View File

@@ -55,3 +55,7 @@ extra_standard_library = [
"opcode",
"pyexpat",
]
[tool.pycln]
all = true
disable_all_dunder_policy = true

View File

@@ -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