-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (25 loc) · 854 Bytes
/
.pre-commit-config.yaml
File metadata and controls
28 lines (25 loc) · 854 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
exclude: '.*\.ipynb$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
args: ['--unsafe']
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: 'cassettes/'
- repo: local
hooks:
- id: lint
name: lint
entry: bash -c 'cd "$PWD" && if [ -f .venv/bin/ruff ] && [ -f .venv/bin/mypy ]; then .venv/bin/ruff check shellrecharge && .venv/bin/mypy shellrecharge; else (pdm run ruff check shellrecharge 2>/dev/null || python3 -m pdm run ruff check shellrecharge) && (pdm run mypy shellrecharge 2>/dev/null || python3 -m pdm run mypy shellrecharge); fi'
types: [python]
language: system
pass_filenames: false