Skip to content

fix: simplify and prepare for next release#301

Merged
henryiii merged 1 commit into
mainfrom
henryiii/fix/simplenext
Oct 28, 2023
Merged

fix: simplify and prepare for next release#301
henryiii merged 1 commit into
mainfrom
henryiii/fix/simplenext

Conversation

@henryiii

@henryiii henryiii commented Oct 27, 2023

Copy link
Copy Markdown
Collaborator

Simplified the Ruff config.

Will release after this.

header={false}
deps={[
"sp-repo-review==2023.09.21",
"sp-repo-review==2023.10.27",

Copy link
Copy Markdown
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.

```toml
[tool.ruff]
src = ["src"]
exclude = []

Copy link
Copy Markdown
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.

]
ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long

Copy link
Copy Markdown
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.

ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
"PT004", # Use underscore for non-returning fixture (use usefixture instead)

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@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
@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