Resolve or ignore Ruff and Pylint warnings #1825
mattt
requested a review
1 year ago
mattt
commented
on 2024-07-25
mattt
commented
on 2024-07-25
mattt
commented
on 2024-07-25
mattt
commented
on 2024-07-25
mattt
commented
on 2024-07-25
mattt
commented
on 2024-07-25
mattt
commented
on 2024-07-25
Add pylint tool settings to pyproject.toml
f5523383
Fix R1732: Consider using 'with' for resource-allocating operations (…
32f7ed02
Fix W3101: Missing timeout argument for method 'requests.put' can cau…
111675e3
Fix R1705: Unnecessary else after return, remove the else and de-inde…
1a71b263
Fix W3101: Missing timeout argument for method 'requests.get' can cau…
e94313db
Fix R1732: Consider using 'with' for resource-allocating operations (…
46ed7342
Fix R1720: Unnecessary else after raise, remove the else and de-inden…
669ec722
Fix R1723: Unnecessary elif after break, remove the leading el from e…
3a7877a6
Fix W0201: Attribute '_stream_redirector' defined outside __init__ (a…
47507971
Fix E0401: Unable to import 'requests.packages.urllib3.util.retry' (i…
512acd3e
Fix W0223: Method '__next__' is abstract in class 'Iterator' but is n…
f1ae4b62
Fix R1710: Either all return statements in a function should return a…
f41eb39d
Fix R0402: Use 'from cog import code_xforms' instead (consider-using-…
bbf1d73c
Fix W0107: Unnecessary pass statement (unnecessary-pass)
23a146e0
Fix W1514: Using open without explicitly specifying an encoding (unsp…
2430dcd4
Fix R1720: Unnecessary elif after raise, remove the leading el from e…
da1c9bd5
Fix R1732: Consider using 'with' for resource-allocating operations (…
27427075
Fix R1714: Consider merging these comparisons with 'in' by using 'par…
ad20b035
Fix R1705: Unnecessary elif after return, remove the leading el from …
1c3c6802
R1705: Unnecessary else after return, remove the else and de-indent t…
dd6d2623
Fix W1514: Using open without explicitly specifying an encoding (unsp…
8d3ae962
Refactor type checking for cog.http
9ad53ba8
Refactor await_explicit_shutdown in cog.http
00eeae2f
Fix R1705: Unnecessary else after return, remove the else and de-inde…
9698e319
Fix C0103: Constant name "threads" doesn't conform to UPPER_CASE nami…
30bf7b17
Fix W0621: Redefining name 's' from outer scope (line 574) (redefined…
bbdfea12
Fix W1508: os.getenv default type is builtins.int. Expected str or No…
81598548
Fix R1722: Consider using 'sys.exit' instead (consider-using-sys-exit)
d1fd2b79
Fix R1705: Unnecessary elif after return, remove the leading el from…
9225adc7
Fix W1203: Use lazy % formatting in logging functions (logging-fstrin…
5907b9a0
Ignore remaining pylint warnings
9078eb22
mattt
force pushed
from
49b241b4
to
9078eb22
1 year ago
mattt
changed the title Resolve or ignore pylint warnings Resolve or ignore Pylint warnings 1 year ago
Ignore Pyright warnings
295cad2b
Revert "Fix R1732: Consider using 'with' for resource-allocating oper…
7c7042fb
Revert "Fix W0223: Method '__next__' is abstract in class 'Iterator' …
2135171d
mattt
changed the title Resolve or ignore Pylint warnings Resolve or ignore Ruff and Pylint warnings 1 year ago
mattt
merged
d8a81ef7
into main 1 year ago
mattt
deleted the mattt/fix-pylint-warnings branch 1 year ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub