Skip to content

Commit 501b5d1

Browse files
committed
Speed up mypy scans with its faster-cache extra
This extra "just" installs and uses orjson in place of stdlib json. orjson is 10x faster to serialize and 2x faster to deserialize. https://github.com/ijl/orjson?tab=readme-ov-file#performance
1 parent 346cc76 commit 501b5d1

File tree

2 files changed

+71
-3
lines changed

2 files changed

+71
-3
lines changed

poetry.lock

Lines changed: 70 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pytest-cov = "*"
3838
# opinionated code formatter
3939
black = ">=22"
4040
# type hints checker
41-
mypy = "*"
41+
mypy = { version = "*", extras = ["faster-cache"] }
4242
# xml library, used for outputting HTML reports from mypy, etc.
4343
lxml = "*"
4444
# lightning fast linter and style checker

0 commit comments

Comments
 (0)