33
44repos :
55 - repo : https://github.com/pre-commit/pre-commit-hooks
6- rev : v3.2 .0
6+ rev : v4.4 .0
77 hooks :
8- # Forbid files which have a UTF-8 byte-order marker
9- - id : check-byte-order-marker
8+ # Prevent giant files from being committed
9+ - id : check-added-large-files
10+ # Simply check whether files parse as valid python
11+ - id : check-ast
1012 # Require literal syntax when initializing empty or zero Python builtin types
1113 - id : check-builtin-literals
1214 # Check for files that would conflict in case-insensitive filesystems
1315 - id : check-case-conflict
16+ # Checks for a common error of placing code before the docstring
17+ - id : check-docstring-first
1418 # Ensures that (non-binary) executables have a shebang
1519 - id : check-executables-have-shebangs
1620 # Check for files that contain merge conflict strings
1721 - id : check-merge-conflict
22+ # Checks that scripts with shebangs are executable
23+ - id : check-shebang-scripts-are-executable
1824 # Checks for symlinks which do not point to anything
1925 - id : check-symlinks
2026 # This hook checks yaml files for parseable syntax
2127 - id : check-yaml
22- files : .drone.yml
23- # Drone CI config allows and requires multiple documents
24- args : [--allow-multiple-documents]
25- - id : check-yaml
26- exclude : .drone.yml
28+ # Check for debugger imports and py37+ breakpoint() calls in python source
29+ - id : debug-statements
2730 # Detects the presence of private keys
2831 - id : detect-private-key
2932 # Ensures that a file is either empty, or ends with one newline
@@ -37,36 +40,39 @@ repos:
3740 exclude : ^tests/(json|response|xml)/
3841
3942 - repo : https://github.com/pre-commit/pygrep-hooks
40- rev : v1.6 .0
43+ rev : v1.10 .0
4144 hooks :
4245 # Enforce that `noqa` annotations always occur with specific codes
4346 - id : python-check-blanket-noqa
47+ # Enforce that # type: ignore annotations always occur with specific codes
48+ - id : python-check-blanket-type-ignore
4449 # Prevent common mistakes of `assert mck.not_called()`, `assert mck.called_once_with(...)` and `mck.assert_called`
4550 - id : python-check-mock-methods
4651 # A quick check for the `eval()` built-in function
4752 - id : python-no-eval
4853 # A quick check for the deprecated `.warn()` method of python loggers
4954 - id : python-no-log-warn
50- # ToDo: Fix code
51- # # Enforce that python3.6+ type annotations are used instead of type comments
52- # - id: python-use-type-annotations
55+ # Enforce that python3.6+ type annotations are used instead of type comments
56+ - id : python-use-type-annotations
5357 # Detect common mistake of using single backticks when writing rst
5458 - id : rst-backticks
59+ # Detect mistake of rst directive not ending with double colon
60+ - id : rst-directive-colons
5561 # Detect mistake of inline code touching normal text in rst
5662 - id : rst-inline-touching-normal
5763 # Forbid files which have a UTF-8 Unicode replacement character
5864 - id : text-unicode-replacement-char
5965
60- - repo : https://gitlab .com/pycqa /flake8
61- rev : 3.8.2
66+ - repo : https://github .com/PyCQA /flake8
67+ rev : 6.0.0
6268 hooks :
6369 - id : flake8
6470 additional_dependencies :
6571 - flake8-bugbear
6672 - flake8-implicit-str-concat
6773
6874 - repo : https://github.com/pre-commit/mirrors-mypy
69- rev : v0.782
75+ rev : v1.3.0
7076 hooks :
7177 - id : mypy
7278 args : [--no-strict-optional, --ignore-missing-imports, --allow-untyped-global]
@@ -76,7 +82,15 @@ repos:
7682# # The REUSE helper tool assists with achieving and confirming REUSE compliance.
7783# # See: https://reuse.software/
7884# - repo: https://github.com/fsfe/reuse-tool
79- # rev: v0.11.1
85+ # rev: v1.1.2
8086# hooks:
8187# - id: reuse
8288# exclude: ^tests/(json|response|xml)/
89+
90+ ci :
91+ autofix_commit_msg : |
92+ * - auto fixes from pre-commit hooks
93+
94+ for more information, see https://pre-commit.ci
95+ autofix_prs : false
96+ autoupdate_commit_msg : ' ci - pre-commit autoupdate'
0 commit comments