Skip to content

Commit a461dbe

Browse files
authored
Pylint improvements (#8911)
* Add pylint_flask(_sqlalchemy) to dev deps * Improve pylint support - install and activate flask and sqlalchemy plugins - make pylint use the same line length as other tools (90) - ignore "missing-*-docstring" (for now) - ignore "invalid-name" (variables like `r` etc) * Fix syntax for line-length
1 parent 07fc8ef commit a461dbe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ exclude = '''
2121
)
2222
'''
2323

24+
[tool.pylint.MAIN]
25+
load-plugins = [ "pylint_flask_sqlalchemy", "pylint_flask" ]
26+
27+
[tool.pylint."MESSAGES CONTROL"]
28+
disable = [
29+
"missing-function-docstring",
30+
"missing-module-docstring",
31+
"missing-class-docstring",
32+
"invalid-name",
33+
]
34+
35+
[tool.pylint.CODE_STYLE]
36+
max-line-length = 90
37+
2438
[tool.isort]
2539
profile = "black"
2640
line_length = 90
@@ -146,6 +160,8 @@ dredd_hooks = "0.2"
146160
pytest = "7.1.2"
147161
pytest-cov = "4.1.0"
148162
objproxies = "0.9.4"
163+
pylint-flask-sqlalchemy = "^0.2.0"
164+
pylint-flask = "^0.6"
149165

150166
[build-system]
151167
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)