Skip to content

Commit

Permalink
Update pre-commit
Browse files Browse the repository at this point in the history
Also:

* Configure flake8 to ignore formatting-related problems (let black worry about them).
* Fix reference to Python 3.10 in CI,

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
  • Loading branch information
graingert and nicoddemus authored Nov 5, 2022
1 parent e232b78 commit 59457cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- tox_env: "py39-pytestlatest"
python: "3.9"
- tox_env: "py310-pytestlatest"
python: "3.10-dev"
python: "3.10"
- tox_env: "py38-pytestmain"
python: "3.8"
- tox_env: "py38-psutil"
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/PyCQA/autoflake
rev: v1.7.6
rev: v1.7.7
hooks:
- id: autoflake
args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"]
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.10.0
hooks:
- id: black
args: [--safe, --quiet, --target-version, py35]
Expand All @@ -15,18 +15,18 @@ repos:
- id: blacken-docs
additional_dependencies: [black==20.8b1]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 5.0.4
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
rev: v3.2.0
hooks:
- id: pyupgrade
args: [--py3-plus]
Expand All @@ -39,7 +39,7 @@ repos:
language: python
additional_dependencies: [pygments, restructuredtext_lint]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.960
rev: v0.982
hooks:
- id: mypy
files: ^(src/|testing/)
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ psutil = psutil>=3.0
setproctitle = setproctitle

[flake8]
# Ignore any errors related to formatting, let black worry/fix them.
ignore = E501, W503, E203
max-line-length = 100

[mypy]
Expand Down

0 comments on commit 59457cc

Please sign in to comment.