mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -37,21 +37,13 @@ parser.add_argument(
|
|||||||
"-p",
|
"-p",
|
||||||
"--matrix-pw",
|
"--matrix-pw",
|
||||||
help="matrix password. Either this or token required. Environment variable: `MATRIX_PW`",
|
help="matrix password. Either this or token required. Environment variable: `MATRIX_PW`",
|
||||||
**(
|
**({"default": os.environ["MATRIX_PW"]} if "MATRIX_PW" in os.environ else {}),
|
||||||
{"default": os.environ["MATRIX_PW"]}
|
|
||||||
if "MATRIX_PW" in os.environ
|
|
||||||
else {}
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-t",
|
"-t",
|
||||||
"--matrix-token",
|
"--matrix-token",
|
||||||
help="matrix access token. Either this or password required. Environment variable: `MATRIX_TOKEN`",
|
help="matrix access token. Either this or password required. Environment variable: `MATRIX_TOKEN`",
|
||||||
**(
|
**({"default": os.environ["MATRIX_TOKEN"]} if "MATRIX_TOKEN" in os.environ else {}),
|
||||||
{"default": os.environ["MATRIX_TOKEN"]}
|
|
||||||
if "MATRIX_TOKEN" in os.environ
|
|
||||||
else {}
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-k",
|
"-k",
|
||||||
|
|||||||
Reference in New Issue
Block a user