-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.05 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
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
args: ['--fix=no']
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: python
pass_filenames: false
always_run: true
args: ["-p", "pysnapping"]
- id: pip-compile
name: pip-compile
entry: pip-compile pyproject.toml
language: python
pass_filenames: false
files: 'pyproject\.toml|requirements\.txt'
- id: pip-compile-dev-requirements
name: pip-compile-dev-requirements
entry: pip-compile dev-requirements.in
language: python
pass_filenames: false
files: '(dev-)?requirements\.(in|txt)'