-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add pre-commit config * drop wearerequired/lint-action * fix black config * disable black * drop duplicity flake8 check
- Loading branch information
Showing
6 changed files
with
77 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
extend-ignore = E203,C901 | ||
exclude = | ||
.git, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
default_language_version: | ||
python: python3 | ||
|
||
ci: | ||
autofix_prs: true | ||
autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions" | ||
autoupdate_schedule: quarterly | ||
# submodules: true | ||
|
||
repos: | ||
# todo: let's enable also al these but as separate PR | ||
# - repo: https://github.com/pre-commit/pre-commit-hooks | ||
# rev: v4.5.0 | ||
# hooks: | ||
# - id: end-of-file-fixer | ||
# - id: trailing-whitespace | ||
# - id: check-json | ||
# - id: check-yaml | ||
# - id: check-toml | ||
# - id: check-docstring-first | ||
# - id: check-executables-have-shebangs | ||
# - id: check-case-conflict | ||
# - id: check-added-large-files | ||
# - id: detect-private-key | ||
|
||
# todo: another great hook | ||
# - repo: https://github.com/crate-ci/typos | ||
# rev: v1.16.26 | ||
# hooks: | ||
# - id: typos | ||
# # empty to do not write fixes | ||
# args: [] | ||
# exclude: pyproject.toml | ||
|
||
# - repo: https://github.com/PyCQA/docformatter | ||
# rev: v1.7.5 | ||
# hooks: | ||
# - id: docformatter | ||
# additional_dependencies: [tomli] | ||
# args: ["--in-place"] | ||
|
||
# - repo: https://github.com/psf/black-pre-commit-mirror | ||
# rev: 24.1.1 | ||
# hooks: | ||
# - id: black | ||
# name: Format code | ||
# args: | ||
# - "--skip-string-normalization" | ||
|
||
# todo: unify formatting all GH actions files | ||
# - repo: https://github.com/pre-commit/mirrors-prettier | ||
# rev: v3.1.0 | ||
# hooks: | ||
# - id: prettier | ||
# # https://prettier.io/docs/en/options.html#print-width | ||
# args: ["--print-width=120"] | ||
|
||
# - repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v1.8.0 | ||
# hooks: | ||
# - id: mypy | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
|
||
# todo: replacement for flake8 | ||
# - repo: https://github.com/astral-sh/ruff-pre-commit | ||
# rev: v0.1.9 | ||
# hooks: | ||
# - id: ruff | ||
# args: ["--fix"] |
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