Skip to content

Commit 0d51623

Browse files
committed
make flake8 use pyproject
1 parent 0924316 commit 0d51623

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@ version = {attr = "inventree.base.INVENTREE_PYTHON_VERSION"}
3535

3636
[tool.setuptools]
3737
packages = ["inventree"]
38+
39+
[tool.flake8]
40+
ignore =[
41+
'C901',
42+
# - W293 - blank lines contain whitespace
43+
'W293',
44+
# - E501 - line too long (82 characters)
45+
'E501',
46+
'N802']
47+
exclude = ['.git','__pycache__','inventree_server','dist','build','test.py']
48+
max-complexity = 20
49+

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
requests[socks]>=2.21.0 # Python HTTP for humans with proxy support
22
flake8==3.8.4 # PEP checking
3+
flake8-pyproject==1.2.3 # PEP 621 support
34
wheel>=0.34.2 # Building package
45
invoke>=1.4.0
56
coverage>=6.4.1 # Run tests, measure coverage

0 commit comments

Comments
 (0)