This commit is contained in:
Daniel 2023-12-11 01:25:47 +01:00
parent b5bd361569
commit 5a45255bd6

View file

@ -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: 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
- repo: https://github.com/pre-commit/mirrors-mypy
rev: '' # Use the sha / tag you want to point at
hooks:
- 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/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.7
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format