Skip to content

Commit 444a5a9

Browse files
Feature: Add McCabe complexity option in flake8 config & update dev requirements (#25)
1 parent 3dc6dd7 commit 444a5a9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ black~=21.7b0 # pycharm error on this is ok
44
coverage[toml]~=5.5
55
flake8~=3.9.2
66
interrogate~=1.4.0
7+
mccabe~=0.6.1 # check McCabe complexity. see https://github.com/PyCQA/mccabe
78
isort~=5.9.3
89
mypy==0.910
910
pre-commit~=2.13.0

setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ exclude =
1010
ignore = E731,W503,E501
1111
count = True
1212
statistics = True
13+
# mccabe flake8 plugin, set the maximum allowed McCabe complexity value
14+
# see https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-max-complexity
15+
max-complexity = 7
1316
max-line-length = 120
1417
# flake8-copyright plugin, see https://github.com/savoirfairelinux/flake8-copyright
1518
copyright-check = True

0 commit comments

Comments
 (0)