-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Devops: Update pre-commit configuration
* Drop `yapf`, `isort`, `pylint` and `pydocstyle` in favor of `ruff` * Remove all encoding pragma, only necessary for Python 2 * Add temporary upper limit `aiida-core<2.4`
- Loading branch information
Showing
25 changed files
with
112 additions
and
171 deletions.
There are no files selected for viewing
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,56 +1,40 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: double-quote-string-fixer | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v4.5.0' | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/ikamensh/flynt/ | ||
rev: '0.76' | ||
hooks: | ||
- id: flynt | ||
- repo: https://github.com/ikamensh/flynt/ | ||
rev: '1.0.1' | ||
hooks: | ||
- id: flynt | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: '5.12.0' | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: 'v0.1.5' | ||
hooks: | ||
- id: ruff-format | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix, --show-fixes] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-yapf | ||
rev: v0.32.0 | ||
hooks: | ||
- id: yapf | ||
name: yapf | ||
types: [python] | ||
args: ['-i'] | ||
additional_dependencies: ['toml'] | ||
|
||
- repo: https://github.com/PyCQA/pylint | ||
rev: v2.12.2 | ||
hooks: | ||
- id: pylint | ||
language: system | ||
|
||
- repo: https://github.com/PyCQA/pydocstyle | ||
rev: '6.1.1' | ||
hooks: | ||
- id: pydocstyle | ||
additional_dependencies: ['toml'] | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: mypy | ||
args: [--config-file=pyproject.toml] | ||
language: python | ||
types: [python] | ||
require_serial: true | ||
pass_filenames: true | ||
files: >- | ||
(?x)^( | ||
src/.*py| | ||
tests/.*py| | ||
)$ | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: mypy | ||
args: [--config-file=pyproject.toml] | ||
language: python | ||
types: [python] | ||
require_serial: true | ||
pass_filenames: true | ||
files: >- | ||
(?x)^( | ||
src/.*py| | ||
tests/.*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
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,3 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
"""AiiDA plugin that provides a storage backend using an S3 object store as the file repository.""" | ||
__version__ = '0.2.0' |
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,13 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# pylint: disable=cyclic-import,wrong-import-position | ||
"""Command line interface for ``aiida-s3``.""" | ||
from aiida.cmdline.groups.verdi import VerdiCommandGroup | ||
import click | ||
from aiida.cmdline.groups.verdi import VerdiCommandGroup | ||
|
||
|
||
@click.group('aiida-s3', cls=VerdiCommandGroup) | ||
def cmd_root(): | ||
"""Command line interface for ``aiida-s3``.""" | ||
|
||
|
||
from .cmd_profile import cmd_profile | ||
from .cmd_profile import cmd_profile # noqa |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Custom implementations of :class:`aiida.repository.backend.abstract.AbstractRepositoryBackend`.""" |
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
Oops, something went wrong.