Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pre-commit #46

Merged
merged 1 commit into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: requirements-txt-fixer
- id: check-json
exclude: (.vscode|.devcontainer)
- id: no-commit-to-branch
args:
- --branch=master
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand All @@ -8,17 +17,6 @@ repos:
- --safe
- --quiet
files: ^(pygleif|examples|tests)/.+\.py$
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
name: flake8
entry: flake8
additional_dependencies:
- flake8-docstrings==1.6.0
- flake8-comprehensions==3.5.0
- flake8-noqa==1.1.0
files: ^(pygleif|examples|tests)/.+\.py$
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
Expand Down Expand Up @@ -47,3 +45,11 @@ repos:
language: system
types: [python]
files: tests
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
files: ^(pygleif|examples|tests)/.+\.py$
16 changes: 8 additions & 8 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pytest==7.1.2
flake8==4.0.1
pytest-timeout==2.1.0
pytest-cov==3.0.0
black==22.3.0
mypy==0.961
pre-commit==2.19.0
flake8-docstrings==1.6.0
coverage==6.4.1
flake8==4.0.1
flake8-comprehensions==3.10.0
flake8-docstrings==1.6.0
flake8-noqa==1.2.5
coverage==6.4.1
mypy==0.961
pre-commit==2.19.0
pytest==7.1.2
pytest-cov==3.0.0
pytest-timeout==2.1.0