-
Notifications
You must be signed in to change notification settings - Fork 258
Add mypy + pytest global config + small fixes. #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
3305a7d
fd77332
f165d70
74e3d85
111f7c9
226aa79
ad968c8
99ab6cd
d8f8ddc
bc57ef0
f7392ad
493405b
54c0e6c
6259d7b
7451767
ee6c087
30d3e2e
62ae64f
cea578b
f72e43f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| [tool.black] | ||
| line-length = 120 | ||
|
|
||
|
Comment on lines
+1
to
+3
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorted alphabetically. |
||
| [tool.isort] | ||
| known_first_party = "argoverse" | ||
| known_third_party = "mayavi,pytest,colour,descartes,imageio,matplotlib,motmetrics,numpy,cv2,pandas,pillow,imageio,pyntcloud,scipy,shapely,sklearn" | ||
|
|
@@ -6,5 +9,9 @@ line_length = 120 | |
| multi_line_output = 3 | ||
| profile = "black" | ||
|
|
||
| [tool.black] | ||
| line-length = 120 | ||
| [tool.mypy] | ||
| ignore_missing_imports = true | ||
| strict = true | ||
|
Comment on lines
+12
to
+14
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a specific version of mypy that we need to enforce, to be able to use this functionality?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we use |
||
|
|
||
| [tool.pytest.ini_options] | ||
| addopts = "--cov argoverse --cov-append --cov-branch --cov-report=term-missing" | ||
|
Comment on lines
+16
to
+17
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add |
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,9 +12,9 @@ deps = | |
| flake8-string-format | ||
|
|
||
| commands = | ||
| pytest tests --cov argoverse --cov-append --cov-branch --cov-report=term-missing | ||
| flake8 --max-line-length 120 --ignore E203,E704,E711,E722,E741,W291,W293,W391,W503,F821,F401,F811,F841,P101,G004,G002,I201,I100,I101 --enable-extensions G argoverse | ||
| mypy --ignore-missing --strict argoverse | ||
| pytest tests | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. have we verified that these options get picked up from the pyproject.toml file in practice?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of these can be verified by looking at the |
||
| flake8 argoverse | ||
| mypy argoverse | ||
|
|
||
| depends = | ||
| py3{7,8}: clean | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.