test
This commit is contained in:
parent
b5bd361569
commit
5a45255bd6
1 changed files with 28 additions and 19 deletions
|
|
@ -1,27 +1,36 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: local
|
# - repo: local
|
||||||
hooks:
|
# hooks:
|
||||||
# - id: whitespace
|
# - id: whitespace
|
||||||
# name: strip whitespace
|
# name: strip whitespace
|
||||||
# entry: ./strip_whitespace.sh
|
# entry: ./strip_whitespace.sh
|
||||||
# language: system
|
# language: system
|
||||||
# always_run: true
|
# always_run: true
|
||||||
# pass_filenames: false
|
# pass_filenames: false
|
||||||
- id: ruff
|
|
||||||
name: ruff
|
# - id: mypy
|
||||||
entry: python -m ruff . --preview
|
# name: mypy
|
||||||
language: system
|
# entry: mypy pytest_abra/
|
||||||
always_run: true
|
# language: system
|
||||||
pass_filenames: false
|
# always_run: true
|
||||||
|
# pass_filenames: false
|
||||||
|
# - id: tests
|
||||||
|
# name: run all tests that are not marked slow
|
||||||
|
# entry: pytest -m "not slow"
|
||||||
|
# language: system
|
||||||
|
# always_run: true
|
||||||
|
# pass_filenames: false
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
|
rev: '' # Use the sha / tag you want to point at
|
||||||
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy
|
|
||||||
entry: mypy pytest_abra/
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
language: system
|
# Ruff version.
|
||||||
always_run: true
|
rev: v0.1.7
|
||||||
pass_filenames: false
|
hooks:
|
||||||
- id: tests
|
# Run the linter.
|
||||||
name: run all tests that are not marked slow
|
- id: ruff
|
||||||
entry: pytest -m "not slow"
|
# Run the formatter.
|
||||||
language: system
|
- id: ruff-format
|
||||||
always_run: true
|
|
||||||
pass_filenames: false
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue