2023-03-05 21:23:39 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: "v4.3.0"
|
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-json
|
|
|
|
- id: check-xml
|
|
|
|
- id: end-of-file-fixer
|
2023-07-05 22:37:40 +01:00
|
|
|
exclude: \.json$
|
2023-11-30 15:57:00 -05:00
|
|
|
files: \.py$
|
2023-03-05 21:23:39 +01:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: mixed-line-ending
|
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
2024-03-21 14:21:04 -04:00
|
|
|
rev: 24.2.0
|
2023-03-05 21:23:39 +01:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
args: ["--line-length=100"]
|
|
|
|
language_version: python3
|
|
|
|
|
2024-02-22 17:35:46 +01:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
rev: v0.2.1
|
2023-03-05 21:23:39 +01:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
args:
|
2024-03-14 14:31:58 -07:00
|
|
|
["--fix"]
|
2023-03-05 21:23:39 +01:00
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
2024-03-21 14:21:04 -04:00
|
|
|
rev: 7.0.0
|
2023-03-05 21:23:39 +01:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
language_version: python3
|