Skip to content
Snippets Groups Projects

WIP: Fix linting

Open Bo-Chun Chen requested to merge github/fork/diedpigs/fix-linting into feat-cod-rmq
29 files
+ 289
221
Compare changes
  • Side-by-side
  • Inline
Files
29
@@ -19,15 +19,27 @@ jobs:
architecture: 'x64'
- name: find trailing whitespace
uses: harupy/find-trailing-whitespace@master
- name: Install dependencies
- name: Install tools
if: always()
run: |
python -m pip install --upgrade pip
pip install flake8
pip install flake8==4.0.1 pylint==2.13.8
#if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run black
uses: psf/black@stable
with:
# Default value
#options: "--check --diff"
#src: "."
version: "22.3.0"
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --max-line-length=79 --show-source --statistics
flake8 .
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with pylint
if: always()
run: |
pylint prod_rmq_agents/*.py dev_rmq_agents/*.py *.py
Loading