-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.48 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
# Trims trailing whitespace.
- id: end-of-file-fixer
# Makes sure files end in a newline and only a newline.
- id: check-yaml
# Attempts to load all yaml files to verify syntax.
- id: debug-statements
# Check for debugger imports and py37+ breakpoint() calls in python source.
- id: name-tests-test
args: [--pytest-test-first]
# verifies that test files are named correctly. ensure tests match .*_test\.py
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
# A tool (and pre-commit hook) to automatically add trailing commas to calls and literals.
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
# A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.
args: [--py38-plus]
# Mirror of autopep8 package for pre-commit.
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies: [types-pyyaml]
exclude: ^testing/resources/