Skip to content

Commit 71bb7b5

Browse files
committed
chore: remove unused script
1 parent d03aa1b commit 71bb7b5

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
rev: "v1.15.0"
4242
hooks:
4343
- id: mypy
44-
exclude: "test_decimal_constraints|examples/fields/test_example_2|examples/configuration|tools/"
44+
exclude: "test_decimal_constraints|examples/fields/test_example_2"
4545
additional_dependencies:
4646
[
4747
attrs>=22.2.0,

tools/build_docs.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
import subprocess
66
from contextlib import contextmanager
77
from pathlib import Path
8+
from typing import TYPE_CHECKING
9+
10+
if TYPE_CHECKING:
11+
from collections.abc import Generator
812

913
REDIRECT_TEMPLATE = """
1014
<!DOCTYPE HTML>
@@ -26,16 +30,16 @@
2630

2731

2832
@contextmanager
29-
def checkout(branch: str) -> None:
33+
def checkout(branch: str) -> Generator[None, None, None]:
3034
subprocess.run(["git", "checkout", branch], check=True) # noqa: S603 S607
3135
yield
3236
subprocess.run(["git", "checkout", "-"], check=True) # noqa: S603 S607
3337

3438

35-
def build(output_dir: str) -> None:
39+
def build(output: str) -> None:
3640
subprocess.run(["make", "docs"], check=True) # noqa: S603 S607
3741

38-
output_dir = Path(output_dir)
42+
output_dir = Path(output)
3943
output_dir.mkdir()
4044
output_dir.joinpath(".nojekyll").touch(exist_ok=True)
4145
output_dir.joinpath("index.html").write_text(REDIRECT_TEMPLATE.format(target="latest"))
@@ -46,7 +50,7 @@ def build(output_dir: str) -> None:
4650

4751
def main() -> None:
4852
args = parser.parse_args()
49-
build(output_dir=args.output)
53+
build(output=args.output)
5054

5155

5256
if __name__ == "__main__":

tools/convert_docs.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)