-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.28 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
# Note: the last line of multiline regex cannot have the pipe character,
# Otherwise all files will be skipped.
# https://github.com/psf/black/issues/395#issuecomment-499630129
exclude: |
(?x)(
^docs/source/alfacase_definitions/|
^tests/alfacase/test_generate_case_description_docstring/|
^tests/alfacase/test_generate_list_of_units/
)
default_language_version:
python: python3.10
repos:
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
args:
- --application-directories=.:src
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
args:
- --safe
- --quiet
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
- pep8-naming
- flake8-typing-imports==1.14.0
language_version: python3
args:
- --ignore=E,W,N803
- --per-file-ignores=src/alfasim_sdk/_internal/hook_specs.py:F722,F821