1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-01-24 12:47:05 +00:00
Commit Graph

805 Commits

Author SHA1 Message Date
Teal Dulcet
9896bfb765 Fixed SIM117 (multiple-with-statements): Use a single with statement with multiple contexts instead of nested with statements 2025-01-12 07:37:35 -08:00
Teal Dulcet
bd0cb22467 Fixed UP032 (f-string): Use f-string instead of format call 2025-01-12 07:36:41 -08:00
Teal Dulcet
2021c6d501 Fixed RUF039 (unraw-re-pattern) 2025-01-12 07:27:27 -08:00
Teal Dulcet
daf6d70073 Fixed ARG005 (unused-lambda-argument): Unused lambda argument: alias 2025-01-12 07:12:44 -08:00
Teal Dulcet
f13ae569d0 Fixed SIM115 (open-file-with-context-handler): Use a context manager for opening files 2025-01-12 07:10:31 -08:00
Teal Dulcet
c59ff13c9f Fixed RUF005 (collection-literal-concatenation): Consider iterable unpacking instead of concatenation 2025-01-12 07:02:55 -08:00
Teal Dulcet
a0346b735b Fixed B007 (unused-loop-control-variable) 2025-01-12 07:00:47 -08:00
Teal Dulcet
77a7a29322 Fixed TRY300 (try-consider-else): Consider moving this statement to an else block 2025-01-12 06:55:42 -08:00
Teal Dulcet
9d9e900ca2 Fixed G004 (logging-f-string): Logging statement uses f-string 2025-01-12 06:50:13 -08:00
Teal Dulcet
554a161648 Fixed RET505 (superfluous-else-return): Unnecessary elif after return statement 2025-01-12 06:44:46 -08:00
Teal Dulcet
08329c18cd Fixed TRY003 (raise-vanilla-args): Avoid specifying long messages outside the exception class 2025-01-12 06:43:15 -08:00
Teal Dulcet
1d1a1a09c4 Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format 2025-01-12 06:38:20 -08:00
Teal Dulcet
1782b69405 Fixed PLC1901 (compare-to-empty-string) 2025-01-12 06:07:00 -08:00
Teal Dulcet
385ac086e6 Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag 2025-01-12 05:50:26 -08:00
Teal Dulcet
350b5b035a Fixed EM102 (f-string-in-exception): Exception must not use an f-string literal, assign to variable first 2025-01-12 05:50:26 -08:00
Teal Dulcet
c357fe83d2 Fixed RET506 (superfluous-else-raise): Unnecessary elif after raise statement 2025-01-12 05:50:26 -08:00
Teal Dulcet
11899920b7 Fixed FURB110 (if-exp-instead-of-or-operator): Replace ternary if expression with or operator 2025-01-12 05:50:24 -08:00
Teal Dulcet
93099ce8d8 Fixed UP032 (f-string): Use f-string instead of format call 2025-01-12 05:50:24 -08:00
Teal Dulcet
8a9d137dd3 Fixed FURB142 (for-loop-set-mutations): Use of set.add() in a for loop 2025-01-12 05:50:23 -08:00
Teal Dulcet
3646227873 Fixed SIM101 (duplicate-isinstance-call): Multiple isinstance calls for pem, merge into a single call 2025-01-12 05:50:23 -08:00
Teal Dulcet
f53679d561 Fixed PGH004 (blanket-noqa): Use a colon when specifying noqa rule codes 2025-01-12 05:50:23 -08:00
Teal Dulcet
9c7e329bd7 Fixed RUF031 (incorrectly-parenthesized-tuple-in-subscript): Avoid parentheses for tuples in subscripts 2025-01-12 05:50:23 -08:00
Teal Dulcet
58b9a59114 Fixed RUF039 (unraw-re-pattern) 2025-01-12 05:50:22 -08:00
Teal Dulcet
d27797b44b Fixed RET507 (superfluous-else-continue): Unnecessary elif after continue statement 2025-01-12 05:50:22 -08:00
Teal Dulcet
acef64b019 Fixed F401 (unused-import): contextlib imported but unused 2025-01-12 05:50:22 -08:00
Teal Dulcet
c75be2f8d2 Fixed SIM103 (needless-bool): Return the condition not "admin" not in privs directly 2025-01-12 05:50:16 -08:00
Teal Dulcet
5aded07843 Fixed RUF051 (if-key-in-dict-del): Use pop instead of key in dict followed by del dict[key] 2025-01-12 05:49:18 -08:00
Teal Dulcet
027918d494 Fixed FURB188 (slice-to-remove-prefix-or-suffix): Prefer removeprefix over conditionally replacing with slice. 2025-01-12 05:49:18 -08:00
Teal Dulcet
d09ca4561a Fixed PLR6104 (non-augmented-assignment): Use += to perform an augmented assignment directly 2025-01-12 05:49:18 -08:00
Teal Dulcet
f4cef66d93 Fixed RET505 (superfluous-else-return) 2025-01-12 05:49:18 -08:00
Teal Dulcet
d34a2059df Fixed PLW0120 (useless-else-on-loop): else clause on loop without a break statement; remove the else and dedent its contents 2025-01-12 05:49:17 -08:00
Teal Dulcet
9e33920db1 Fixed FURB118 (reimplemented-operator) 2025-01-12 05:49:17 -08:00
Teal Dulcet
b1e094afe5 Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format 2025-01-12 05:49:17 -08:00
Joshua Tauberer
f73da3db60 Fix likely merge mistake in 564ed59bb4
Fixes #2466
2025-01-04 14:28:36 -05:00
KiekerJan
2e0482e181
Exclude the owncloud-backup folder from the nightly backup (#2413) 2024-12-22 08:01:02 -05:00
Tomasz Stanczak
0d7388899c
Allow DSA end EllipticCurve private keys to be used additionally to RSA for HTTPS certificates (#2416)
Co-authored-by: Tomasz Stanczak <tomasz@cocoturtle.com>
2024-12-22 07:59:58 -05:00
zoof
4f094f7859
Change hour of daily tasks to run at 1am and only run full backups on weekends (#2424)
* Change hour of daily tasks to run at 1am
* Change to only do full backup on weekends
2024-12-22 07:57:59 -05:00
KiekerJan
564ed59bb4
Add check on ipv6 for spamhaus (#2428) 2024-12-22 07:48:36 -05:00
KiekerJan
9f87b36ba1
add check on SOA record to determine up to date synchronization of secondary nameserver (#2429) 2024-12-22 07:45:45 -05:00
Downtown Allday
a8d13b84b4
fix: NameError: name 'subprocess' is not defined (#2425) 2024-11-27 08:22:45 -05:00
Viktor Szépe
cd959bc522
Fix typos (#2406) 2024-07-21 07:01:25 -04:00
Matt
4dd1e75ee7
Allow for Union[None, List[datetime.datetime]] values when printing user table in weekly mail logs (#2378)
* Fix - Allow for `Union[None, List[datetime.datetime]]` when printing user
tables for the weekly mail logs.

* Add - ruff suppressions.
2024-06-18 08:35:54 -04:00
John James Jacoby
8b9f0489c8
Add custom.yaml support for WebSockets (#2385)
Fixes #1956.
2024-06-18 08:32:11 -04:00
Teal Dulcet
bdf4155bed Fixed SC2046: Quote to prevent word splitting. 2024-04-03 09:21:34 -04:00
Teal Dulcet
133bae1300 Fixed SC2006: Use $(...) notation instead of legacy backticks .... 2024-04-03 05:17:25 -07:00
KiekerJan
1a239c55bb
More robust reading of sshd configuration (#2330)
Use sshd -T instead of directly reading the configuration files
2024-03-23 11:16:40 -04:00
Gio
9b450469eb
Mail guide: OS X -> macOS (#2306) 2024-03-23 09:04:43 -04:00
KiekerJan
0b1d92388a
Take spamhaus return codes into account in status check and postfix config (#2332) 2024-03-10 08:09:36 -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