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

Pre-commit: move pytest and pylint config to pyproject.toml #562

Merged
merged 1 commit into from
Oct 5, 2020
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
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,17 @@ repos:
tests/.*.in$
)$

- repo: https://github.com/PyCQA/pylint
rev: pylint-2.5.2
- repo: https://github.com/PyCQA/pydocstyle
rev: 5.0.2
hooks:
- id: pylint
language: system
- id: pydocstyle
exclude: &exclude_files >
(?x)^(
aiida_quantumespresso/calculations/pwimmigrant.*|
aiida_quantumespresso/parsers/.*|
docs/.*|
tests/.*(?<!\.py)$
)$

- repo: https://github.com/PyCQA/pydocstyle
rev: 5.0.2
hooks:
- id: pydocstyle
exclude: *exclude_files
args: ['--ignore=D104,D202,D203,D213']

- repo: https://github.com/pre-commit/mirrors-yapf
Expand All @@ -41,6 +34,13 @@ repos:
types: [python]
args: ['-i']

- repo: https://github.com/PyCQA/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
language: system
exclude: *exclude_files

- repo: local
hooks:
- id: version-number
Expand Down
Loading