Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 9d757a2

Browse files
authored
Merge pull request #5 from microsoft/dciborow/flake8-pyproject
Use pyproject.toml to configure flake8
2 parents 8981d02 + df2e35c commit 9d757a2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,14 @@ runs:
125125
with:
126126
workdir: ${{ inputs.root }}
127127

128+
- if: ${{ inputs.flake8 == 'true' }}
129+
run: |
130+
if [ $(cat pyproject.toml | grep "tool.flake8") ]; then
131+
python -m pip install --upgrade pip
132+
python -m pip install flake8-pyproject
133+
fi
134+
shell: bash
135+
128136
- if: ${{ inputs.flake8 == 'true' }}
129137
uses: reviewdog/action-flake8@v3
130138
with:

0 commit comments

Comments
 (0)