Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,45 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.17.6
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
rev: 0.40.0
hooks:
- id: check-dependabot
- id: check-github-workflows

- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
rev: v1.7.12
hooks:
- id: actionlint

- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.19.0
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.33.1
hooks:
- id: zizmor

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.11.1
rev: v2.31.4
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
rev: v0.27
hooks:
- id: validate-pyproject

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.7.1
rev: 1.10.3
hooks:
- id: tox-ini-fmt

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.7.4
rev: v3.10.1
hooks:
- id: prettier
files: templates/switchers.js
Expand Down
34 changes: 0 additions & 34 deletions .ruff.toml

This file was deleted.

4 changes: 2 additions & 2 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

TYPE_CHECKING = False
if TYPE_CHECKING:
from collections.abc import Collection, Iterator, Sequence, Set
from collections.abc import Collection, Generator, Iterator, Sequence, Set
from typing import Literal

try:
Expand Down Expand Up @@ -559,7 +559,7 @@ def edit(file: Path):
@contextmanager
def wait_for_lock(
path: Path, timeout: float = 600, poll_interval: float = 10
) -> Iterator[None]:
) -> Generator[None]:
"""Context manager to hold *path* as a lock file, waiting up to *timeout* seconds for it."""
deadline = perf_counter() + timeout
while True:
Expand Down
33 changes: 32 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
[tool.pytest.ini_options]
[tool.ruff]
target-version = "py313" # Pin Ruff to Python 3.13
line-length = 88
output-format = "full"
format.preview = true
format.docstring-code-format = true
lint.select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"G", # flake8-logging-format
"I", # isort
"N", # pep8-naming
"PERF", # perflint
"PGH", # pygrep-hooks
"PT", # flake8-pytest-style
"TC", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle
]
lint.ignore = [
"E501", # Ignore line length errors (we use auto-formatting)
]
lint.flake8-type-checking.exempt-modules = []
lint.flake8-type-checking.strict = true
lint.preview = true

[tool.pytest]
minversion = "9.0"
pythonpath = [ "." ]
testpaths = [ "tests" ]
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ wheel_build_env = .pkg
skip_install = true
deps =
-r requirements.txt
pytest
pytest>=9
pytest-cov
pass_env =
FORCE_COLOR
Expand Down
Loading