Skip to content

Commit 5d546f8

Browse files
pre-commit-ci[bot]gaborbernat
authored andcommitted
[pre-commit.ci] pre-commit autoupdate
updates: - [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](asottile/pyupgrade@v2.37.2...v2.37.3) - [github.com/asottile/setup-cfg-fmt: v1.20.2 → v2.0.0](asottile/setup-cfg-fmt@v1.20.2...v2.0.0) - [github.com/PyCQA/flake8: 4.0.1 → 5.0.2](PyCQA/flake8@4.0.1...5.0.2) Signed-off-by: Bernát Gábor <[email protected]>
1 parent e3894f6 commit 5d546f8

File tree

4 files changed

+26
-43
lines changed

4 files changed

+26
-43
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v2.37.2
15+
rev: v2.37.3
1616
hooks:
1717
- id: pyupgrade
1818
args: [ "--py36-plus" ]
@@ -29,30 +29,29 @@ repos:
2929
rev: v1.12.1
3030
hooks:
3131
- id: blacken-docs
32-
additional_dependencies: [ black==21.12b0 ]
32+
additional_dependencies: [ black==22.6.0 ]
3333
- repo: https://github.com/pre-commit/pygrep-hooks
3434
rev: v1.9.0
3535
hooks:
3636
- id: rst-backticks
37+
- repo: https://github.com/asottile/setup-cfg-fmt
38+
rev: v2.0.0
39+
hooks:
40+
- id: setup-cfg-fmt
3741
- repo: https://github.com/tox-dev/tox-ini-fmt
3842
rev: "0.5.2"
3943
hooks:
4044
- id: tox-ini-fmt
4145
args: [ "-p", "fix_lint" ]
42-
- repo: https://github.com/asottile/setup-cfg-fmt
43-
rev: v1.20.2
44-
hooks:
45-
- id: setup-cfg-fmt
46-
args: [ --min-py3-version, "3.7", "--max-py-version", "3.10" ]
4746
- repo: https://github.com/PyCQA/flake8
48-
rev: 4.0.1
47+
rev: 5.0.3
4948
hooks:
5049
- id: flake8
5150
additional_dependencies:
52-
- flake8-bugbear==21.11.29
53-
- flake8-comprehensions==3.7
54-
- flake8-pytest-style==1.6
55-
- flake8-spellcheck==0.24
56-
- flake8-unused-arguments==0.0.9
57-
- flake8-noqa==1.2.1
58-
- pep8-naming==0.12.1
51+
- flake8-bugbear==22.7.1
52+
- flake8-comprehensions==3.10.0
53+
- flake8-pytest-style==1.6.0
54+
- flake8-spellcheck==0.28.0
55+
- flake8-unused-arguments==0.0.11
56+
- flake8-noqa==1.2.8
57+
- pep8-naming==0.13.1

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ classifiers =
1616
Programming Language :: Python
1717
Programming Language :: Python :: 3
1818
Programming Language :: Python :: 3 :: Only
19-
Programming Language :: Python :: 3.7
20-
Programming Language :: Python :: 3.8
21-
Programming Language :: Python :: 3.9
22-
Programming Language :: Python :: 3.10
2319
Topic :: Internet
2420
Topic :: Software Development :: Libraries
2521
Topic :: System

tox.ini

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ passenv =
4040
basepython = python3.10
4141
skip_install = true
4242
deps =
43-
pre-commit>=2
43+
pre-commit>=2.20
4444
commands =
4545
pre-commit run --all-files --show-diff-on-failure
4646
python -c 'import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
@@ -50,7 +50,7 @@ description = run type check on code base
5050
setenv =
5151
{tty:MYPY_FORCE_COLOR = 1}
5252
deps =
53-
mypy==0.930
53+
mypy==0.971
5454
commands =
5555
mypy --strict src/filelock
5656
mypy --strict tests
@@ -63,9 +63,9 @@ setenv =
6363
COVERAGE_FILE = {toxworkdir}/.coverage
6464
skip_install = true
6565
deps =
66-
covdefaults>=2.1
67-
coverage>=6.2
68-
diff-cover>=6.4
66+
covdefaults>=2.2
67+
coverage>=6.4
68+
diff-cover>=6.5
6969
extras =
7070
parallel_show_output = true
7171
commands =
@@ -94,8 +94,8 @@ commands =
9494
description = check that the long description is valid (need for PyPI)
9595
skip_install = true
9696
deps =
97-
build>=0.6
98-
twine>=3
97+
build[virtualenv]>=0.8
98+
twine>=4
9999
extras =
100100
commands =
101101
pyproject-build -o {envtmpdir} --wheel --sdist .
@@ -114,6 +114,8 @@ commands =
114114
[flake8]
115115
max-complexity = 22
116116
max-line-length = 120
117+
noqa-require-code = true
118+
dictionaries = en_US,python,technical,django
117119

118120
[pep8]
119121
max-line-length = 120

whitelist.txt

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ autoclass
22
autodoc
33
autosectionlabel
44
caplog
5-
creat
65
eacces
7-
eexist
8-
enoent
9-
exc
106
extlinks
117
favicon
12-
fcntl
138
filelock
14-
fmt
9+
frameinfo
1510
fspath
11+
getframeinfo
1612
intersphinx
1713
intervall
1814
isabstract
@@ -21,26 +17,16 @@ iwoth
2117
iwusr
2218
levelno
2319
lk
24-
lockfile
2520
msvcrt
2621
nblck
2722
nitpicky
2823
notset
29-
param
30-
pathlib
3124
pygments
3225
rdwr
3326
ro
34-
runtime
3527
skipif
36-
tmp
28+
stacklevel
3729
trunc
3830
typehints
3931
unlck
40-
util
4132
win32
42-
wronly
43-
stacklevel
44-
frameinfo
45-
getframeinfo
46-
lineno

0 commit comments

Comments
 (0)