-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
aiida-core==2.X
and Python 3.8-3.11 support
Some small changes here and there to fully switch to `aiida-core==2.X`: 1. Added `core.` prefix where needed. 2. Removal of superfluous `dict` keyword argument. The package metadata is now also all moved to `pyproject.toml`, and support is extended to Python v3.8-3.11. Other changes mainly involve switching to `black`, using `isort` and updating `pylint` to a more recent version.
- Loading branch information
Showing
22 changed files
with
552 additions
and
685 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,34 @@ | ||
# # Install pre-commit hooks via | ||
# pre-commit install | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
- id: trailing-whitespace | ||
types: [python] | ||
- id: double-quote-string-fixer | ||
types: [python] | ||
repos: | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
|
||
- repo: https://github.com/pre-commit/mirrors-yapf | ||
rev: v0.30.0 | ||
hooks: | ||
# yapf = yet another python formatter | ||
- id: yapf | ||
name: yapf | ||
types: [python] | ||
exclude: > | ||
(?x)^( | ||
docs/.*| | ||
)$ | ||
args: ['-i'] | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
# It is recommended to specify the latest version of Python | ||
# supported by your project here, or alternatively use | ||
# pre-commit's default_language_version, see | ||
# https://pre-commit.com/#top_level-default_language_version | ||
language_version: python3.10 | ||
|
||
- repo: local | ||
hooks: | ||
- repo: local | ||
hooks: | ||
|
||
# prospector: collection of linters | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
types: [python] | ||
language: system | ||
exclude: &exclude_files > | ||
(?x)^( | ||
.*/test_.*.py | ||
)$ | ||
|
||
- id: version-number | ||
name: Check version numbers | ||
entry: python ./.github/check_version.py | ||
language: system | ||
files: '^(setup.json)|(aiida_zeopp/__init__.py)' | ||
# prospector: collection of linters | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
types: [python] | ||
language: system | ||
exclude: &exclude_files > | ||
(?x)^( | ||
.*/test_.*.py | ||
)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.