-
Notifications
You must be signed in to change notification settings - Fork 3
Preview/pylint #61
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?
Preview/pylint #61
Changes from all commits
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
reviews: | ||
tools: | ||
# oxlint does not run if biome is enabled | ||
ruff: | ||
enabled: false | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[tool.pylint.main] | ||
# Fail on any warning or error | ||
fail-under = 10.0 | ||
output-format = "colorized" | ||
reports = true | ||
|
||
[tool.pylint.messages_control] | ||
# Enable all messages | ||
disable = [] | ||
|
||
[tool.pylint.basic] | ||
# Enable all basic coding checks | ||
good-names = [] | ||
bad-names = ["foo", "bar", "baz", "tmp", "test"] | ||
|
||
[tool.pylint.format] | ||
max-line-length = 88 | ||
indent-string = " " | ||
|
||
[tool.pylint.design] | ||
max-args = 5 | ||
max-locals = 15 | ||
max-returns = 6 | ||
max-branches = 12 | ||
max-statements = 50 | ||
|
||
[tool.pylint.similarities] | ||
# Enable all similarity checks | ||
min-similarity-lines = 4 | ||
|
||
[tool.pylint.typecheck] | ||
ignore-mixin-members = false | ||
|
||
[tool.pylint.imports] | ||
# Warn about any import issue | ||
known-standard-library = [] | ||
|
||
[tool.pylint.logging] | ||
logging-modules = ["logging"] | ||
|
||
[tool.pylint.variables] | ||
# Warn on all variable issues | ||
dummy-variables-rgx = "^_.*|dummy" | ||
|
||
[tool.pylint.spelling] | ||
spelling-dict = "" | ||
spelling-ignore-words = [] | ||
spelling-private-dict-file = "" | ||
|
||
[tool.pylint.reports] | ||
output-format = "colorized" | ||
reports = true | ||
score = true |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,5 @@ | ||||||||||
print("Hello World') | ||||||||||
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 the syntax error. The string literal has mismatched quotation marks, causing a parsing error that prevents proper linting and execution. Apply this diff to fix the syntax error: -print("Hello World')
+print("Hello World") 📝 Committable suggestion
Suggested change
🧰 Tools🪛 Pylint (3.3.7)[error] 1-1: Parsing failed: 'unterminated string literal (detected at line 1) (test, line 1)' (E0001) 🤖 Prompt for AI Agents
|
||||||||||
print(1+"a") | ||||||||||
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 the TypeError. Attempting to add an integer and string will raise a TypeError at runtime. Apply this diff to fix the type error: -print(1+"a")
+print(str(1)+"a") # or print(1+ord("a")) depending on intent 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||
|
||||||||||
test=1 | ||||||||||
foo=2 | ||||||||||
Comment on lines
+4
to
+5
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. Variable names violate pylint configuration. The variables Apply this diff to use more descriptive variable names: -test=1
-foo=2
+sample_value=1
+another_value=2 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
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 trailing spaces.
The static analysis tool detected trailing spaces on line 4. Please remove them for cleaner formatting.
Apply this diff to fix the trailing spaces:
📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 4-4: trailing spaces
(trailing-spaces)
🤖 Prompt for AI Agents