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: