From b2a2d9e687ecd24af3275f53435dc13a9e7157ad Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sun, 24 Mar 2013 16:10:55 +0100 Subject: Read configuration from both tox.ini and setup.cfg; issue #182 --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 4298702..774ace0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,10 @@ Changelog * Honor ``# noqa`` for errors E711 and E712. (Issue #180) +* When both a ``tox.ini`` and a ``setup.cfg`` are present in the project + directory, merge their contents. The ``tox.ini`` file takes + precedence (same as before). (Issue #182) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From 9a95d7202b9aa2ede0a2d1248e3e1dfa0fd39a4e Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Tue, 16 Apr 2013 22:49:37 +0200 Subject: Give priority to --select over --ignore; issue #188 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 774ace0..3debbb6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,6 +11,8 @@ Changelog directory, merge their contents. The ``tox.ini`` file takes precedence (same as before). (Issue #182) +* Give priority to ``--select`` over ``--ignore``. (Issue #188) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From 3745d7981b69ccb727f41cb57cd11e146917907f Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Tue, 16 Apr 2013 23:26:47 +0200 Subject: Optimize the file exclusion feature --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 3debbb6..0bd6d07 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,6 +13,8 @@ Changelog * Give priority to ``--select`` over ``--ignore``. (Issue #188) +* Compare full path when exluding a file. (Issue #186) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From 9de61e181009282283e0a1ce2de3cd0b8d0cd4f3 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Fri, 26 Apr 2013 23:34:00 +0200 Subject: Report other E12 errors when E123 is ignored; issue #103 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 0bd6d07..8f3a74d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,6 +15,8 @@ Changelog * Compare full path when exluding a file. (Issue #186) +* Correctly report other E12 errors when E123 is ignored. (Issue #103) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From 3bdb2eaaf77450a2d67b06afc4680814cab9cd15 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sat, 27 Apr 2013 10:25:57 +0200 Subject: Fix typo in CHANGES.txt --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 8f3a74d..a32f195 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,7 +13,7 @@ Changelog * Give priority to ``--select`` over ``--ignore``. (Issue #188) -* Compare full path when exluding a file. (Issue #186) +* Compare full path when excluding a file. (Issue #186) * Correctly report other E12 errors when E123 is ignored. (Issue #103) -- cgit v1.2.1 From ee9903dc3487efde45b7c3383b652d045cd20465 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sat, 27 Apr 2013 15:08:42 +0200 Subject: Do not crash when running AST checks and the document contains null bytes --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index a32f195..904f8a7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,9 @@ Changelog * Correctly report other E12 errors when E123 is ignored. (Issue #103) +* Do not crash when running AST checks and the document contains null bytes. + (Issue #184) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From a1d2db6f08936b4c0a2ea49341bab857a1407e10 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sat, 27 Apr 2013 23:28:59 +0200 Subject: New option --hang-closing to replace E123 by E133; issue #103 --- CHANGES.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 904f8a7..74496ea 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,10 @@ Changelog * Correctly report other E12 errors when E123 is ignored. (Issue #103) +* New option `--hang-closing` to switch to the alternative style of + closing bracket indentation for hanging indent. Add error E133 for + closing bracket which is missing indentation. (Issue #103) + * Do not crash when running AST checks and the document contains null bytes. (Issue #184) -- cgit v1.2.1 From 00aff369146b3955feaa83fe7a0136d4b24a6c08 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 1 May 2013 23:39:56 +0200 Subject: Fix BOM for Python 3 too, add changelog entry --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 904f8a7..17fad0d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -20,6 +20,8 @@ Changelog * Do not crash when running AST checks and the document contains null bytes. (Issue #184) +* Fix false positive E261/E262 when the file contains a BOM. (Issue #193) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From 763cb7288392c02e92ee40fbafd193ea1615fb92 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Thu, 2 May 2013 00:54:49 +0200 Subject: Accept both styles of closing bracket indentation, ignore E123 in the default configuration --- CHANGES.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 74496ea..f156642 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,10 +17,13 @@ Changelog * Correctly report other E12 errors when E123 is ignored. (Issue #103) -* New option `--hang-closing` to switch to the alternative style of +* New option ``--hang-closing`` to switch to the alternative style of closing bracket indentation for hanging indent. Add error E133 for closing bracket which is missing indentation. (Issue #103) +* Accept both styles of closing bracket indentation for hanging indent. + Do not report error E123 in the default configuration. (Issue #103) + * Do not crash when running AST checks and the document contains null bytes. (Issue #184) -- cgit v1.2.1 From c8120906884df69de75827c3351ef5eb12fd6c1a Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Fri, 3 May 2013 23:23:49 +0200 Subject: Fix E70x not detected sometimes; issue #196 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 17fad0d..9e346c5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -22,6 +22,8 @@ Changelog * Fix false positive E261/E262 when the file contains a BOM. (Issue #193) +* Fix E701, E702 and E703 not detected sometimes. (Issue #196) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From 03242a7e8d1a59a2431fa5577481cd4cfebfe4bd Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sat, 15 Jun 2013 16:21:39 +0200 Subject: Fix E122 not detected in some cases; issue #201 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 9e346c5..6e467d3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -24,6 +24,8 @@ Changelog * Fix E701, E702 and E703 not detected sometimes. (Issue #196) +* Fix E122 not detected in some cases. (Issue #201) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From e0d2d95291b46ddde20dc3658ad6d11b76a43f6f Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sat, 15 Jun 2013 16:57:26 +0200 Subject: Fix false positive E121 with multiple brackets; issue #203 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6e467d3..0600040 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,6 +26,8 @@ Changelog * Fix E122 not detected in some cases. (Issue #201) +* Fix false positive E121 with multiple brackets. (Issue #203) + 1.4.5 (2013-03-06) ------------------ -- cgit v1.2.1 From f30786feade0cf3dcbf5d248a3de70ff6bffa5ad Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sun, 16 Jun 2013 20:09:03 +0200 Subject: Another E122 not detected --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 2b55609..795c289 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -31,7 +31,7 @@ Changelog * Fix E701, E702 and E703 not detected sometimes. (Issue #196) -* Fix E122 not detected in some cases. (Issue #201) +* Fix E122 not detected in some cases. (Issue #201 and #208) * Fix false positive E121 with multiple brackets. (Issue #203) -- cgit v1.2.1 From bbea5423ca58a90efddccb055e10a34a9f1a297e Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Tue, 2 Jul 2013 16:05:35 +0200 Subject: Release version 1.4.6 --- CHANGES.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 795c289..5c608f9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,8 +2,8 @@ Changelog ========= -1.x (unreleased) ----------------- +1.4.6 (2013-07-02) +------------------ * Honor ``# noqa`` for errors E711 and E712. (Issue #180) -- cgit v1.2.1 From 8d658692345e6866741719595f14a144337b3b9f Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Thu, 4 Jul 2013 12:56:54 +0200 Subject: Fix issue with --select and flake8 extensions; issue #216 --- CHANGES.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 5c608f9..6465cb3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,13 @@ Changelog ========= +1.x (unreleased) +---------------- + +* Fix ignoring too many checks when ``--select`` is used with codes + declared in a flake8 extension. (Issue #216) + + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From cc0a19f1c265029dcbbff8bb76cf6c9bf076fca4 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Thu, 7 Nov 2013 16:36:33 +0100 Subject: Fix #240: Allow errors on empty files The noqa check crashes when the file is empty. The soultion is to not check for noqa when the file is empty -- if it's empty, the user might not possibly put any #noqa comments in there. --- CHANGES.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6465cb3..413c134 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,6 +5,7 @@ Changelog 1.x (unreleased) ---------------- +* Allow the checkers to report errors on empty files. (Issue #240) * Fix ignoring too many checks when ``--select`` is used with codes declared in a flake8 extension. (Issue #216) -- cgit v1.2.1 From 3dad6b5a27f66187a28d6bfccb172a2b04948dc6 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sat, 22 Mar 2014 23:59:50 +0100 Subject: Fix regression with multiple brackets; issue #214 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 6465cb3..091a553 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,6 +8,8 @@ Changelog * Fix ignoring too many checks when ``--select`` is used with codes declared in a flake8 extension. (Issue #216) +* Fix regression with multiple brackets. (Issue #214) + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From 045cf2b48a7e03f652b81a3f949878865731f3e0 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sun, 23 Mar 2014 14:38:51 +0100 Subject: Slightly improve readability --- CHANGES.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 702a018..450ba20 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -6,6 +6,7 @@ Changelog ---------------- * Allow the checkers to report errors on empty files. (Issue #240) + * Fix ignoring too many checks when ``--select`` is used with codes declared in a flake8 extension. (Issue #216) -- cgit v1.2.1 From 68d72a5dd747e1cd6fee9f02b417a70f4d9ff7ca Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sun, 23 Mar 2014 17:19:57 +0100 Subject: Revert previous change and fix the 'paths' keyword argument instead; fixes #246 --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 450ba20..972a25b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -12,6 +12,9 @@ Changelog * Fix regression with multiple brackets. (Issue #214) +* Fix ``StyleGuide`` to parse the local configuration if the + keyword argument ``paths`` is specified. (Issue #246) + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From 5731082d257c6743225f4be3628082c50e7dc2ed Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sun, 23 Mar 2014 18:37:35 +0100 Subject: Fix a false positive E124 for hanging indent: issue #254 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 972a25b..a840c10 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,6 +15,8 @@ Changelog * Fix ``StyleGuide`` to parse the local configuration if the keyword argument ``paths`` is specified. (Issue #246) +* Fix a false positive E124 for hanging indent. (Issue #254) + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From af91d986c091bec2972c38b9cae505ad2d6c762c Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 24 Mar 2014 00:41:28 +0100 Subject: Fix usage of in the project config file; issue #247 --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index a840c10..034cc7f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,9 @@ Changelog * Fix a false positive E124 for hanging indent. (Issue #254) +* Fix behaviour when ``exclude`` is in the configuration file and + the current directory is not the project directory. (Issue #247) + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From dff303308714da0da729d97f4f423541d9d33431 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 24 Mar 2014 00:52:47 +0100 Subject: The logical checks can return None; issue #250 --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 034cc7f..96d879a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -20,6 +20,9 @@ Changelog * Fix behaviour when ``exclude`` is in the configuration file and the current directory is not the project directory. (Issue #247) +* The logical checks can return ``None`` instead of an empty iterator. + (Issue #250) + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From e3813abe894d71bcebd699321ccd948a3800497d Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 24 Mar 2014 19:20:50 +0100 Subject: Do not report multiple E101 if only one line starts with a tab; issue #237 --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 96d879a..f6ee1be 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -23,6 +23,9 @@ Changelog * The logical checks can return ``None`` instead of an empty iterator. (Issue #250) +* Do not report multiple E101 if only the first indentation starts + with a tab. (Issue #237) + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From 0308f2fbb053083959ae948d05c3fe26d662eeca Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 24 Mar 2014 21:34:00 +0100 Subject: A false positive E126 with embedded colon; fixes #144 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index f6ee1be..913580d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,8 @@ Changelog * Fix a false positive E124 for hanging indent. (Issue #254) +* Fix a false positive E126 with embedded colon. (Issue #144) + * Fix behaviour when ``exclude`` is in the configuration file and the current directory is not the project directory. (Issue #247) -- cgit v1.2.1 From ca37ce87c8446b13abf18d0a9079479914834ee1 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 24 Mar 2014 23:26:01 +0100 Subject: A false positivee E126 when indenting with tabs; closes #204 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 913580d..7e3b45b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -19,6 +19,8 @@ Changelog * Fix a false positive E126 with embedded colon. (Issue #144) +* Fix a false positive E126 when indenting with tabs. (Issue #204) + * Fix behaviour when ``exclude`` is in the configuration file and the current directory is not the project directory. (Issue #247) -- cgit v1.2.1 From 173592fccdef25078d599e0f748650ef43ed13cc Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 24 Mar 2014 23:56:59 +0100 Subject: Relax a bit the regex for W602, 3-arguments raise; closes #34 --- CHANGES.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 7e3b45b..cc5c0b6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -30,6 +30,8 @@ Changelog * Do not report multiple E101 if only the first indentation starts with a tab. (Issue #237) +* Fix a rare false positive W602. (Issue #34) + 1.4.6 (2013-07-02) ------------------ -- cgit v1.2.1 From 63a0a02d9dc521b6355210c60997d9e787814232 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Tue, 25 Mar 2014 00:50:05 +0100 Subject: Catch more E713 and E714 with a regular expression; issue #236 continued --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index cc5c0b6..431cb4e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,6 +5,9 @@ Changelog 1.x (unreleased) ---------------- +* Report E713 and E714 when operators ``not in`` and ``is not`` are + recommended. (Issue #236) + * Allow the checkers to report errors on empty files. (Issue #240) * Fix ignoring too many checks when ``--select`` is used with codes -- cgit v1.2.1