remove: disable mypy type checking

- Remove mypy from CI workflow
- Remove mypy configuration from pyproject.toml
- Remove mypy dependency from dev dependencies
- Remove mypy session from noxfile.py
- Keep only essential linting (ruff + isort) and testing (pytest)
- All remaining checks still pass
This commit is contained in:
longhao 2025-05-27 12:06:03 +08:00 committed by Hal
parent 09f5111eda
commit 3fea035c13
3 changed files with 14 additions and 30 deletions

View File

@ -62,10 +62,6 @@ jobs:
run: | run: |
uvx nox -s lint uvx nox -s lint
- name: Type check with mypy
run: |
uvx nox -s mypy
- name: Run tests - name: Run tests
run: | run: |
uvx nox -s pytest uvx nox -s pytest

View File

@ -18,6 +18,5 @@ from nox_actions import codetest, lint, release # noqa: E402
nox.session(lint.lint, name="lint") nox.session(lint.lint, name="lint")
nox.session(lint.lint_fix, name="lint-fix") nox.session(lint.lint_fix, name="lint-fix")
nox.session(codetest.pytest, name="pytest") nox.session(codetest.pytest, name="pytest")
nox.session(codetest.mypy, name="mypy")
nox.session(codetest.safety, name="safety") nox.session(codetest.safety, name="safety")
nox.session(release.build, name="build") nox.session(release.build, name="build")

View File

@ -41,7 +41,6 @@ pytest-asyncio = "^0.23.0"
pytest-cov = "^4.0.0" pytest-cov = "^4.0.0"
pytest-mock = "^3.12.0" pytest-mock = "^3.12.0"
ruff = "^0.1.0" ruff = "^0.1.0"
mypy = "^1.8.0"
pre-commit = "^3.6.0" pre-commit = "^3.6.0"
nox = "^2024.3.2" nox = "^2024.3.2"
@ -78,16 +77,6 @@ multi_line_output = 3
line_length = 88 line_length = 88
known_first_party = ["pypi_query_mcp"] known_first_party = ["pypi_query_mcp"]
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options] [tool.pytest.ini_options]
minversion = "6.0" minversion = "6.0"
addopts = "-ra -q --strict-markers --strict-config" addopts = "-ra -q --strict-markers --strict-config"