Skip to content

Commit c9c6aac

Browse files
extended pre-commit-config.yaml
1 parent 1203a06 commit c9c6aac

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ share/python-wheels/
2626
.installed.cfg
2727
*.egg
2828
MANIFEST
29+
_version.py
2930

3031
# PyInstaller
3132
# Usually these files are written by a python script from a template

.pre-commit-config.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,31 @@ repos:
55
# all available hooks can be found here: https://github.com/pre-commit/pre-commit-hooks/blob/main/.pre-commit-hooks.yaml
66
- id: check-yaml
77
- id: check-ast
8+
- id: check-toml
89
- id: check-docstring-first
910
- id: check-case-conflict
1011
- id: check-merge-conflict
1112
- id: check-added-large-files
1213
args: ["--maxkb=500"]
14+
- id: check-executables-have-shebangs
1315
- id: trailing-whitespace
1416
- id: fix-byte-order-marker
1517
- id: fix-encoding-pragma
1618
- id: requirements-txt-fixer
19+
- id: mixed-line-ending
20+
- id: name-tests-test
21+
args: ["--pytest-test-first"]
1722
- id: end-of-file-fixer
18-
- id: check-executables-have-shebangs
23+
- id: pretty-format-json
1924
- id: detect-private-key
25+
- repo: https://github.com/pre-commit/pygrep-hooks
26+
rev: v1.10.0
27+
hooks:
28+
- id: python-use-type-annotations
29+
- id: rst-backticks
30+
# - id: rst-inline-touching-normal
31+
- id: rst-directive-colons
32+
- id: text-unicode-replacement-char
2033
- repo: https://github.com/psf/black
2134
rev: 23.1.0
2235
hooks:

0 commit comments

Comments
 (0)