Teal Dulcet
542835655f
Fixed FURB122 (for-loop-writes): Use of f.write
in a for loop
2025-03-21 05:12:13 -07:00
Teal Dulcet
6e23d9d223
Fixed SIM118 (in-dict-keys): Use key in dict
instead of key in dict.keys()
2025-03-21 05:12:13 -07:00
Teal Dulcet
44ba1e9e9f
Fixed EM101 (raw-string-in-exception): Exception must not use a string literal, assign to variable first
2025-03-21 05:12:13 -07:00
Teal Dulcet
a502f3ea7d
Fixed RUF059 (unused-unpacked-variable)
2025-03-21 05:12:13 -07:00
Teal Dulcet
0402b23eb4
Fixed FURB129 (readlines-in-for): Instead of calling readlines()
, iterate over file object directly
2025-03-21 05:12:13 -07:00
Teal Dulcet
6fc049353c
Fixed UP015 (redundant-open-modes): Unnecessary mode argument
2025-03-21 05:12:13 -07:00
Teal Dulcet
1438be290a
Fixed RET505 (superfluous-else-return): Unnecessary else
after return
statement
2025-03-21 05:11:49 -07:00
Teal Dulcet
7e0015ed84
Explicitly removed temporary file and deleted outdated comment.
2025-03-21 05:11:48 -07:00
Teal Dulcet
4e9c108ec9
Fixed PERF102 (incorrect-dict-iterator): When using only the keys of a dict use the keys()
method
2025-03-21 05:11:48 -07:00
Teal Dulcet
3d3311ad2a
Fixed SIM117 (multiple-with-statements): Use a single with
statement with multiple contexts instead of nested with
statements
2025-03-21 05:11:48 -07:00
Teal Dulcet
0564d1abc8
Fixed UP032 (f-string): Use f-string instead of format
call
2025-03-21 05:11:48 -07:00
Teal Dulcet
6883f1d599
Fixed RUF039 (unraw-re-pattern)
2025-03-21 05:11:48 -07:00
Teal Dulcet
b305871051
Fixed ARG005 (unused-lambda-argument): Unused lambda argument: alias
2025-03-21 05:11:48 -07:00
Teal Dulcet
9fb9af5ed5
Fixed SIM115 (open-file-with-context-handler): Use a context manager for opening files
2025-03-21 05:11:47 -07:00
Teal Dulcet
386e8a414e
Fixed RUF005 (collection-literal-concatenation): Consider iterable unpacking instead of concatenation
2025-03-21 05:11:47 -07:00
Teal Dulcet
7ff9d0805e
Fixed B007 (unused-loop-control-variable)
2025-03-21 05:11:47 -07:00
Teal Dulcet
854e8f4a85
Fixed TRY300 (try-consider-else): Consider moving this statement to an else
block
2025-03-21 05:11:47 -07:00
Teal Dulcet
1c98189cca
Fixed G004 (logging-f-string): Logging statement uses f-string
2025-03-21 05:11:47 -07:00
Teal Dulcet
4e1dd3fee5
Fixed RET505 (superfluous-else-return): Unnecessary elif
after return
statement
2025-03-21 05:11:47 -07:00
Teal Dulcet
c82b84ccc8
Fixed TRY003 (raise-vanilla-args): Avoid specifying long messages outside the exception class
2025-03-21 05:11:47 -07:00
Teal Dulcet
1d6560af4c
Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format
2025-03-21 05:11:46 -07:00
Teal Dulcet
cd764e537d
Fixed PLC1901 (compare-to-empty-string)
2025-03-21 05:11:06 -07:00
Teal Dulcet
9d81ff5ccb
Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag
2025-03-21 05:11:06 -07:00
Teal Dulcet
c3343ce866
Fixed EM102 (f-string-in-exception): Exception must not use an f-string literal, assign to variable first
2025-03-21 05:11:06 -07:00
Teal Dulcet
205f84b2fb
Fixed RET506 (superfluous-else-raise): Unnecessary elif
after raise
statement
2025-03-21 05:11:06 -07:00
Teal Dulcet
430ee05b8a
Fixed PLW1514 (unspecified-encoding): open
in text mode without explicit encoding
argument
2025-03-21 05:11:05 -07:00
Teal Dulcet
de5fc42650
Fixed FURB110 (if-exp-instead-of-or-operator): Replace ternary if
expression with or
operator
2025-03-21 04:39:07 -07:00
Teal Dulcet
386055b941
Fixed UP032 (f-string): Use f-string instead of format
call
2025-03-21 04:39:06 -07:00
Teal Dulcet
4a7ea325e9
Fixed FURB142 (for-loop-set-mutations): Use of set.add()
in a for loop
2025-03-21 04:39:06 -07:00
Teal Dulcet
2ddbe12d0c
Fixed SIM101 (duplicate-isinstance-call): Multiple isinstance
calls for pem
, merge into a single call
2025-03-21 04:39:06 -07:00
Teal Dulcet
32189af10f
Fixed PGH004 (blanket-noqa): Use a colon when specifying noqa
rule codes
2025-03-21 04:39:06 -07:00
Teal Dulcet
80406de428
Fixed RUF031 (incorrectly-parenthesized-tuple-in-subscript): Avoid parentheses for tuples in subscripts
2025-03-21 04:39:05 -07:00
Teal Dulcet
4e3e85cd14
Fixed RUF039 (unraw-re-pattern)
2025-03-21 04:39:05 -07:00
Teal Dulcet
d31716a9c7
Fixed RET507 (superfluous-else-continue): Unnecessary elif
after continue
statement
2025-03-21 04:39:05 -07:00
Teal Dulcet
3f7e7336b1
Fixed F401 (unused-import): contextlib
imported but unused
2025-03-21 04:39:05 -07:00
Teal Dulcet
0c44319864
Fixed SIM103 (needless-bool): Return the condition not "admin" not in privs
directly
2025-03-21 04:39:05 -07:00
Teal Dulcet
d9d6e96d69
Fixed RUF051 (if-key-in-dict-del): Use pop
instead of key in dict
followed by del dict[key]
2025-03-21 04:39:04 -07:00
Teal Dulcet
1d795953bb
Fixed FURB188 (slice-to-remove-prefix-or-suffix): Prefer removeprefix
over conditionally replacing with slice.
2025-03-21 04:39:04 -07:00
Teal Dulcet
9cd5f4a41a
Fixed PLR6104 (non-augmented-assignment): Use +=
to perform an augmented assignment directly
2025-03-21 04:39:04 -07:00
Teal Dulcet
18f4bafdc9
Fixed RET505 (superfluous-else-return)
2025-03-21 04:39:04 -07:00
Teal Dulcet
fda9b09562
Fixed PLW0120 (useless-else-on-loop): else
clause on loop without a break
statement; remove the else
and dedent its contents
2025-03-21 04:39:04 -07:00
Teal Dulcet
70aff052b6
Fixed FURB118 (reimplemented-operator)
2025-03-21 04:39:03 -07:00
Teal Dulcet
de9781af5a
Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format
2025-03-21 04:39:03 -07:00
Victor
a81c18666f
Clear credentials and reset menu after receiving 403 ( #2477 )
2025-02-16 17:01:51 -05:00
Michael Meidlinger
01996141ad
Allow boto to get S3 credentials for backups from environment variables if access key is blank ( #2260 )
...
In case that no static AWS credentials are specified, we try to create the boto3 client without explicitly passing static credentials. This way, we can benedit from dynamic credentials in AWS environments (e.g. using EC2 instance roles)
2025-02-16 16:51:48 -05:00
Joshua Tauberer
c0103045be
Add configurable mailbox quotas ( #2387 )
2025-02-16 15:18:32 -05:00
Joshua Tauberer
f73da3db60
Fix likely merge mistake in 564ed59bb4
...
Fixes #2466
2025-01-04 14:28:36 -05:00
Chad Furman
7f9a348d64
removing 'quota' from user output
2024-12-28 17:10:50 -05:00
Chad Furman
ac383ced4d
cli.py user now prints '0' rather than 'unlimited' for quota
2024-12-28 17:10:50 -05:00
Chad Furman
450c1924d8
cli script fixes were broken
2024-12-28 17:10:50 -05:00