forked from tjcsl/othello-tourney
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (28 loc) · 810 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (28 loc) · 810 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
default_stages: [pre-commit, pre-push]
fail_fast: false
exclude: ^othello/(static/.*vendor|.*migrations)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
name: validate python
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-toml
- id: detect-private-key
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
files: ^.*\.(py|md|rst)$
args: ["--ignore-words=.codespell-ignore.txt"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.13
hooks:
- id: ruff
args: [ "--fix", "--exit-non-zero-on-fix" ]
files: ^othello/.*
name: ruff lint
- id: ruff-format