Teal Dulcet
|
a568c6ff74
|
Fixed RET505 (superfluous-else-return): Unnecessary elif after return statement
|
2025-06-20 02:40:08 -07:00 |
|
Teal Dulcet
|
d15170b18c
|
Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag
|
2025-06-20 02:40:08 -07:00 |
|
Teal Dulcet
|
bf27ac07ed
|
Fixed EM102 (f-string-in-exception): Exception must not use an f-string literal, assign to variable first
|
2025-06-20 02:40:07 -07:00 |
|
Teal Dulcet
|
54750b1763
|
Fixed RET506 (superfluous-else-raise): Unnecessary elif after raise statement
|
2025-06-20 02:40:07 -07:00 |
|
Teal Dulcet
|
5c9c1705d0
|
Fixed RET504 (unnecessary-assign): Unnecessary assignment to v before return statement
|
2025-06-20 02:40:06 -07:00 |
|
Teal Dulcet
|
529c7e6dd5
|
Fixed RUF055 (unnecessary-regular-expression): Plain string pattern passed to re function
|
2025-06-20 02:40:06 -07:00 |
|
Teal Dulcet
|
ed1579a5c6
|
Fixed Q003 (avoidable-escaped-quote): Change outer quotes to avoid escaping inner quotes
|
2025-06-20 02:40:06 -07:00 |
|
Teal Dulcet
|
8aef7aef64
|
Fixed W605 (invalid-escape-sequence)
|
2025-06-20 02:40:05 -07:00 |
|
Teal Dulcet
|
560677085e
|
Fixed F841 (unused-variable): Local variable conffile is assigned to but never used
|
2025-06-20 02:40:04 -07:00 |
|
Teal Dulcet
|
89e4adcfb5
|
Fixed PLR6201 (literal-membership): Use a set literal when testing for membership
|
2025-06-20 02:40:04 -07:00 |
|
Teal Dulcet
|
5c30299461
|
Fixed FURB122 (for-loop-writes): Use of f.write in a for loop
|
2025-06-20 02:40:03 -07:00 |
|
Teal Dulcet
|
b546ccd162
|
Fixed FURB110 (if-exp-instead-of-or-operator): Replace ternary if expression with or operator
|
2025-06-20 02:40:03 -07:00 |
|
Teal Dulcet
|
562f76e61f
|
Fixed UP032 (f-string): Use f-string instead of format call
|
2025-06-20 02:40:03 -07:00 |
|
Teal Dulcet
|
04ed752948
|
Fixed FURB142 (for-loop-set-mutations): Use of set.add() in a for loop
|
2025-06-20 02:40:02 -07:00 |
|
Teal Dulcet
|
c3826e45aa
|
Fixed SIM101 (duplicate-isinstance-call): Multiple isinstance calls for pem, merge into a single call
|
2025-06-20 02:40:02 -07:00 |
|
Teal Dulcet
|
fd2696a42c
|
Fixed RUF059 (unused-unpacked-variable)
|
2025-06-20 02:40:01 -07:00 |
|
Teal Dulcet
|
213e449dfe
|
Fixed FURB129 (readlines-in-for): Instead of calling readlines(), iterate over file object directly
|
2025-06-20 02:40:01 -07:00 |
|
Teal Dulcet
|
ee11f3849b
|
Fixed UP015 (redundant-open-modes): Unnecessary mode argument
|
2025-06-20 02:40:00 -07:00 |
|
Teal Dulcet
|
498e92dc95
|
Fixed PLW1514 (unspecified-encoding): open in text mode without explicit encoding argument
|
2025-06-20 02:40:00 -07:00 |
|
Teal Dulcet
|
66f140a8cf
|
Fixed PGH004 (blanket-noqa): Use a colon when specifying noqa rule codes
|
2025-06-20 02:40:00 -07:00 |
|
Teal Dulcet
|
717e806427
|
Fixed RUF031 (incorrectly-parenthesized-tuple-in-subscript): Avoid parentheses for tuples in subscripts
|
2025-06-20 02:39:59 -07:00 |
|
Teal Dulcet
|
eae0db9df1
|
Fixed RUF039 (unraw-re-pattern)
|
2025-06-20 02:39:59 -07:00 |
|
Teal Dulcet
|
e73771be5f
|
Fixed RET507 (superfluous-else-continue): Unnecessary elif after continue statement
|
2025-06-20 02:39:58 -07:00 |
|
Teal Dulcet
|
0635e89b6e
|
Fixed F401 (unused-import): contextlib imported but unused
|
2025-06-20 02:39:58 -07:00 |
|
Teal Dulcet
|
e3ef6d726b
|
Fixed SIM103 (needless-bool): Return the condition "admin" in privs directly
|
2025-06-20 02:39:58 -07:00 |
|
Teal Dulcet
|
3fa0819e04
|
Fixed G004 (logging-f-string): Logging statement uses f-string
|
2025-06-20 02:39:57 -07:00 |
|
Teal Dulcet
|
d5d4ba0bf1
|
Fixed RUF051 (if-key-in-dict-del): Use pop instead of key in dict followed by del dict[key]
|
2025-06-20 02:39:57 -07:00 |
|
Teal Dulcet
|
a83db1aebc
|
Fixed FURB188 (slice-to-remove-prefix-or-suffix): Prefer str.removeprefix() over conditionally replacing with slice.
|
2025-06-18 05:00:46 -07:00 |
|
Teal Dulcet
|
ddee3c6bfd
|
Fixed PLR6104 (non-augmented-assignment): Use += to perform an augmented assignment directly
|
2025-06-18 05:00:45 -07:00 |
|
Teal Dulcet
|
dbabd69218
|
Fixed RET505 (superfluous-else-return)
|
2025-06-18 05:00:45 -07:00 |
|
Teal Dulcet
|
3008dfa28f
|
Fixed EM101 (raw-string-in-exception): Exception must not use a string literal, assign to variable first
|
2025-06-18 05:00:45 -07:00 |
|
Teal Dulcet
|
3a1280d292
|
Fixed PLW0120 (useless-else-on-loop): else clause on loop without a break statement; remove the else and dedent its contents
|
2025-06-18 05:00:22 -07:00 |
|
Teal Dulcet
|
68fd3dc535
|
Fixed FURB118 (reimplemented-operator)
|
2025-06-18 04:17:27 -07:00 |
|
Teal Dulcet
|
c64a24e870
|
Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format
|
2025-06-18 04:17:03 -07:00 |
|
Teal Dulcet
|
698e8ffc72
|
Added Ruff config for Python code.
|
2025-06-18 04:13:33 -07:00 |
|
Teal Dulcet
|
544cce3cdc
|
Fixed syntax in readable_bash.py.
|
2025-06-18 04:13:33 -07:00 |
|
Teal Dulcet
|
c7faccf1fa
|
Fixed SC2244: Prefer explicit -n to check non-empty string.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
ec497efa69
|
Quote echo commands to preserve whitespace.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
55a8be4aa9
|
Removed unnecessary bc commands.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
3399b25084
|
Replaced the pwd command with Bash's $PWD variable.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
2afd0451c1
|
Fixed SC2007: Use $((..)) instead of deprecated $[..].
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
27cf11d8ec
|
Fixed SC2005: Useless echo.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
44d9f6eebd
|
Fixed SC2236: Use -n instead of ! -z.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
4b7d4ba0a6
|
Fixed SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
67bcaea71e
|
Fixed SC2091: Remove surrounding $() to avoid executing output.
|
2024-04-03 09:22:50 -04:00 |
|
Teal Dulcet
|
bdf4155bed
|
Fixed SC2046: Quote to prevent word splitting.
|
2024-04-03 09:21:34 -04:00 |
|
Teal Dulcet
|
f1888f2043
|
Fixed SC2148: Add a shebang.
|
2024-04-03 09:21:34 -04:00 |
|
Teal Dulcet
|
33559bb844
|
Fixed SC2164: Use 'cd ... || exit' in case cd fails.
|
2024-04-03 09:21:34 -04:00 |
|
Teal Dulcet
|
30c4681e80
|
Fixed SC2086: Double quote to prevent globbing and word splitting.
|
2024-04-03 09:20:20 -04:00 |
|
Teal Dulcet
|
133bae1300
|
Fixed SC2006: Use $(...) notation instead of legacy backticks ....
|
2024-04-03 05:17:25 -07:00 |
|
Teal Dulcet
|
dbc2b5eee0
|
Fixed ISC003 (explicit-string-concatenation): Explicitly concatenated string should be implicitly concatenated
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
775a4223de
|
Fixed F821 (undefined-name): Undefined name e
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
618c466b84
|
Fixed SIM114 (if-with-same-arms): Combine if branches using logical or operator
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
a32354fd91
|
Fixed PLR5501 (collapsible-else-if): Use elif instead of else then if, to reduce indentation
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
1d79f9bb2b
|
Fixed PERF401 (manual-list-comprehension): Use a list comprehension to create a transformed list
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
cacf6d2006
|
Fixed E721 (type-comparison): Use is and is not for type comparisons, or isinstance() for isinstance checks
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
f0377dd59e
|
Fixed SIM105 (suppressible-exception)
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
6a47133e3f
|
Fixed F811 (redefined-while-unused): Redefinition of unused sys from line 10
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
7f456d8e8b
|
Fixed ISC002 (multi-line-implicit-string-concatenation): Implicitly concatenated string literals over multiple lines
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
e466b9bb53
|
Fixed RUF005 (collection-literal-concatenation)
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
0e9193651d
|
Fixed PLW1514 (unspecified-encoding): open in text mode without explicit encoding argument
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
a02b59d4e4
|
Fixed F401 (unused-import): socket.timeout imported but unused
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
15bddcbc39
|
Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
c719fce40a
|
Fixed UP032 (f-string): Use f-string instead of format call
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
3111cf56de
|
Fixed EM102 (f-string-in-exception): Exception must not use an f-string literal, assign to variable first
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
6508d47da1
|
Fixed C405 (unnecessary-literal-set): Unnecessary list literal (rewrite as a set literal)
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
9b961b7ba0
|
Fixed UP024 (os-error-alias): Replace aliased errors with OSError
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
b13cef9b1d
|
Fixed PIE790 (unnecessary-placeholder): Unnecessary pass statement
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
8b9d3ec094
|
Fixed W292 (missing-newline-at-end-of-file): No newline at end of file
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
d1d3d08d70
|
Fixed B006 (mutable-argument-default): Do not use mutable data structures for argument defaults
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
922c59ddaf
|
Fixed SIM212 (if-expr-with-twisted-arms): Use with_lines if with_lines else [] instead of [] if not with_lines else with_lines
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
20a99c0ab8
|
Fixed UP041 (timeout-error-alias): Replace aliased errors with TimeoutError
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
54af4725f9
|
Fixed C404 (unnecessary-list-comprehension-dict): Unnecessary list comprehension (rewrite as a dict comprehension)
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
fd4fcdaf53
|
Fixed E712 (true-false-comparison): Comparison to False should be cond is False or if not cond:
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
d661d623dc
|
Fixed RUF017 (quadratic-list-summation): Avoid quadratic list summation
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
f621789298
|
Fixed SIM118 (in-dict-keys): Use key in dict instead of key in dict.keys()
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
ec32e1d578
|
Fixed E703 (useless-semicolon): Statement ends with an unnecessary semicolon
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
57dcd4bb51
|
Fixed E713 (not-in-test): Test for membership should be not in
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
845393b6e0
|
Fixed RET503 (implicit-return): Missing explicit return at the end of function able to return non-None value
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
c585c1ecf6
|
Fixed W291 (trailing-whitespace): Trailing whitespace
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
e0e6f1081b
|
Fixed C414 (unnecessary-double-cast-or-process): Unnecessary list call within sorted()
|
2024-03-10 07:56:49 -04:00 |
|
Teal Dulcet
|
4999ed7b1c
|
Fixed Q003 (avoidable-escaped-quote): Change outer quotes to avoid escaping inner quotes
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
ca8f06d590
|
Fixed PLR1711 (useless-return): Useless return statement at end of function
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
57d05c1ab2
|
Fixed B007 (unused-loop-control-variable)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
c953e5784d
|
Fixed C401 (unnecessary-generator-set): Unnecessary generator (rewrite as a set comprehension)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
81a4da0181
|
Fixed SIM110 (reimplemented-builtin)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
99d3929f99
|
Fixed E711 (none-comparison)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
541f31b1ba
|
Fixed FURB113 (repeated-append)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
e8d1c037cb
|
Fixed SIM102 (collapsible-if): Use a single if statement instead of nested if statements
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
67b9d0b279
|
Fixed PLW0108 (unnecessary-lambda): Lambda may be unnecessary; consider inlining inner function
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
3d72c32b1d
|
Fixed W605 (invalid-escape-sequence)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
14a5613dc8
|
Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
64540fbb44
|
Fixed UP034 (extraneous-parentheses): Avoid extraneous parentheses
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
eefc0514b2
|
Fixed UP030 (format-literals): Use implicit references for positional format fields
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
fba92de051
|
Fixed SIM108 (if-else-block-instead-of-if-exp)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
51dc7615f7
|
Fixed RSE102 (unnecessary-paren-on-raise-exception): Unnecessary parentheses on raised exception
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
13b38cc04d
|
Fixed F841 (unused-variable)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
2b426851f9
|
Fixed UP032 (f-string): Use f-string instead of format call
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
b7f70b17ac
|
Fixed RET504 (unnecessary-assign)
|
2024-03-10 07:54:51 -04:00 |
|
Teal Dulcet
|
6bfd1e5140
|
Fixed W293 (blank-line-with-whitespace): Blank line contains whitespace
|
2024-03-10 07:54:51 -04:00 |
|