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]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
python-version: ["3.10", "3.11", "3.12"]
|
python-version: ["3.10", "3.11", "3.12"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: '**/pyproject.toml'
|
cache-dependency-path: '**/pyproject.toml'
|
||||||
|
|
||||||
# Cache Poetry dependencies
|
# Cache Poetry dependencies
|
||||||
- name: Cache Poetry dependencies
|
- name: Cache Poetry dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-poetry-${{ matrix.python-version }}-
|
${{ runner.os }}-poetry-${{ matrix.python-version }}-
|
||||||
|
|
||||||
# Cache nox environments
|
# Cache nox environments
|
||||||
- name: Cache nox environments
|
- name: Cache nox environments
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@ -47,29 +47,25 @@ jobs:
|
|||||||
key: ${{ runner.os }}-nox-${{ matrix.python-version }}-${{ hashFiles('**/noxfile.py') }}
|
key: ${{ runner.os }}-nox-${{ matrix.python-version }}-${{ hashFiles('**/noxfile.py') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-nox-${{ matrix.python-version }}-
|
${{ runner.os }}-nox-${{ matrix.python-version }}-
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install uv
|
pip install uv
|
||||||
uv --version
|
uv --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
uvx poetry install
|
uvx poetry install
|
||||||
|
|
||||||
- name: Lint with ruff
|
- name: Lint with ruff
|
||||||
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
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
@ -84,21 +80,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install uv
|
pip install uv
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
uvx poetry install
|
uvx poetry install
|
||||||
|
|
||||||
- name: Run security checks
|
- name: Run security checks
|
||||||
run: |
|
run: |
|
||||||
uvx nox -s safety
|
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, 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")
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user