Skip to content

Commit 4b18dbc

Browse files
committed
chore: restore mypy.ini and noxfile.py for google-crc32c
1 parent b8b7b0d commit 4b18dbc

2 files changed

Lines changed: 5 additions & 18 deletions

File tree

packages/google-crc32c/mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[mypy]
2+
python_version = 3.10
3+
exclude = tests/unit/resources/

packages/google-crc32c/noxfile.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,11 @@
1717
# Generated by synthtool. DO NOT EDIT!
1818

1919
import os
20-
import pathlib
2120
import sys
2221

2322
import nox
2423

25-
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
26-
# Path to the centralized mypy configuration file at the repository root.
27-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
28-
MYPY_CONFIG_FILE = next(
29-
(
30-
str(p / "mypy.ini")
31-
for p in CURRENT_DIRECTORY.parents
32-
if (p / "mypy.ini").exists()
33-
),
34-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
35-
)
24+
HERE = os.path.dirname(__file__)
3625

3726
# Constants
3827
DEFAULT_PYTHON_VERSION = "3.14"
@@ -95,12 +84,7 @@ def mypy(session):
9584
"types-setuptools",
9685
)
9786
session.env["MYPYPATH"] = "src"
98-
session.run(
99-
"mypy",
100-
f"--config-file={MYPY_CONFIG_FILE}",
101-
"src/google_crc32c/",
102-
"tests/",
103-
)
87+
session.run("mypy", "src/google_crc32c/", "tests/")
10488

10589

10690
@nox.session(python=DEFAULT_PYTHON_VERSION)

0 commit comments

Comments
 (0)