Skip to content

Commit b8bd45b

Browse files
authored
docs: suggest poetry run be used for scripts (#42)
It seems that being able to run the scripts directly is something of a fluke seemingly due to how Poetry actually installs dependencies - sadly it doesn't seem like you can integrate Poetry into the hashbang of the script, so for now I've just updated our documentation to reflect that. In practice, folks can probably not do that locally (like I've been doing), though I expect in CI you will always have to
1 parent 941e504 commit b8bd45b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ in `pyproject.toml` using
2424

2525
```shell
2626
# 1. download the Drupal SA advisories from drupal.org
27-
scripts/download_sa_advisories.py
27+
poetry run scripts/download_sa_advisories.py
2828

2929
# 2. download nodes from drupal.org related to the advisories
3030
# (this is not required, but will significantly improve performance of the next step)
31-
scripts/precache_nodes.py
31+
poetry run scripts/precache_nodes.py
3232

3333
# 3. generate the OSV advisories based on the Drupal advisories
34-
scripts/generate_osv_advisories.py
34+
poetry run scripts/generate_osv_advisories.py
3535
```

0 commit comments

Comments
 (0)