Skip to content

Commit

Permalink
improve linter configuration
Browse files Browse the repository at this point in the history
- add to disable list the import-error. without virtual env this error is
  useless
- add flake8 max-line-length. maybe someone is using flake8 to, then it helps
- remove the python configuration from .editorconfig. not more necessary because
  of black
  • Loading branch information
utnapischtim committed Apr 12, 2022
1 parent ddaec08 commit a914c29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 0 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

# Python files
[*.py]
indent_size = 4
# isort plugin configuration
known_first_party = flask_celeryext
known_third_party = celery, flask
multi_line_output = 2
default_section = THIRDPARTY

# RST files (used by sphinx)
[*.rst]
indent_size = 4
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ universal = 1
[pydocstyle]
add_ignore = D401,D403

[flake8]
max-line-length = 88

[pylint]
max-line-length = 88

[pylint.messages_control]
disable = too-few-public-methods, abstract-method
disable = import-error, too-few-public-methods, abstract-method

[tool:isort]
profile=black
Expand Down

0 comments on commit a914c29

Please sign in to comment.