File tree Expand file tree Collapse file tree 5 files changed +10
-25
lines changed
Expand file tree Collapse file tree 5 files changed +10
-25
lines changed Original file line number Diff line number Diff line change 1- """
2- Admin tools.
3- """
1+ """Admin tools."""
Original file line number Diff line number Diff line change 2020
2121
2222def 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 ()
Original file line number Diff line number Diff line change 1- """
2- CI helpers.
3- """
1+ """CI helpers."""
Original file line number Diff line number Diff line change 1- """
2- Custom lint tests.
3- """
1+ """Custom lint tests."""
42
53from pathlib import Path
64from typing import TYPE_CHECKING
1513
1614@beartype
1715def _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
6054def 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 )
Original file line number Diff line number Diff line change 1- """
2- Setup for Sybil.
3- """
1+ """Setup for Sybil."""
42
53from doctest import ELLIPSIS
64
1715
1816@beartype
1917def 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 )
You can’t perform that action at this time.
0 commit comments