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: 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: 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 - id: ruff
name: ruff # Run the formatter.
entry: python -m ruff . --preview - id: ruff-format
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