-
Notifications
You must be signed in to change notification settings - Fork 4
chore: migrate from flake8/isort/black/pyupgrade to ruff #38
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: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,9 +95,16 @@ ignore_missing_imports = true | |
| disallow_subclassing_any = false | ||
| files = ["src"] | ||
|
|
||
| [tool.isort] | ||
| profile = "black" | ||
| known_first_party = ["mddj"] | ||
| [tool.ruff] | ||
| line-length = 88 | ||
| show-fixes = true | ||
|
|
||
| [tool.ruff.lint] | ||
| select = ["E4", "E7", "E9", "F", "B", "C4", "I", "TCH", "UP"] | ||
|
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 I'm not sure what to do about that. I guess I could make it runnable as a module, with a
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. Ah, I see that. We can run flake8 just on a single prefix (I'm doing that for flake8-lazy in places).
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. Done |
||
| ignore = ["E203"] | ||
|
|
||
| [tool.ruff.lint.isort] | ||
| known-first-party = ["dependency_groups"] | ||
|
|
||
| [tool.check-sdist] | ||
| git-only = [".*", "Makefile", "docs/*", "scripts/*"] | ||
|
|
||
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.
🤦 That's slightly embarrassing. Clearly copy-pasta from mddj! Glad to see it fixed here.
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.
I was wondering, didn't see why dependency-groups would have started out named "mddj". ;P