Skip to content

Commit 4112a58

Browse files
authored
Merge pull request #1680 from tisnik/lcore-2110-ability-to-type-check-selectively
LCORE-2110: ability to type check sources or tests selectively
2 parents d0ed69a + f81cc82 commit 4112a58

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,13 @@ test-e2e-tagged-local: ## Same as test-e2e-tagged without script wrapper
4848
benchmarks: ## Run benchmarks
4949
uv run python -m pytest -vv tests/benchmarks/
5050

51-
check-types: ## Checks type hints in sources
52-
uv run mypy --explicit-package-bases --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --ignore-missing-imports --disable-error-code attr-defined src/ tests/unit tests/integration tests/e2e/
51+
check-types-src: ## Check type hints in sources only
52+
uv run mypy --explicit-package-bases --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --ignore-missing-imports --disable-error-code attr-defined src/
53+
54+
check-types-tests: ## Check type hints in tests only
55+
uv run mypy --explicit-package-bases --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --ignore-missing-imports --disable-error-code attr-defined tests/unit tests/integration tests/e2e/
56+
57+
check-types: check-types-src check-types-tests ## Checks type hints in sources and tests
5358

5459
security-check: ## Check the project for security issues
5560
uv run bandit -c pyproject.toml -r src tests

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@ test-e2e Run end to end tests for the service
837837
test-e2e-local Run end to end tests for the service
838838
benchmarks Run benchmarks
839839
check-types Checks type hints in sources
840+
check-types-src Check type hints in sources only
841+
check-types-tests Check type hints in tests only
840842
security-check Check the project for security issues
841843
format Format the code into unified format
842844
schema Generate OpenAPI schema file

0 commit comments

Comments
 (0)