From 938e883cb7dad8036c2d452cc3046496d0edd960 Mon Sep 17 00:00:00 2001 From: Akuli Date: Wed, 1 Nov 2023 23:57:29 +0200 Subject: [PATCH] Fix requirements-dev.txt generation --- .github/workflows/autofix.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 3e55fdfa2..b8c7a8dc0 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -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: