diff --git a/.config/pydoclint-baseline.txt b/.config/pydoclint-baseline.txt index e69de29..157652a 100644 --- a/.config/pydoclint-baseline.txt +++ b/.config/pydoclint-baseline.txt @@ -0,0 +1,3 @@ +tests/conftest.py + DOC503: Method `Infrastructure.__post_init__` exceptions in the "Raises" section in the docstring do not match those in the function body Raises values in the docstring: ['ValueError', 'ValueError', 'ValueError']. Raised exceptions in the body: ['ValueError']. +-------------------- diff --git a/.gitignore b/.gitignore index 3d33320..03ae4d1 100644 --- a/.gitignore +++ b/.gitignore @@ -175,5 +175,5 @@ cython_debug/ _readthedocs # ansible-builder -context -collections +/context +/collections diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1f95823..5fa0dba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,12 +54,12 @@ repos: - id: toml-sort-fix - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.3.1 + rev: 1.4.1 hooks: - id: tox-ini-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.3 + rev: v0.6.8 hooks: - id: ruff args: @@ -72,7 +72,7 @@ repos: name: Spell check with cspell - repo: https://github.com/jsh9/pydoclint - rev: "0.5.6" + rev: "0.5.8" hooks: - id: pydoclint # This allows automatic reduction of the baseline file when needed. @@ -80,7 +80,7 @@ repos: pass_filenames: false - repo: https://github.com/pycqa/pylint.git - rev: v3.2.7 + rev: v3.3.1 hooks: - id: pylint args: diff --git a/bindep.txt b/bindep.txt index 07358a9..afcdc5e 100644 --- a/bindep.txt +++ b/bindep.txt @@ -1 +1 @@ -python3-devel +python3-devel [platform:redhat] diff --git a/pyproject.toml b/pyproject.toml index 3d58299..b5a7884 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -331,6 +331,9 @@ verbosity_assertions = 2 [tool.ruff] builtins = ["__"] cache-dir = "./.cache/.ruff" +external = [ + "DOC" # pydoclint +] fix = true line-length = 100 target-version = "py310" diff --git a/tests/conftest.py b/tests/conftest.py index a47e7e7..3d48195 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -419,7 +419,7 @@ def _start_server() -> None: env=os.environ, ) tries = 0 - max_tries = 10 + max_tries = 15 # macos runner showed occasional failures with 10s while tries < max_tries: try: res = requests.get("http://localhost:8000", timeout=1) diff --git a/tox.ini b/tox.ini index 4d757d6..4dde7b6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,7 @@ [tox] requires = tox>=4.11.3 + tox-extra>=2.0.1 env_list = py deps