-
Notifications
You must be signed in to change notification settings - Fork 1
Make linting and type checking more rigorous: black, ruff, mypy all green #12
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
Changes from 4 commits
84ee260
73125d9
93e456c
2d6dd82
2de4ca8
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 |
|---|---|---|
|
|
@@ -23,10 +23,10 @@ jobs: | |
| run: pip install -r requirements.txt | ||
|
|
||
| - name: Lint with black | ||
| run: black --check tests/ | ||
| run: black --check modpods.py tests/ | ||
|
|
||
| - name: Lint with ruff | ||
| run: ruff check tests/ | ||
| run: ruff check modpods.py tests/ | ||
|
Owner
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. Why not "ruff check ."?
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. Updated to |
||
|
|
||
| - name: Type-check with mypy | ||
| run: mypy tests/ modpods.py --ignore-missing-imports | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not "black ."? To apply across the whole repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to
black --check .in commit2de4ca8. Also fixed the two additional files that needed reformatting (spring-cart-interactive.py) and the F403 star import in__init__.py.