From 9b2d1deb17247500960ff6f766c3920d0c9b46b9 Mon Sep 17 00:00:00 2001 From: DeathAxe Date: Mon, 2 Oct 2017 16:37:36 +0200 Subject: [PATCH] Internal: Add setup.cfg to configure linters LSP package uses python-language-server to provide code intel features. It uses the setup.cfg to setup linters. --- .gitattributes | 3 +++ setup.cfg | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 setup.cfg diff --git a/.gitattributes b/.gitattributes index 4baa415e..59d4a02e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,3 +13,6 @@ release.sublime-commands export-ignore ## unit testing tests/ export-ignore unittesting.json export-ignore + +## linter setup +setup.cfg export-ignore diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..32c63b12 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,18 @@ +[flake8] +ignore = D100,D101,D104,E722 +exclude = .git,__init__.py +max-line-length = 80 + +[mypy] +python_version = 3.3 +silent_imports = True +ignore_errors = True +strict_optional = False + +[pycodestyle] +ignore = E722 +max-line-length = 80 + +[pydocstyle] +ignore = D100,D101,D104 +max-line-length = 80