From 95e97b08d034e855579733d8f614a08275b6ba21 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 7 May 2019 15:26:45 +0200 Subject: [PATCH 1/5] Squashed 'lint-configs/' changes from 418d2eb45..72d3b7ca9 72d3b7ca9 Merge pull request #1 from StackStorm/update_lint_configs 2709c47a2 Update lint config with changes from https://github.com/StackStorm/st2/pull/4657. git-subtree-dir: lint-configs git-subtree-split: 72d3b7ca9e2d775b58780e49580d11c3c6414d27 --- python/.flake8 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/python/.flake8 b/python/.flake8 index 6194784c6a..f2263600a3 100644 --- a/python/.flake8 +++ b/python/.flake8 @@ -1,4 +1,20 @@ [flake8] max-line-length = 100 ignore = E128,E402,E722,W504 +ignore = + E128,E402,E722,W504, + H101,H104,H105,H106,H107,H108,H109, + H201,H202,H203,H204,H205,H206,H207,H208,H209,H234,H238, + H301,H302,H303,H304,H305,H306,H307,H308,H309, + H401,H402,H403,H404,H405,H406,H407,H408,H409, + H501,H502,H503,H504,H505,H506,H507,H508,H509, + H601,H602,H603,H604,H605,H606,H607,H608,H609, + H701,H702,H703,H704,H705,H706,H707,H708,H709, + H801,H802,H803,H804,H805,H806,H807,H808,H809, + H901,H902,H903,H904,H905,H906,H907,H908,H909 exclude=*.egg/*,build,dist + +# Configuration for flake8-copyright extension +copyright-check = True +copyright-min-file-size = 1 +select = E,F,W,C From 2b76cc029cd1175607fac942b4c67fca6c5b219a Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 7 May 2019 15:37:18 +0200 Subject: [PATCH 2/5] Squashed 'lint-configs/' changes from 72d3b7ca9..73fe88f2d 73fe88f2d Fix merge conflict. git-subtree-dir: lint-configs git-subtree-split: 73fe88f2da7403d69bc5ebd7c6d22d12860c3744 --- python/.flake8 | 1 - 1 file changed, 1 deletion(-) diff --git a/python/.flake8 b/python/.flake8 index f2263600a3..8b4663cbe9 100644 --- a/python/.flake8 +++ b/python/.flake8 @@ -1,6 +1,5 @@ [flake8] max-line-length = 100 -ignore = E128,E402,E722,W504 ignore = E128,E402,E722,W504, H101,H104,H105,H106,H107,H108,H109, From 96b9511342cde1351402d81caf1fcbfe65c41b84 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 7 May 2019 17:09:26 +0200 Subject: [PATCH 3/5] Squashed 'lint-configs/' changes from 73fe88f2d..3be3554cc 3be3554cc Merge branch 'update_lint_configs' 9a5b6db9b Add a docstring. git-subtree-dir: lint-configs git-subtree-split: 3be3554cc3eef7119a5105bd7597d20acd9b4256 --- python/.flake8 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/.flake8 b/python/.flake8 index 8b4663cbe9..62e4c03074 100644 --- a/python/.flake8 +++ b/python/.flake8 @@ -16,4 +16,7 @@ exclude=*.egg/*,build,dist # Configuration for flake8-copyright extension copyright-check = True copyright-min-file-size = 1 +# NOTE: This requires flake8 >= 3.0.0 to work correctly. +# If old version is used (< 3.0.0), it will select all the errors and it wont ignore ones +# listed above as part of ignore list select = E,F,W,C From ba985e4d27dbd7a75672327c646927a7ab347889 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 7 May 2019 17:51:49 +0200 Subject: [PATCH 4/5] Squashed 'lint-configs/' changes from 3be3554cc..ffbe682b6 ffbe682b6 Enable H checks to missing license errors are reported. git-subtree-dir: lint-configs git-subtree-split: ffbe682b6fb16e4ec028ece3056526ac67e2befc --- python/.flake8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/.flake8 b/python/.flake8 index 62e4c03074..7dae5f7be5 100644 --- a/python/.flake8 +++ b/python/.flake8 @@ -19,4 +19,4 @@ copyright-min-file-size = 1 # NOTE: This requires flake8 >= 3.0.0 to work correctly. # If old version is used (< 3.0.0), it will select all the errors and it wont ignore ones # listed above as part of ignore list -select = E,F,W,C +select = E,F,W,C,H From f56771f8a203e2b90352e51902b4dff47b613d84 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 7 May 2019 17:53:55 +0200 Subject: [PATCH 5/5] Squashed 'lint-configs/' changes from ffbe682b6..302b88cd7 302b88cd7 Also ignore H210 errors. git-subtree-dir: lint-configs git-subtree-split: 302b88cd77094e8032a0ee157c5d6a0f4b340a1c --- python/.flake8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/.flake8 b/python/.flake8 index 7dae5f7be5..4867143ba5 100644 --- a/python/.flake8 +++ b/python/.flake8 @@ -3,7 +3,7 @@ max-line-length = 100 ignore = E128,E402,E722,W504, H101,H104,H105,H106,H107,H108,H109, - H201,H202,H203,H204,H205,H206,H207,H208,H209,H234,H238, + H201,H202,H203,H204,H205,H206,H207,H208,H209,H210,H234,H238, H301,H302,H303,H304,H305,H306,H307,H308,H309, H401,H402,H403,H404,H405,H406,H407,H408,H409, H501,H502,H503,H504,H505,H506,H507,H508,H509,