Skip to content

Commit b845cf6

Browse files
committed
ci: avoid dependabot scanning raw requirements file
1 parent ecaf812 commit b845cf6

6 files changed

+4
-2
lines changed

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build:
77

88
python:
99
install:
10-
- requirements: ./scripts/requirements-docs.txt
10+
- requirements: ./scripts/requirements/requirements-docs.txt
1111
- path: .
1212

1313
sphinx:

scripts/export_requirements_txt.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pathlib import Path
77

88
Format = enum.Enum("Format", "requirements setuppy")
9-
BASE_DIR = Path(__file__).parent
9+
BASE_DIR = Path(__file__).parent / "requirements"
1010

1111

1212
def fix_end_of_file(text):
@@ -23,6 +23,8 @@ def pdm_export(args, filename, format: Format):
2323
['# This a dummy setup.py to enable GitHub "Used By" stats', output]
2424
)
2525
p = Path(filename)
26+
if not p.parent.exists():
27+
p.parent.mkdir(parents=True)
2628
is_new = not p.exists()
2729
if is_new or p.read_text() != output:
2830
p.write_text(output)
File renamed without changes.

0 commit comments

Comments
 (0)