From a06b02d1814ac17c1eea605ab8a5d6d30fa4a092 Mon Sep 17 00:00:00 2001 From: RFarkas Date: Fri, 21 Sep 2018 11:23:07 +0200 Subject: [PATCH] DEV: add flake8 --- .flake8 | 36 ++++++++++++++++++++++++++++++++++++ requirements-dev.txt | 5 ++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..c316c63c --- /dev/null +++ b/.flake8 @@ -0,0 +1,36 @@ +[flake8] +max-line-length = 80 +ignore = + ;====== flake8 defaults ====== + ; continuation line under-indented for hanging indent: + E121, + ; closing bracket does not match indentation of opening bracket's line: + E123, + ; continuation line over-indented for hanging indent: + E126, + ; missing whitespace around arithmetic operator: + E226, + ; multiple spaces after ',' / tab after ',': + ; E24, + ; multiple statements on one line (def): + ; E704, + ; line break before binary operator: + W503, + ; line break after binary operator: + W504, + + ;====== VIP ====== + ; One-line docstring should fit on one line with quotes: + D200, + ; Missing docstring in public function: + D103, + ; 1 blank line required between summary line and description + D205, + ; First line should end with a period + D400, + + ;====== flake8 plugins ====== + ; Use of assert detected. (bandit plugin) + S101, + ; no configuration found (.isort.cfg or [isort] in configs) (isort plugin) + I002, \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt index 63a20eab..75238c08 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,6 @@ -r requirements.txt sphinx <= 1.5.6 -pytest \ No newline at end of file +pytest +flake8 ~= 3.5.0 +flake8-bandit ~= 1.0.2 +flake8-docstrings ~= 1.3.0 \ No newline at end of file