Skip to content

Commit

Permalink
Minor build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Sep 27, 2024
1 parent 5a92cfc commit 6db9cbd
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .config/pydoclint-baseline.txt
Original file line number Diff line number Diff line change
@@ -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'].
--------------------
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,5 @@ cython_debug/
_readthedocs

# ansible-builder
context
collections
/context
/collections
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -72,15 +72,15 @@ 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.
entry: sh -ec "pydoclint . && pydoclint --generate-baseline=1 ."
pass_filenames: false

- repo: https://github.com/pycqa/pylint.git
rev: v3.2.7
rev: v3.3.1
hooks:
- id: pylint
args:
Expand Down
2 changes: 1 addition & 1 deletion bindep.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python3-devel
python3-devel [platform:redhat]
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
requires =
tox>=4.11.3
tox-extra>=2.0.1
env_list =
py
deps
Expand Down

0 comments on commit 6db9cbd

Please sign in to comment.