Merge pull request #19 from dvjsharma/feat/oauth #48
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
# Brief: flask8.yml lint action | |
# Description: GitHub Actions workflow to lint Python code using flake8. | |
# Author: Divij Sharma <[email protected]> | |
name: Lint with flake8 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
flake8-lint: | |
runs-on: ubuntu-latest | |
name : Lint | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: flake8 Lint | |
uses: py-actions/flake8@v2 | |
with: | |
max-line-length: "120" | |
exclude: | | |
.git, | |
__pycache__, | |
migrations, | |
env, | |
venv, | |
node_modules, | |
static, | |
media, | |
manage.py, | |
settings.py, |