mirror of
https://github.com/vee1e/flare-floss.git
synced 2026-09-01 09:49:59 +00:00
59 lines
1.2 KiB
YAML
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/"
|
|
|