Skip to content

Commit 7fecadc

Browse files
authored
Add black with lint
1 parent 8df7268 commit 7fecadc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/lints.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
os: [ubuntu-latest, windows-latest, macOS-latest, ubuntu-16.04]
11+
os: [ubuntu-latest, windows-latest, macOS-latest]
1212
python-version: [3.6, 3.7]
1313

1414
steps:
@@ -20,11 +20,12 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
python -m pip install bandit flake8 pylint
23+
python -m pip install bandit flake8 pylint black
2424
continue-on-error: true
2525
- name: Bandit syntax check
2626
run: bandit ./bot.py cogs/*.py core/*.py -b .bandit_baseline.json
27-
- name: Lint with pylint and flake8
28-
run: |
29-
pylint ./bot.py cogs/*.py core/*.py --disable=import-error --exit-zero -r y
27+
- name: Pylint
28+
run: pylint ./bot.py cogs/*.py core/*.py --disable=import-error --exit-zero -r y
29+
- name: Flake8 and black lint
3030
flake8 ./bot.py cogs/*.py core/*.py --ignore=E501,E203,W503
31+
black . --check

0 commit comments

Comments
 (0)