-
Notifications
You must be signed in to change notification settings - Fork 22
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
Switch to Ruff #115
Merged
Switch to Ruff #115
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
012629a
Switch to ruff
twm 8065097
ruff format
twm 837a149
Avoid redirect
twm d5e5d3b
Ruff doesn't know how to upgrade type comments
twm 604503b
Purge flake8
twm 39c045a
Translate the rest of the type comments
twm 1d391d9
Replace % formatting
twm 3c00512
Don't install in the lint env
twm e44ca67
ruff 0.6.4
twm c21d877
Allow tox -e lint -- --fix
twm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "friday" | ||
|
||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "friday" | ||
ignore: | ||
- dependency-name: ruff | ||
update-types: | ||
# Cut the frequency of linter Dependabot PRs. | ||
# Ruff is 0ver, so this ignores all non-"major" releases. | ||
- "version-update:semver-patch" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ backend-path = [".", "./src"] # See _build_meta.py | |
build-backend = "_build_meta:build_meta" | ||
|
||
[project] | ||
name = "incremental" | ||
name = "Incremental" | ||
dynamic = ["version"] | ||
maintainers = [ | ||
{name = "Amber Brown", email = "[email protected]"}, | ||
|
@@ -60,8 +60,16 @@ version = {attr = "incremental._setuptools_version"} | |
|
||
[tool.incremental] | ||
|
||
[tool.black] | ||
target-version = ['py36', 'py37', 'py38'] | ||
[tool.ruff.lint] | ||
select = [ | ||
"E", | ||
"F", | ||
"UP", | ||
"I", | ||
] | ||
ignore = [ | ||
"E501", | ||
] | ||
|
||
[tool.towncrier] | ||
filename = "NEWS.rst" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.10 | ||
# by the following command: | ||
# | ||
# pip-compile --output-file=requirements_lint.txt requirements_lint.in | ||
# | ||
ruff==0.6.4 | ||
# via -r requirements_lint.in |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
just asking.
Why do we need this ?
Why not define this dependency as an extra for
dev
via[options.extras_require]
?pip install -e .[dev]
I expect that anyone that will do dev work on this repo, will need to install
ruff
.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.
The pinned
.txt
is what Dependabot updates.I'm generally not a fan of defining a
dev
extra because I don't think that this sort of tooling should be part of the public contract thatpyproject.toml
expresses.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.
ok. No problem.
I was expencting dependbot to handle pyproject.toml https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#pip-and-pip-compile