Merge pull request #409 from redhat-performance/development #202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: | |
types: [opened, edited] | |
branches: [development, master] | |
push: | |
branches: [development, master] | |
permissions: | |
checks: write | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Install Python dependencies | |
run: pip install black flake8 | |
- name: Run linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
black: true | |
black_dir: src/ | |
flake8: true | |
flake8_dir: src/ | |
flake8_args: "--ignore D203,E501,E203,W503" |