generated from ApeWorX/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (34 loc) · 1.14 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ["--maxkb=3500"]
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-docstring-first
- id: debug-statements
- id: check-ast
- id: check-toml
- id: check-yaml
args: ['--unsafe'] # needed for !! tags in mkdocs.yml
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
# Ruff replaces black, flake8, autoflake, isort and more
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.4.10'
hooks:
- id: ruff
- id: ruff-format
args: [--check, --config, ./pyproject.toml]
# * Commenting it bcz it's messing the github jekyll format
# - repo: https://github.com/executablebooks/mdformat
# rev: 0.7.17
# hooks:
# - id: mdformat
# additional_dependencies: [mdformat-gfm, mdformat-frontmatter, mdformat-pyproject]
# args: ["README.md", "docs/examples.md"]
default_language_version:
python: python3