-
Notifications
You must be signed in to change notification settings - Fork 104
/
.pre-commit-config.yaml
65 lines (65 loc) · 1.73 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-symlinks
- id: check-docstring-first
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/pycqa/isort
# Formants, sorts and reorganizes imports
rev: 5.13.2
hooks:
- id: isort
args:
- "--profile"
- "black"
- "--filter-files"
- repo: https://github.com/psf/black
# Code style formatting
rev: 24.8.0
hooks:
- id: black
exclude: (.*/)*snapshots/
- repo: https://github.com/PyCQA/flake8
# Checks the code for PEP8 violations and common pitfals
rev: 7.1.1
hooks:
- id: flake8
exclude: (.*/)*snapshots/
# Ruff is a "fastar than flake8" linter/formatter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
# Run the linter.
- id: ruff
- repo: https://github.com/mattseymour/pre-commit-pytype
rev: '2023.5.8'
hooks:
- id: pytype
# Don't run pytype in an isolated venv or it will fail on imports
language: system
args:
- "-j"
- "auto"
- repo: https://github.com/myint/docformatter
# Formats docstrings following PEP 257
rev: v1.7.5
hooks:
- id: docformatter
args:
- "--in-place"
- "--wrap-summaries"
- "88"
- "--wrap-descriptions"
- "88"
- repo: https://github.com/pycqa/doc8
# sphinx rst style checker
rev: v1.1.2
hooks:
- id: doc8