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

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Sep 29, 2020

Fixes #561

Requirement of pylint is upped as support for pyproject.toml was
only added in v6.0.

tests/parsers/test_pw.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
setup.json Show resolved Hide resolved
@sphuber sphuber force-pushed the fix/561/pyproject-configuration branch from 99e78b9 to 921c2ad Compare October 1, 2020 10:51
@sphuber sphuber force-pushed the fix/561/pyproject-configuration branch 2 times, most recently from f8d3553 to d745e2d Compare October 5, 2020 13:11
Requirement of `pylint` is upped as support for `pyproject.toml` was
only added in v2.6.0.

Also remove all explicit marking of tests with the `aiida_profile`
fixture. This is automatically loaded for the entire session by calling
`pytest_plugins = ['aiida.manage.tests.pytest_fixtures']` in the
`conftext.py`.

Finally, move `yapf` pre-commit hook before the `pylint` one. Often
`yapf` will correct mistakes that `pylint` will otherwise complain about.
@sphuber sphuber force-pushed the fix/561/pyproject-configuration branch from d745e2d to 9d6ea64 Compare October 5, 2020 13:19
@sphuber sphuber requested a review from greschd October 5, 2020 13:19
@sphuber
Copy link
Contributor Author

sphuber commented Oct 5, 2020

@greschd should be good now

@greschd greschd merged commit 89a44f1 into develop Oct 5, 2020
@greschd greschd deleted the fix/561/pyproject-configuration branch October 5, 2020 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move tool configuration to pyproject.toml as much as possible
2 participants