cog
Resolve or ignore Ruff and Pylint warnings
#1825
Merged

Resolve or ignore Ruff and Pylint warnings #1825

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

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone