mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-04 22:40:30 +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 = {}
|
||||
appointments = {}
|
||||
|
||||
with open(filePath) as f:
|
||||
with filePath.open() as f:
|
||||
flash("Reading file...")
|
||||
|
||||
expectingTable = True
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue