Skip to content

Commit

Permalink
made mypy faster
Browse files Browse the repository at this point in the history
  • Loading branch information
George Burton authored and gecBurton committed Jul 9, 2024
1 parent f9e26bb commit 509cdeb
Show file tree
Hide file tree
Showing 9 changed files with 379 additions and 4,354 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ safe: ##

.PHONY: checktypes
checktypes: ## Check types in redbox and worker
cd worker && poetry install && poetry run mypy . --ignore-missing-imports
cd redbox-core && poetry install && poetry run mypy . --ignore-missing-imports
poetry install --with dev --without docs --no-root
poetry run mypy redbox-core --ignore-missing-imports
poetry run mypy worker --ignore-missing-imports

.PHONY: check-migrations
check-migrations: stop ## Check types in redbox and worker
Expand Down
375 changes: 166 additions & 209 deletions core-api/poetry.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions core-api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ litellm = "^1.41.11"
pytest = "^8.2.2"
pytest-cov = "^5.0.0"
pytest-asyncio = "^0.23.6"
mypy = "^1.9.0"
pytest-mock = "^3.14.0"
moto = {extras = ["s3"], version = "^5.0.10"}
jsonlines = "^4.0.0"
deepeval = "^0.21.64"
pytest-mock = "^3.14.0"


[build-system]
Expand Down
4,092 changes: 134 additions & 3,958 deletions poetry.lock

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,19 @@ pytest-env = "^1.1.1"
pytest-mock = "^3.14.0"
pytest-cov = "^5.0.0"
pytest-dotenv = "^0.5.2"
pytest-asyncio = "^0.23.6"
ruff = "^0.5.0"
bandit = "^1.7.9"
detect-secrets = "^1.5.0"
mypy = "^1.9.0"
types-python-dateutil = "^2.9.0.20240315"
types-markdown = "^3.6.0.20240316"
types-pytz = "^2024.1.0.20240203"
pytest-asyncio = "^0.23.6"
boto3-stubs = {extras = ["essential"], version = "^1.34.139"}
moto = {extras = ["s3"], version = "^5.0.10"}
httpx = "^0.27.0"
websockets = "^12.0"
pyarrow = "^16.1.0"
deepeval = "^0.21.64"
minio = "^7.2.7"
python-jose="^3.3.0"
jsonlines="^4.0.0"
ipywidgets="^8.1.2"
playwright = "^1.45"
pytest-playwright = "^0.5"
axe-playwright-python = "^0.1"
dj-notebook = "^0.7.0"


[tool.poetry.group.docs.dependencies]
Expand Down
98 changes: 22 additions & 76 deletions redbox-core/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion redbox-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ torch = "2.2.2"
pytest = "^8.2.2"
moto = "^5.0.10"
pytest-cov = "^5.0.0"
mypy = "^1.10.1"

[build-system]
requires = ["poetry-core"]
Expand Down
147 changes: 52 additions & 95 deletions worker/poetry.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion worker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pikepdf = "<9.0.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
pytest-cov = "^5.0.0"
mypy = "^1.9.0"
pytest-asyncio = "^0.23.6"
boto3-stubs = {extras = ["essential"], version = "^1.34.137"}
moto = {extras = ["s3"], version = "^5.0.10"}
Expand Down

0 comments on commit 509cdeb

Please sign in to comment.