Skip to content

Commit 986b8f8

Browse files
committed
chore: introduce flake8-bugbear
The configuration is adapted from black and flask.
1 parent 4648691 commit 986b8f8

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.flake8

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[flake8]
2-
max-line-length = 88
3-
extend-ignore = E203
4-
exclude = build,docs
2+
ignore = E203, E266, E501, E722, W503
3+
max-line-length = 80
4+
max-complexity = 18
5+
select = B,C,E,F,W,T4,B9
6+
exclude = build,docs

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
pip install -r requirements.txt
3030
- name: Lint with flake8
3131
run: |
32-
pip install flake8
32+
pip install flake8 flake8-bugbear
3333
# stop the build if there are Python syntax errors or undefined names
3434
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3535
# exit-zero treats all errors as warnings.

0 commit comments

Comments
 (0)