diff --git a/.github/workflows/pre_commit.yaml b/.github/workflows/pre_commit.yaml deleted file mode 100644 index 1e9820a..0000000 --- a/.github/workflows/pre_commit.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: Linting - -on: - pull_request: - push: - branches: [master,dev] - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d5c0ec..b1ef253 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,21 +25,21 @@ repos: - flake8-rst-docstrings - flake8-docstrings - flake8-builtins - - flake8-logging-format - flake8-rst-docstrings - flake8-rst - flake8-markdown - flake8-bugbear - flake8-comprehensions - flake8-print -- repo: https://github.com/psf/black - rev: 23.11.0 - hooks: +# Using this mirror lets us use mypyc-compiled black, which is about 2x faster +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 23.11.0 + hooks: - id: black -- repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.10.0 - hooks: - - id: rst-backticks +- repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 + hooks: + - id: rst-backticks - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: