mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-09-17 18:31:15 +00:00
Apply PTH
This commit is contained in:
parent
b1d3c26b07
commit
a33a7ec060
3 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ def importFromFile(filePath: Path):
|
||||||
groupExperiments = {}
|
groupExperiments = {}
|
||||||
appointments = {}
|
appointments = {}
|
||||||
|
|
||||||
with open(filePath) as f:
|
with filePath.open() as f:
|
||||||
flash("Reading file...")
|
flash("Reading file...")
|
||||||
|
|
||||||
expectingTable = True
|
expectingTable = True
|
||||||
|
|
|
@ -12,7 +12,7 @@ def _generate_secrets():
|
||||||
click.echo(f"Skipping secrets generation because the secrets file does already exist at {file}.")
|
click.echo(f"Skipping secrets generation because the secrets file does already exist at {file}.")
|
||||||
return
|
return
|
||||||
|
|
||||||
with open(file, "w") as f:
|
with file.open("w") as f:
|
||||||
f.write("[Secrets]\n")
|
f.write("[Secrets]\n")
|
||||||
|
|
||||||
key = secrets.SystemRandom().getrandbits(128)
|
key = secrets.SystemRandom().getrandbits(128)
|
||||||
|
|
|
@ -27,7 +27,7 @@ requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
select = ["E", "W", "F", "I", "UP", "YTT", "S", "B", "C4", "ICN", "PIE", "Q", "RET", "SIM"]
|
select = ["E", "W", "F", "I", "UP", "YTT", "S", "B", "C4", "ICN", "PIE", "Q", "RET", "SIM", "TID", "PTH"]
|
||||||
ignore = ["E5", "S3", "S6", "RET504"]
|
ignore = ["E5", "S3", "S6", "RET504"]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue