-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (34 loc) · 1.28 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (34 loc) · 1.28 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/astral-sh/ruff-pre-commit
rev: 'v0.7.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
exclude: ^(docs/cookbooks/|community_usecase/) # Ignore files under docs/cookbooks and community_usecase
- id: ruff-format
exclude: ^(docs/cookbooks/|community_usecase/) # Ignore files under docs/cookbooks and community_usecase
- repo: local
hooks:
- id: mypy
name: Check mypy
entry: mypy --namespace-packages -p owl
language: python
types: [python]
pass_filenames: false
require_serial: true
exclude: ^(docs/cookbooks/|community_usecase/) # Ignore files under docs/cookbooks and community_usecase
- repo: local
hooks:
- id: check-license
name: Check License
entry: python licenses/update_license.py . licenses/license_template.txt
language: system
types: [python]
exclude: ^(docs/cookbooks/|community_usecase/) # Ignore files under docs/cookbooks and community_usecase
- repo: https://github.com/codespell-project/codespell
# Configuration for codespell is in pyproject.toml
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli # for python_version < '3.11'