diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4eca63b..2b2ef57 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 \ No newline at end of file