Skip to content
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

fix: simplify and prepare for next release #301

Merged
merged 1 commit into from
Oct 28, 2023
Merged

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Oct 27, 2023

Simplified the Ruff config.

Will release after this.

@@ -20,10 +20,11 @@
<App
header={false}
deps={[
"sp-repo-review==2023.09.21",
"sp-repo-review==2023.10.27",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will make a release after this.

@@ -209,7 +211,6 @@ inspect and undo changes in git.
```toml
[tool.ruff]
src = ["src"]
exclude = []
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only required if you have a build folder (pypa/build, scikit-build-core), but not generally required, so dropping it here.

@@ -239,15 +240,8 @@ extend-select = [
]
ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not included by default, so moving to extend-select fixes this.

@@ -239,15 +240,8 @@ extend-select = [
]
ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
"PT004", # Use underscore for non-returning fixture (use usefixture instead)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of specific, and it's not the only un-ideal PT code. Let's let users add them as they need them.

]
typing-modules = ["mypackage._compat.typing"]
unfixable = [
"T20", # Removes print statements
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually not a fix.

]
typing-modules = ["mypackage._compat.typing"]
unfixable = [
"T20", # Removes print statements
"F841", # Removes unused variables
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now an "unsafe-fix", so it's not required to list it.

"T20", # Removes print statements
"F841", # Removes unused variables
]
flake8-unused-arguments.ignore-variadic-names = true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is too specific, not always needed or can be correctly avoided.

@henryiii henryiii force-pushed the henryiii/fix/simplenext branch from 1623c57 to e454368 Compare October 27, 2023 19:24
@henryiii henryiii merged commit 1d6bbeb into main Oct 28, 2023
24 checks passed
@henryiii henryiii deleted the henryiii/fix/simplenext branch October 28, 2023 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant