forked from BiomedSciAI/biomed-multi-alignment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (43 loc) · 1.13 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
exclude: .*\.pdb$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
# - repo: https://github.com/PyCQA/flake8
# rev: 5.0.4
# hooks:
# - id: flake8
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.5
hooks:
- id: ruff
args:
- "--fix"
- "--select"
- "UP,PT,I,E"#,F,W,C90,I,N,F405,E402" # Specify the rules to select
- "--line-length"
- "88"
- "--exit-non-zero-on-fix"
- "--ignore"
- "F405,F403,E501,E402,PT018,PT015,E722,E741"
types_or: [ python, pyi] #, jupyter ]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.950
# hooks:
# - id: mypy
# - repo: https://github.com/srstevenson/nb-clean
# rev: "2.4.0"
# hooks:
# - id: nb-clean
# args:
# - --remove-empty-cells
# - --preserve-cell-outputs