-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Mypy + Ruff #269
Mypy + Ruff #269
Conversation
Cool, I have wanted to do this for a long time, but didn’t have the bandwidth. |
a965178
to
16c19d1
Compare
Ruff: format all files py.typed: create file Makefile: add `make format` - type check with Mypy Makefile: add `make lint` - lint and format check with Ruff Github actions: make lint before build
@yifeikong Done |
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.
Thanks You!
`make lint`: а) Ruff linter checking, b) Ruff formatter checking, c) Mypy type checking; `make format`: a) Ruff linter fix, b) Ruff formatter fix. Co-authored-by: T-256 <[email protected]>
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.
LGTM, Thanks!
We can make |
c6deb61
to
c1e71bf
Compare
@yifeikong 🏁 |
Mypy check + Ruff lint + Ruff format.
New commands in
Makefile
:make lint
:а) Ruff linter checking,
b) Ruff formatter checking,
c) Mypy type checking;
make format
:a) Ruff linter fix,
b) Ruff formatter fix.