-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
34 lines (34 loc) · 1.03 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml # checks for correct yaml syntax for github actions ex.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --ignore=E501]
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/crate-ci/typos
rev: v1.27.0
hooks:
- id: typos
files: \.(py|md|rst|yaml|toml)
# empty to do not write fixes
args: []
exclude: pyproject.toml
# mypy will force you to type your code ;)
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.910-1
# hooks:
# - id: mypy
# language: python
# args: [--strict, --ignore-missing-imports]
# additional_dependencies: ['types-requests', 'types-PyYAML']
# exclude: docs/source/conf.py