-
Notifications
You must be signed in to change notification settings - Fork 1
fix: correct import sorting and pin tool versions to fix CI lint #153
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 5 commits
e513b59
be7f923
65a02f5
28d2fb6
58590d5
4dcc55f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -56,10 +56,10 @@ repos: | |||||||||||||||||||||
| rev: v0.9.0 | ||||||||||||||||||||||
| hooks: | ||||||||||||||||||||||
| - id: unasyncd | ||||||||||||||||||||||
| additional_dependencies: [ "ruff" ] | ||||||||||||||||||||||
| additional_dependencies: [ "ruff>=0.14.10,<0.15" ] | ||||||||||||||||||||||
|
Owner
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. Version constraint should be in sync with
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. Oh I didnt saw that, I will fix it
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. Fixed 4dcc55f |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - repo: https://github.com/charliermarsh/ruff-pre-commit | ||||||||||||||||||||||
|
Owner
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. We should also replace this hook with a system one, invoking mise targets
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. I think is a nice improvement, I will add it
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. Added 4dcc55f |
||||||||||||||||||||||
| rev: v0.13.0 | ||||||||||||||||||||||
| rev: v0.14.10 | ||||||||||||||||||||||
| hooks: | ||||||||||||||||||||||
| - id: ruff-check | ||||||||||||||||||||||
| types_or: [ python, pyi ] | ||||||||||||||||||||||
|
|
@@ -71,16 +71,17 @@ repos: | |||||||||||||||||||||
| hooks: | ||||||||||||||||||||||
| - id: lint | ||||||||||||||||||||||
| name: lint | ||||||||||||||||||||||
| entry: mise run lint:pre-commit | ||||||||||||||||||||||
| language: python | ||||||||||||||||||||||
| entry: tools/mise run lint:pre-commit | ||||||||||||||||||||||
|
Owner
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. This should not be needed, as
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. Since this repo already have a mise in this folder I thought will be nice to already use it in CI and in local env. |
||||||||||||||||||||||
| language: system | ||||||||||||||||||||||
| types: [ python ] | ||||||||||||||||||||||
| pass_filenames: false | ||||||||||||||||||||||
| require_serial: true | ||||||||||||||||||||||
|
Comment on lines
+79
to
83
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. Fix bracket spacing. Same bracket spacing issue at line 81. Proposed fix- types: [ python ]
+ types: [python]📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.38.0)[error] 81-81: too many spaces inside brackets (brackets) [error] 81-81: too many spaces inside brackets (brackets) 🤖 Prompt for AI Agents |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - repo: local | ||||||||||||||||||||||
| hooks: | ||||||||||||||||||||||
| - id: task-docs | ||||||||||||||||||||||
| name: Tasks documentation | ||||||||||||||||||||||
| entry: mise run render:usage | ||||||||||||||||||||||
| entry: tools/mise run render:usage | ||||||||||||||||||||||
| language: system | ||||||||||||||||||||||
| files: ^mise.toml$ | ||||||||||||||||||||||
| pass_filenames: false | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Fix YAML bracket spacing to clear lint errors.
Line 59 and Line 76 use spaced bracket style that triggers YAMLlint
bracketserrors.Proposed fix
Also applies to: 76-76
🧰 Tools
🪛 YAMLlint (1.38.0)
[error] 59-59: too many spaces inside brackets
(brackets)
[error] 59-59: too many spaces inside brackets
(brackets)
🤖 Prompt for AI Agents