-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 1.23 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 1.23 KB
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
repos:
- repo: https://github.com/PyCQA/isort
rev: '6.0.0'
hooks:
- id: isort
args: ['--profile=black']
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
hooks:
- id: check-ast
- id: trailing-whitespace
# Poetry hooks removed - using uv for dependency management
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.15.0' # Use the sha / tag you want to point at
hooks:
- id: mypy
# Use same config as CI - read from pyproject.toml
# CI uses: uv run mypy abses/
# This ensures local and CI use identical mypy settings
# Check entire abses/ directory to match CI behavior
pass_filenames: false
args: ["abses/"]
- repo: https://github.com/econchick/interrogate
rev: '1.7.0' # Check for the latest version
hooks:
- id: interrogate
args: [--verbose, --fail-under=70, --ignore-init-module, --ignore-init-method, --ignore-magic, --ignore-private, --ignore-nested-functions]
pass_filenames: false