-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 915 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 915 Bytes
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
default_language_version:
python: python3
exclude: ^notebooks/
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.13.3
hooks:
# Run the linter.
- id: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
hooks:
- id: mypy
files: ^src/
args:
- --namespace-packages
- --explicit-package-bases
additional_dependencies:
- tokenize-rt==4.1.0
- types-pkg_resources==0.1.2
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: codespell
language: python
types: [text]
args: [
--ignore-words-list, 'titel,statics,ba,nd,te,mater,commun,vise,dscribe',
--skip, "*.ipynb,./tests,*paper*",
]