Fix parsing issues #10
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 Commit | |
on: | |
push: | |
branches: | |
- '*' | |
- '!main' | |
pull_request: | |
branches: | |
- '*' | |
- '!main' | |
jobs: | |
lint: | |
name: Run Linter | |
runs-on: ubuntu-latest # You can change the runner environment as needed | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 # Checkout the repository code | |
- name: Set up Python | |
uses: actions/setup-python@v2 # Set up Python environment | |
with: | |
python-version: 3.11 # Specify Python version 3.11 | |
- name: Install dependencies | |
run: pip install -r src/requirements.txt # Install dependencies from the src folder | |
- name: Install flake8 | |
run: pip install flake8 | |
- name: Run Linter | |
run: flake8 --ignore=E501 src # Replace with your linter command and specify the target directory, e.g., pylint src, mypy src, etc. |