Skip to content

Commit

Permalink
Use pyproject.toml for mypy and specify files (#969)
Browse files Browse the repository at this point in the history
* Move mypy to pyproject.toml

* Mypy files config in pyproject.toml
so more easily used
  • Loading branch information
cgravill authored Jul 22, 2021
1 parent 88e1491 commit 11155b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonchecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Tiny bit of type-checking with mypy
run: |
mypy --follow-imports=silent src/python/ksc/torch_frontend.py src/python/ksc/type.py src/python/ksc/expr.py src/python/ksc/filter_term.py
mypy --follow-imports=silent
- name: Dependency Detection setup
uses: actions/checkout@v2
Expand Down
3 changes: 0 additions & 3 deletions mypy.ini

This file was deleted.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[tool.black]
# current releleased version of Black doesn't have extend-exclude, so add pybind11 and mlir to default extend until released
exclude = '/(\.direnv|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist|pybind11|mlir|users|llvm-project)/'

[tool.mypy]
python_version=3.8
ignore_missing_imports=true
files="src/python/ksc/torch_frontend.py, src/python/ksc/type.py, src/python/ksc/expr.py, src/python/ksc/filter_term.py"

0 comments on commit 11155b4

Please sign in to comment.