Skip to content

Commit 3965cf2

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 52ee47c commit 3965cf2

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

admin/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
"""
2-
Admin tools.
3-
"""
1+
"""Admin tools."""

admin/create_secrets_files.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020

2121

2222
def main() -> None:
23-
"""
24-
Create secrets files.
25-
"""
23+
"""Create secrets files."""
2624
email_address = os.environ["VWS_EMAIL_ADDRESS"]
2725
password = os.environ["VWS_PASSWORD"]
2826
new_secrets_dir = Path(os.environ["NEW_SECRETS_DIR"]).expanduser()

ci/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
"""
2-
CI helpers.
3-
"""
1+
"""CI helpers."""

ci/test_custom_linters.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
Custom lint tests.
3-
"""
1+
"""Custom lint tests."""
42

53
from pathlib import Path
64
from typing import TYPE_CHECKING
@@ -15,9 +13,7 @@
1513

1614
@beartype
1715
def _ci_patterns(*, repository_root: Path) -> set[str]:
18-
"""
19-
Return the CI patterns given in the CI configuration file.
20-
"""
16+
"""Return the CI patterns given in the CI configuration file."""
2117
ci_file = repository_root / ".github" / "workflows" / "test.yml"
2218
github_workflow_config = yaml.safe_load(stream=ci_file.read_text())
2319
matrix = github_workflow_config["jobs"]["ci-tests"]["strategy"]["matrix"]
@@ -33,9 +29,7 @@ def _tests_from_pattern(
3329
ci_pattern: str,
3430
capsys: pytest.CaptureFixture[str],
3531
) -> set[str]:
36-
"""
37-
From a CI pattern, get all tests ``pytest`` would collect.
38-
"""
32+
"""From a CI pattern, get all tests ``pytest`` would collect."""
3933
# Clear the captured output.
4034
capsys.readouterr()
4135
tests: Iterable[str] = set()
@@ -59,7 +53,8 @@ def _tests_from_pattern(
5953

6054
def test_ci_patterns_valid(request: pytest.FixtureRequest) -> None:
6155
"""
62-
All of the CI patterns in the CI configuration match at least one test in
56+
All of the CI patterns in the CI configuration match at least one
57+
test in
6358
the test suite.
6459
"""
6560
ci_patterns = _ci_patterns(repository_root=request.config.rootpath)

conftest.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
Setup for Sybil.
3-
"""
1+
"""Setup for Sybil."""
42

53
from doctest import ELLIPSIS
64

@@ -17,9 +15,7 @@
1715

1816
@beartype
1917
def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
20-
"""
21-
Apply the beartype decorator to all collected test functions.
22-
"""
18+
"""Apply the beartype decorator to all collected test functions."""
2319
for item in items:
2420
if isinstance(item, pytest.Function):
2521
item.obj = beartype(obj=item.obj)

0 commit comments

Comments
 (0)