Skip to content

Commit

Permalink
Fix requirements-dev.txt generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Nov 1, 2023
1 parent d159dc3 commit 938e883
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ jobs:
- run: python3 -m isort $(cat filelist.txt)
# I like requirements-dev.txt and some other people like pyproject.toml, so we have both.
# Auto-generating is the easiest way to ensure the two stay in sync.
- run: |
- name: Generate requirements-dev.txt from pyproject.toml
run: |
echo "# Auto-generated in GitHub Actions. See autofix.yml." > pr/requirements-dev.txt
pip install tomli
python3 -c 'if True:
import tomli
with open("pr/pyproject.toml", "rb") as f:
Expand Down

0 comments on commit 938e883

Please sign in to comment.