mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-24 09:31:06 -05:00
8414fc2457
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/Lucas-C/pre-commit-hooks.git: v1.5.4 → v1.5.5](https://github.com/Lucas-C/pre-commit-hooks.git/compare/v1.5.4...v1.5.5) - [github.com/python-jsonschema/check-jsonschema.git: 0.27.3 → 0.28.1](https://github.com/python-jsonschema/check-jsonschema.git/compare/0.27.3...0.28.1) - [github.com/adrienverge/yamllint.git: v1.33.0 → v1.35.1](https://github.com/adrienverge/yamllint.git/compare/v1.33.0...v1.35.1) - [github.com/PyCQA/flake8.git: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8.git/compare/6.1.0...7.0.0) - [github.com/PyCQA/flake8.git: 4.0.1 → 7.0.0](https://github.com/PyCQA/flake8.git/compare/4.0.1...7.0.0) - [github.com/PyCQA/pylint.git: v3.0.3 → v3.1.0](https://github.com/PyCQA/pylint.git/compare/v3.0.3...v3.1.0) * Bump WPS to v0.19.x series * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Merge separate flake8 runs back into one --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>
137 lines
2.8 KiB
YAML
137 lines
2.8 KiB
YAML
---
|
|
ci:
|
|
autoupdate_schedule: quarterly
|
|
default_language_version: python3.11
|
|
|
|
repos:
|
|
- repo: https://github.com/asottile/add-trailing-comma.git
|
|
rev: v3.1.0
|
|
hooks:
|
|
- id: add-trailing-comma
|
|
|
|
- repo: https://github.com/PyCQA/isort.git
|
|
rev: 5.13.2
|
|
hooks:
|
|
- id: isort
|
|
args:
|
|
- --honor-noqa
|
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
|
|
rev: v1.5.5
|
|
hooks:
|
|
- id: remove-tabs
|
|
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema.git
|
|
rev: 0.28.1
|
|
hooks:
|
|
- id: check-github-actions
|
|
- id: check-github-workflows
|
|
- id: check-jsonschema
|
|
name: Check GitHub Workflows set timeout-minutes
|
|
args:
|
|
- --builtin-schema
|
|
- github-workflows-require-timeout
|
|
files: ^\.github/workflows/[^/]+$
|
|
types:
|
|
- yaml
|
|
- id: check-readthedocs
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
|
rev: v4.5.0
|
|
hooks:
|
|
# Side-effects:
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
# Non-modifying checks:
|
|
- id: name-tests-test
|
|
files: >-
|
|
^tests/[^_].*\.py$
|
|
- id: check-added-large-files
|
|
- id: check-byte-order-marker
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-json
|
|
- id: check-symlinks
|
|
- id: check-yaml
|
|
- id: detect-private-key
|
|
# Heavy checks:
|
|
- id: check-ast
|
|
- id: debug-statements
|
|
language_version: python3
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.6
|
|
hooks:
|
|
- id: codespell
|
|
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
rev: v1.35.1
|
|
hooks:
|
|
- id: yamllint
|
|
files: \.(yaml|yml)$
|
|
types:
|
|
- file
|
|
- yaml
|
|
args:
|
|
- --strict
|
|
|
|
- repo: https://github.com/PyCQA/flake8.git
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args:
|
|
- --ignore
|
|
# NOTE: WPS326: Found implicit string concatenation
|
|
# NOTE: WPS332: Found walrus operator
|
|
- >-
|
|
D100,
|
|
D101,
|
|
D103,
|
|
D107,
|
|
E402,
|
|
E501,
|
|
WPS102,
|
|
WPS110,
|
|
WPS111,
|
|
WPS305,
|
|
WPS326,
|
|
WPS332,
|
|
WPS347,
|
|
WPS360,
|
|
WPS421,
|
|
WPS422,
|
|
WPS432,
|
|
WPS433,
|
|
WPS437,
|
|
WPS440,
|
|
WPS441,
|
|
WPS453,
|
|
additional_dependencies:
|
|
- flake8-2020 ~= 1.7.0
|
|
- flake8-pytest-style ~= 1.6.0
|
|
- wemake-python-styleguide ~= 0.19.0
|
|
language_version: python3.11 # flake8-commas doesn't work w/ Python 3.12
|
|
|
|
- repo: https://github.com/PyCQA/pylint.git
|
|
rev: v3.1.0
|
|
hooks:
|
|
- id: pylint
|
|
args:
|
|
- --disable
|
|
- >-
|
|
import-error,
|
|
invalid-name,
|
|
line-too-long,
|
|
missing-class-docstring,
|
|
missing-function-docstring,
|
|
missing-module-docstring,
|
|
protected-access,
|
|
super-init-not-called,
|
|
unused-argument,
|
|
wrong-import-position,
|
|
- --output-format
|
|
- colorized
|
|
|
|
...
|