-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (29 loc) · 1.02 KB
/
linting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Redant-Lint-check
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6.9
uses: actions/setup-python@v2
with:
python-version: 3.6.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 $(pwd) --ignore=C901,F811,F841,E722,E226,E402,W503,W605 --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 $(pwd) --ignore=C901,F811,F841,E722,E226,E402,W503,W605 --count --max-complexity=10 --max-line-length=79 --statistics
- name: Lint with Pylint
run: |
pylint --rcfile=$(pwd)/.pylintrc $(pwd)/core/
pylint --rcfile=$(pwd)/.pylintrc $(pwd)/common/
pylint --rcfile=$(pwd)/.pylintrc $(pwd)/tests/