1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-17 18:31:15 +00:00

Apply PTH

This commit is contained in:
Mo 2023-11-02 19:44:24 +01:00
parent b1d3c26b07
commit a33a7ec060
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ def importFromFile(filePath: Path):
groupExperiments = {}
appointments = {}
with open(filePath) as f:
with filePath.open() as f:
flash("Reading file...")
expectingTable = True

View file

@ -12,7 +12,7 @@ def _generate_secrets():
click.echo(f"Skipping secrets generation because the secrets file does already exist at {file}.")
return
with open(file, "w") as f:
with file.open("w") as f:
f.write("[Secrets]\n")
key = secrets.SystemRandom().getrandbits(128)

View file

@ -27,7 +27,7 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[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"]
line-length = 120