Skip to content

Commit

Permalink
CI: simplify & fix mypy setup, ignore autogenerated files in ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
suvayu committed Jun 24, 2024
1 parent 5a6d6a3 commit 8f99513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ jobs:
python -m pip install --upgrade pip
pip install mypy{,_extensions}
- name: Type check w/ mypy
run: echo y | mypy --install-types --check-untyped-defs --pretty src tests
run: mypy --install-types --non-interactive --pretty
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ extend-exclude ='''

[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
files = "src"

[tool.ruff]
respect-gitignore = true
exclude = [
".direnv",
".eggs",
Expand Down

0 comments on commit 8f99513

Please sign in to comment.