Skip to content

Commit 77244cc

Browse files
committed
chore(build): don't use cache if running mypy in lint env
1 parent 40a5e42 commit 77244cc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

hatch.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,26 @@ matrix.rf.dependencies = [
105105
[envs.lint]
106106
#skip-install = true
107107
#extra-dependencies = ["tomli>=2.0.0"]
108+
extra-dependencies = [
109+
"types-PyYAML",
110+
"types-Pygments",
111+
"types-colorama",
112+
"types-docutils",
113+
"types-setuptools",
114+
]
108115
features = ["all"]
109116

117+
110118
[envs.lint.scripts]
111-
typing = ["mypy --install-types --non-interactive {args:.}", "npm run compile"]
119+
typing-py = "mypy --no-incremental --cache-dir /dev/null {args:.}"
120+
typing = ["typing-py", "npm run compile"]
112121
style = ["ruff .", "black --check --diff .", "npx eslint ."]
113122
fmt = ["black .", "ruff --fix .", "style", "npx eslint --fix ."]
114123
all = ["style", "typing"]
115124

125+
[envs.lint.overrides]
126+
platform.windows.scripts = ["typing-py=mypy --no-incremental --cache-dir nul {args:.}"]
127+
116128
[envs.pages]
117129
python = "3.11"
118130
#detached = true

0 commit comments

Comments
 (0)