2022-10-27 13:15:56 +00:00
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
files: ^spiffworkflow-backend/
|
|
|
|
name: Check for added large files
|
|
|
|
entry: check-added-large-files
|
|
|
|
language: system
|
|
|
|
- id: check-toml
|
|
|
|
files: ^spiffworkflow-backend/
|
|
|
|
name: Check Toml
|
|
|
|
entry: check-toml
|
|
|
|
language: system
|
|
|
|
types: [toml]
|
|
|
|
- id: check-yaml
|
|
|
|
files: ^spiffworkflow-backend/
|
|
|
|
name: Check Yaml
|
|
|
|
entry: check-yaml
|
|
|
|
language: system
|
|
|
|
types: [yaml]
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
files: ^spiffworkflow-backend/
|
|
|
|
name: Fix End of Files
|
|
|
|
entry: end-of-file-fixer
|
|
|
|
language: system
|
|
|
|
types: [text]
|
|
|
|
stages: [commit, push, manual]
|
2024-06-04 18:26:40 +00:00
|
|
|
- id: ruff-check
|
2024-04-10 17:42:36 +00:00
|
|
|
args: [check, --fix]
|
2022-10-27 13:15:56 +00:00
|
|
|
files: ^spiffworkflow-backend/
|
2023-05-27 00:01:08 +00:00
|
|
|
name: ruff
|
|
|
|
entry: ruff
|
2022-10-27 13:15:56 +00:00
|
|
|
language: system
|
|
|
|
types: [python]
|
|
|
|
require_serial: true
|
2023-10-05 17:27:38 +00:00
|
|
|
# this is also specified in spiffworkflow-backend/pyproject.toml but we run pre-commit
|
|
|
|
# with all-files which ignores that
|
2023-06-09 19:28:59 +00:00
|
|
|
exclude: "/migrations/"
|
2024-06-04 18:26:40 +00:00
|
|
|
- id: ruff-format
|
2024-05-29 20:25:47 +00:00
|
|
|
args: [format]
|
|
|
|
files: ^spiffworkflow-backend/
|
|
|
|
name: ruff
|
|
|
|
entry: ruff
|
|
|
|
language: system
|
|
|
|
types: [python]
|
|
|
|
require_serial: true
|
|
|
|
# this is also specified in spiffworkflow-backend/pyproject.toml but we run pre-commit
|
|
|
|
# with all-files which ignores that
|
|
|
|
exclude: "/migrations/"
|
2022-10-27 13:15:56 +00:00
|
|
|
- id: trailing-whitespace
|
|
|
|
files: ^spiffworkflow-backend/
|
|
|
|
name: Trim Trailing Whitespace
|
|
|
|
entry: trailing-whitespace-fixer
|
|
|
|
language: system
|
|
|
|
types: [text]
|
|
|
|
stages: [commit, push, manual]
|
|
|
|
exclude: "/migrations/"
|