This repository was archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (64 loc) · 1.43 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (64 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
repos:
- repo: local
hooks:
# - id: dead
# name: dead
# entry: dead
# args:
# - "--exclude"
# - "test_data/test_content.py|^deprecated/" # regex separate by "|"
# language: system
# pass_filenames: false
# # types: [python]
- id: black
name: black
language: system
entry: black .
types: [python]
- id: codespell
name: codespell
language: system
entry: codespell
# args:
# - "src/"
# - "tests/"
# - "*.md"
# - "*.py"
# pass_filenames: false
types_or: [python, markdown]
exclude: ^test_data/
- id: ruff
name: ruff
language: system
entry: ruff
args:
# Tell ruff to fix sorting of imports
- "--fix"
- "--format=github"
- "--target-version=py37"
- "."
# types: [python]
pass_filenames: false
# https://jaredkhan.com/blog/mypy-pre-commit
- id: mypy
name: mypy
entry: mypy
language: python
# use your preferred Python version
# language_version: python3.7
# additional_dependencies: ["mypy==0.790"]
types: [python]
# use require_serial so that script
# is only called once per commit
require_serial: true
exclude: ^test_data/|^deprecated
# Print the number of files as a sanity-check
# verbose: true
# - id: pytest
# name: pytest
# language: system
# entry: pytest
# args:
# # - "--durations=10"
# - "-x"
# pass_filenames: false