-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (46 loc) · 1.07 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (46 loc) · 1.07 KB
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
default_language_version:
python: python3
repos:
- repo: local
hooks:
- id: check-changelog-entries
name: Check Changelog Entries
entry: python .pre-commit-hooks/check_changelog_entries.py
language: system
- repo: local
hooks:
- id: check-copyright-headers
name: Check python modules for appropriate copyright headers
files: ^.*\.py$
exclude: setup\.py
entry: python .pre-commit-hooks/copyright_headers.py
language: system
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
exclude: ^(\.pre-commit-hooks/.*\.py)$
additional_dependencies:
- flake8-mypy-fork
- flake8-docstrings
- flake8-typing-imports
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
args:
- --strict
- --config-file=pyproject.toml
- relenv/
- tests/
additional_dependencies:
- types-requests
pass_filenames: false