flare-floss/.pre-commit-config.yaml
2025-07-07 13:34:00 +00:00

59 lines
1.2 KiB
YAML

repos:
- repo: local
hooks:
- id: isort
name: isort
stages: [pre-commit, pre-push]
language: system
entry: isort
args:
- "--length-sort"
- "--profile"
- "black"
- "--line-length=120"
- "."
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: black
name: black
stages: [pre-commit, pre-push]
language: system
entry: black
args:
- "--line-length=120"
- "."
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: mypy
name: mypy
stages: [pre-commit, pre-push]
language: system
entry: mypy
args:
- "--check-untyped-defs"
- "--config-file=.github/mypy/mypy.ini"
- "floss/"
- "scripts/"
- "tests/"
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: pytest
name: pytest
stages: []
language: system
pass_filenames: false
always_run: true
entry: pytest
args:
- "--verbose"
- "tests/"