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:
parent
09f5111eda
commit
3fea035c13
32
.github/workflows/test.yml
vendored
32
.github/workflows/test.yml
vendored
@ -14,22 +14,22 @@ jobs:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
python-version: ["3.10", "3.11", "3.12"]
|
||||
fail-fast: false
|
||||
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
cache-dependency-path: '**/pyproject.toml'
|
||||
|
||||
|
||||
# Cache Poetry dependencies
|
||||
- name: Cache Poetry dependencies
|
||||
uses: actions/cache@v4
|
||||
@ -38,7 +38,7 @@ jobs:
|
||||
key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-poetry-${{ matrix.python-version }}-
|
||||
|
||||
|
||||
# Cache nox environments
|
||||
- name: Cache nox environments
|
||||
uses: actions/cache@v4
|
||||
@ -47,29 +47,25 @@ jobs:
|
||||
key: ${{ runner.os }}-nox-${{ matrix.python-version }}-${{ hashFiles('**/noxfile.py') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nox-${{ matrix.python-version }}-
|
||||
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install uv
|
||||
uv --version
|
||||
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uvx poetry install
|
||||
|
||||
|
||||
- name: Lint with ruff
|
||||
run: |
|
||||
uvx nox -s lint
|
||||
|
||||
- name: Type check with mypy
|
||||
run: |
|
||||
uvx nox -s mypy
|
||||
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
uvx nox -s pytest
|
||||
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
|
||||
uses: codecov/codecov-action@v4
|
||||
@ -84,21 +80,21 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install uv
|
||||
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uvx poetry install
|
||||
|
||||
|
||||
- name: Run security checks
|
||||
run: |
|
||||
uvx nox -s safety
|
||||
|
@ -18,6 +18,5 @@ from nox_actions import codetest, lint, release # noqa: E402
|
||||
nox.session(lint.lint, name="lint")
|
||||
nox.session(lint.lint_fix, name="lint-fix")
|
||||
nox.session(codetest.pytest, name="pytest")
|
||||
nox.session(codetest.mypy, name="mypy")
|
||||
nox.session(codetest.safety, name="safety")
|
||||
nox.session(release.build, name="build")
|
||||
|
@ -41,7 +41,6 @@ pytest-asyncio = "^0.23.0"
|
||||
pytest-cov = "^4.0.0"
|
||||
pytest-mock = "^3.12.0"
|
||||
ruff = "^0.1.0"
|
||||
mypy = "^1.8.0"
|
||||
pre-commit = "^3.6.0"
|
||||
nox = "^2024.3.2"
|
||||
|
||||
@ -78,16 +77,6 @@ multi_line_output = 3
|
||||
line_length = 88
|
||||
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]
|
||||
minversion = "6.0"
|
||||
addopts = "-ra -q --strict-markers --strict-config"
|
||||
|
Loading…
x
Reference in New Issue
Block a user