Skip to content

Commit 50bb71d

Browse files
s0undt3chflub
authored andcommitted
Update pre-commit hooks
Signed-off-by: Pedro Algarvio <[email protected]>
1 parent 4f07f15 commit 50bb71d

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
repos:
33
- repo: https://github.com/psf/black
4-
rev: 22.3.0
4+
rev: 23.12.1
55
hooks:
66
- id: black
7-
args: [--safe, --quiet, --target-version, py36]
7+
args: [--safe, --quiet, --target-version, py37]
88
- repo: https://github.com/asottile/blacken-docs
9-
rev: v1.12.1
9+
rev: 1.16.0
1010
hooks:
1111
- id: blacken-docs
12-
additional_dependencies: [black==20.8b1]
12+
additional_dependencies: [black==23.12.1]
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.2.0
14+
rev: v4.5.0
1515
hooks:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
@@ -21,34 +21,30 @@ repos:
2121
- id: debug-statements
2222
language_version: python3
2323
- repo: https://github.com/PyCQA/flake8
24-
rev: 4.0.1
24+
rev: 7.0.0
2525
hooks:
2626
- id: flake8
2727
language_version: python3
28-
additional_dependencies: [flake8-typing-imports==1.3.0]
29-
- repo: https://github.com/FalconSocial/pre-commit-mirrors-pep257
30-
rev: v0.3.3
31-
hooks:
32-
- id: pep257
28+
additional_dependencies: [flake8-typing-imports==1.15.0]
3329
- repo: https://github.com/PyCQA/flake8
34-
rev: 4.0.1
30+
rev: 7.0.0
3531
hooks:
3632
- id: flake8
3733
language_version: python3
3834
- repo: https://github.com/asottile/reorder_python_imports
39-
rev: v3.1.0
35+
rev: v3.12.0
4036
hooks:
4137
- id: reorder-python-imports
4238
- repo: https://github.com/asottile/pyupgrade
43-
rev: v2.32.1
39+
rev: v3.15.0
4440
hooks:
4541
- id: pyupgrade
46-
args: [--keep-percent-format, --py36-plus]
42+
args: [--keep-percent-format, --py37-plus]
4743
- repo: https://github.com/pre-commit/pygrep-hooks
48-
rev: v1.9.0
44+
rev: v1.10.0
4945
hooks:
5046
- id: rst-backticks
5147
- repo: https://github.com/adrienverge/yamllint.git
52-
rev: v1.26.3
48+
rev: v1.33.0
5349
hooks:
5450
- id: yamllint

pytest_timeout.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ def is_debugging(trace_func=None):
238238
trace_func = sys.gettrace()
239239
trace_module = None
240240
if trace_func:
241-
trace_module = inspect.getmodule(trace_func) or inspect.getmodule(trace_func.__class__)
241+
trace_module = inspect.getmodule(trace_func) or inspect.getmodule(
242+
trace_func.__class__
243+
)
242244
if trace_module:
243245
parts = trace_module.__name__.split(".")
244246
for name in KNOWN_DEBUGGING_MODULES:

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[pytest]
2-
minversion = 2.8
2+
minversion = 7.0
33
addopts = -ra
44

55
[tox]
@@ -23,5 +23,3 @@ commands = pre-commit run --all-files --show-diff-on-failure
2323
[flake8]
2424
disable-noqa = True
2525
max-line-length = 88
26-
extend-ignore =
27-
E203 # whitespace before : is not PEP8 compliant (& conflicts with black)

0 commit comments

Comments
 (0)