Skip to content

Commit 00e6592

Browse files
committed
Pleasing ruff
1 parent b57870e commit 00e6592

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pdfly/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def update_offsets(
283283
resolve_path=True,
284284
),
285285
],
286-
file_out: Path = typer.Option(None, "-o", "--output"),
286+
file_out: Path = typer.Option(..., "-o", "--output"), # noqa
287287
encoding: str = typer.Option(
288288
"ISO-8859-1",
289289
help="Encoding used to read and write the files, e.g. UTF-8.",

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
with open(VERSIONFILE) as fp:
99
verstrline = fp.read()
1010
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
11-
mo = re.search(VSRE, verstrline, re.M)
11+
mo = re.search(VSRE, verstrline, re.MULTILINE)
1212
if mo:
1313
verstr = mo.group(1)
1414
else:

0 commit comments

Comments
 (0)