Merging upstream version 1.3.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5b922100c9
commit
8a6a3342fc
337 changed files with 16571 additions and 4891 deletions
|
@ -3,6 +3,7 @@
|
|||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
ci:
|
||||
autoupdate_commit_msg: "ci: pre-commit autoupdate"
|
||||
skip: [mypy]
|
||||
|
||||
files: ^(anta|docs|scripts|tests|asynceapi)/
|
||||
|
||||
|
@ -43,28 +44,28 @@ repos:
|
|||
- --allow-past-years
|
||||
- --fuzzy-match-generates-todo
|
||||
- --comment-style
|
||||
- '<!--| ~| -->'
|
||||
- "<!--| ~| -->"
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.8.4
|
||||
rev: v0.10.0
|
||||
hooks:
|
||||
- id: ruff
|
||||
name: Run Ruff linter
|
||||
args: [ --fix ]
|
||||
- id: ruff-format
|
||||
name: Run Ruff formatter
|
||||
- id: ruff
|
||||
name: Run Ruff linter
|
||||
args: [--fix]
|
||||
- id: ruff-format
|
||||
name: Run Ruff formatter
|
||||
|
||||
- repo: https://github.com/pycqa/pylint
|
||||
rev: "v3.3.2"
|
||||
rev: "v3.3.5"
|
||||
hooks:
|
||||
- id: pylint
|
||||
name: Check code style with pylint
|
||||
description: This hook runs pylint.
|
||||
types: [python]
|
||||
args:
|
||||
- -rn # Only display messages
|
||||
- -sn # Don't display the score
|
||||
- --rcfile=pyproject.toml # Link to config file
|
||||
- -rn # Only display messages
|
||||
- -sn # Don't display the score
|
||||
- --rcfile=pyproject.toml # Link to config file
|
||||
additional_dependencies:
|
||||
- anta[cli]
|
||||
- types-PyYAML
|
||||
|
@ -76,16 +77,17 @@ repos:
|
|||
- respx
|
||||
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.3.0
|
||||
rev: v2.4.1
|
||||
hooks:
|
||||
- id: codespell
|
||||
name: Checks for common misspellings in text files.
|
||||
entry: codespell
|
||||
language: python
|
||||
types: [text]
|
||||
args: ["--ignore-words", ".codespellignore"]
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.14.0
|
||||
rev: v1.15.0
|
||||
hooks:
|
||||
- id: mypy
|
||||
name: Check typing with mypy
|
||||
|
@ -97,10 +99,10 @@ repos:
|
|||
- types-requests
|
||||
- types-pyOpenSSL
|
||||
- pytest
|
||||
files: ^(anta|tests)/
|
||||
files: ^(anta|tests|asynceapi)/
|
||||
|
||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||
rev: v0.43.0
|
||||
rev: v0.44.0
|
||||
hooks:
|
||||
- id: markdownlint
|
||||
name: Check Markdown files style.
|
||||
|
@ -122,5 +124,14 @@ repos:
|
|||
pass_filenames: false
|
||||
additional_dependencies:
|
||||
- anta[cli]
|
||||
# TODO: next can go once we have it added to anta properly
|
||||
- numpydoc
|
||||
- id: doc-snippets
|
||||
name: Generate doc snippets
|
||||
entry: >-
|
||||
sh -c "docs/scripts/generate_doc_snippets.py"
|
||||
language: python
|
||||
types: [python]
|
||||
files: anta/cli/
|
||||
verbose: true
|
||||
pass_filenames: false
|
||||
additional_dependencies:
|
||||
- anta[cli]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue