test
This commit is contained in:
parent
b5bd361569
commit
5a45255bd6
1 changed files with 28 additions and 19 deletions
|
|
@ -1,27 +1,36 @@
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
# - repo: local
|
||||
# hooks:
|
||||
# - id: whitespace
|
||||
# name: strip whitespace
|
||||
# entry: ./strip_whitespace.sh
|
||||
# language: system
|
||||
# always_run: true
|
||||
# pass_filenames: false
|
||||
|
||||
# - id: mypy
|
||||
# name: mypy
|
||||
# entry: mypy pytest_abra/
|
||||
# language: system
|
||||
# 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
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.1.7
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
name: ruff
|
||||
entry: python -m ruff . --preview
|
||||
language: system
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
- id: mypy
|
||||
name: mypy
|
||||
entry: mypy pytest_abra/
|
||||
language: system
|
||||
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
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
Loading…
Add table
Add a link
Reference in a new issue