Skip to content

Commit 59457cc

Browse files
Update pre-commit
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 <[email protected]>
1 parent e232b78 commit 59457cc

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- tox_env: "py39-pytestlatest"
3232
python: "3.9"
3333
- tox_env: "py310-pytestlatest"
34-
python: "3.10-dev"
34+
python: "3.10"
3535
- tox_env: "py38-pytestmain"
3636
python: "3.8"
3737
- tox_env: "py38-psutil"

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/PyCQA/autoflake
3-
rev: v1.7.6
3+
rev: v1.7.7
44
hooks:
55
- id: autoflake
66
args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"]
77
- repo: https://github.com/psf/black
8-
rev: 22.3.0
8+
rev: 22.10.0
99
hooks:
1010
- id: black
1111
args: [--safe, --quiet, --target-version, py35]
@@ -15,18 +15,18 @@ repos:
1515
- id: blacken-docs
1616
additional_dependencies: [black==20.8b1]
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.2.0
18+
rev: v4.3.0
1919
hooks:
2020
- id: trailing-whitespace
2121
- id: end-of-file-fixer
2222
- id: check-yaml
2323
- id: debug-statements
2424
- repo: https://github.com/PyCQA/flake8
25-
rev: 4.0.1
25+
rev: 5.0.4
2626
hooks:
2727
- id: flake8
2828
- repo: https://github.com/asottile/pyupgrade
29-
rev: v2.32.1
29+
rev: v3.2.0
3030
hooks:
3131
- id: pyupgrade
3232
args: [--py3-plus]
@@ -39,7 +39,7 @@ repos:
3939
language: python
4040
additional_dependencies: [pygments, restructuredtext_lint]
4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: v0.960
42+
rev: v0.982
4343
hooks:
4444
- id: mypy
4545
files: ^(src/|testing/)

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ psutil = psutil>=3.0
6060
setproctitle = setproctitle
6161

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

6567
[mypy]

0 commit comments

Comments
 (0)