-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.09 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
# 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/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- 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