diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..15c843f9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.1 + hooks: + - id: flake8 + pass_filenames: true + # this seems to need to be here in addition to setup.cfg + exclude: cibuildwheel/resources/ +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: check-merge-conflict + - id: end-of-file-fixer + exclude: cibuildwheel/resources/pinned_docker_images.cfg +- repo: https://github.com/pre-commit/mirrors-mypy + rev: '' # Use the sha / tag you want to point at + hooks: + - id: mypy + files: cibuildwheel|test + exclude: cibuildwheel/resources diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4fb53b11..3eaed5f4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,4 +42,3 @@ jobs: - bash: | python -m pip install -r requirements-dev.txt pytest-azurepipelines python ./bin/run_tests.py - diff --git a/docs/extra.js b/docs/extra.js index d32c3cc0..1965a84e 100644 --- a/docs/extra.js +++ b/docs/extra.js @@ -2,4 +2,3 @@ $('.rst-content pre') .prev('blockquote') .addClass('code-block-filename'); -