Skip to content

Commit

Permalink
Mypy: update configuration (ignore_missing_imports=False), update git…
Browse files Browse the repository at this point in the history
…hub workflow
  • Loading branch information
deedy5 committed Mar 31, 2024
1 parent 6c61888 commit fc480ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install .[dev]
python -m pip install .[lxml,dev]
- name: Ruff
run: |
ruff check .
ruff format . --check --target-version py38
ruff format . --check
- name: Mypy
run: |
python -m pip install .
python -m pip install .[lxml]
mypy --install-types .
mypy --install-types --non-interactive .
- name: Pytest
run: |
pytest
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ dev = [

[tool.ruff]
line-length = 120
target-version = "py38"
exclude = ["tests"]

[tool.ruff.lint]
Expand All @@ -71,6 +70,9 @@ ignore = ["D100"]

[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
strict = true
exclude = ['cli\.py$', '__main__\.py$', "tests/", "build/"]

[[tool.mypy.overrides]]
module = "curl_cffi"
ignore_missing_imports = true

0 comments on commit fc480ac

Please sign in to comment.