Skip to content

Commit f5cd2ad

Browse files
committed
. e add mypy to the build
1 parent ee99045 commit f5cd2ad

6 files changed

Lines changed: 29 additions & 4 deletions

File tree

.mise.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
uv = "latest"
33
python = "latest"
44

5+
[env.'_'.python.venv]
6+
path = ".venv"
7+
create = true
8+
uv_create_args = ["--seed", "--quiet"]
9+
510
[tasks.build_and_test]
6-
depends = ["validate"]
11+
depends = ["validate", "mypy"]
12+
13+
[tasks.validate]
14+
run = "python _validate.py"
15+
depends = ["pip-install"]
16+
17+
[tasks.mypy]
18+
run = "mypy ."
19+
depends = ["pip-install"]
720

8-
[tasks]
9-
validate = "python _validate.py"
21+
[tasks.pip-install]
22+
run = "pip install --requirement requirements.txt --quiet --disable-pip-version-check"

.mypy.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Global options:
2+
3+
[mypy]
4+
strict = True
5+
6+
exclude = (?x)(
7+
^\.venv/ |
8+
^\.ignore/
9+
)

AGENT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
To run the build, use the `./build_and_test` script.

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Read and follow AGENT.md.

_validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
VALID_OS = {"Mac", "Windows", "Linux"}
99
SCREAMING_SNAKE_RE = re.compile(r"^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$")
1010

11-
def main():
11+
def main() -> None:
1212
errors = []
1313

1414
with Path("diff_reporters.csv").open(newline="") as f:

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mypy

0 commit comments

Comments
 (0)