Debian Codegraph @

CHANGELOG.rst

raw
1 0.19.2 2025-06-24
2 -----------------
3
4 * Fix ``AttributeError`` in code for checking the order of imports in a
5 ``TYPE_CHECKING`` block.
6
7 * Yank 0.19.0 from PyPI to avoid aforementioned users on older versions
8 of Python accidentally receiving 0.19.0
9
10 0.19.1 2025-06-20
11 -----------------
12
13 * Fix bug in code for checking the order of imports in a
14 ``TYPE_CHECKING`` block.
15
16 * Fix ``python_requires`` missing from 0.19.0 to allow folks using
17 vulnerable and unmaintained versions of Python to continue running
18 0.18.x with pip selecting the correct version for them.
19
20 0.19.0 2025-06-12
21 -----------------
22
23 * Drop deprecated Python versions 3.7 and 3.8
24
25 * Drop unsupported pypy3.9
26
27 * Use ``sys.stdlib_module_names`` where available to determine whether a
28 module is in the standard library or not.
29
30 * Replace usage of ``pkg_resources`` from setuptools with
31 ``importlib.metadata``.
32
33 * Move package to PyCQA PyPI organization
34
35 * Add support for checking ordering in a ``TYPE_CHECKING`` block. This
36 will support the following variants:
37
38 * ``if TYPE_CHECKING:`` (where there was a prior ``from typing import
39 TYPE_CHECKING``).
40
41 * ``if t.TYPE_CHECKING:`` (where there was a prior ``import typing as
42 t``).
43
44 * ``if typing.TYPE_CHECKING:``
45
46 0.18.2 2022-11-26
47 -----------------
48
49 * Add ``zoneinfo`` to list of standard library modules
50 * Fix registering of options with Flake8 >= 6.0
51
52 0.18.1 2019-03-04
53 -----------------
54
55 * Fix case-sensitive related I100 errors for the pycharm style
56 * Fix noqa regexp
57
58 0.18 2018-07-08
59 ---------------
60
61 * Add new Python 3.7 modules to the stdlib list, and support 3.7.
62
63 0.17.1 2018-03-05
64 -----------------
65
66 * Rebuild of 0.17 with the latest setuptools to fix an enum34
67 dependency bug.
68
69 0.17 2018-02-11
70 ---------------
71
72 * Add all Python3 modules to stdlib list (should be no more missing
73 modules).
74 * Clarify the error messages (more context).
75 * Allow styles to override specific checks.
76 * Correct the edited style to match the actual edited style guide.
77 * Add pycharm style, to match the pycharm auto formatter.
78
79
80 0.16 2017-11-26
81 ---------------
82
83 * Change spacing determination to consider only blank newlines as a
84 space. This adds NewLine nodes to the checker and hence could break
85 custom styles (that use the nodes directly). This also drops the
86 asttokens dependency as it is no longer required.
87 * Understand the existence of namespaced packages, thereby allowing
88 different namespaced packages to be defined as local or third party.
89
90 0.15 2017-11-06
91 ---------------
92
93 * Drop Python 3.3 support, as Python 3.3 is beyond it's end of lfe.
94 * Correct the flake8 entrypoint to report all ``I`` errors, this may
95 result in ``I2XX`` errors being reported that were absent
96 previously.
97 * Support in-line ``# noqa`` comments specifying only the error codes
98 to be ignored, e.g., ``# noqa: I101``.
99 * Accept only ``# noqa`` directives on the line reporting the error,
100 see limitations.
101
102
103 0.14.3 2017-11-01
104 -----------------
105
106 * Bug fix, allow for noqa directives to work with I202.
107
108 0.14.2 2017-10-30
109 -----------------
110
111 * Bug fix, ensure the plugin is invoked by flake8.
112
113 0.14.1 2017-10-27
114 -----------------
115
116 * Bug fix, cope with multi-line imports when considering I202.
117
118 0.14 2017-10-24
119 ---------------
120
121 * Fixed I201 error raising for cryptography style.
122 * Added I202 error when there is an additional newline in a section of
123 imports.
124 * Added ``ntpath`` and ``os2emxpath`` to stdlib list.
125
126 0.13 2017-07-29
127 ---------------
128
129 * Added ``secrets`` to stdlib list.
130 * Allow for any style to use application-package grouping.
131
132 0.12 2017-02-11
133 ---------------
134
135 * Added new Edited style, this is equivalent to the Smarkets style
136 except that values specified in the ``application-package-names``
137 option must be imported after third-party import statements
138 * Added ability to extend a style using an entrypoint.
139 * Fix ambiguous I100 error, now lists correct packages.
140
141 0.11 2016-11-09
142 ---------------
143
144 * Enforce lexicographic ordering for Google, Smarkets and AppNexus
145 styles. This may introduce warnings not present in previous
146 releases relating to case sensitivity.
147 * Fix I100 case sensitivity for ungrouped imports, again enforcing
148 lexicographic ordering.
149
150 0.10 2016-10-16
151 ---------------
152
153 * Added new AppNexus style, this is equivalent to the google style
154 except that values specified in the `application-package-names`
155 option must be imported after third-party import statements
156 * Fixed ungrouped ordering bug whereby I100 wasn't triggered.
157
158 0.9.2 2016-08-05
159 ----------------
160
161 * Fix error when checking from stdin using flake8 3.0.
162
163 0.9.1 2016-07-27
164 ----------------
165
166 * Fix case sensitivity bug for Google and Smarkets style.
167
168 0.9 2016-07-26
169 --------------
170
171 * Drop pep8 requirement and replace with pycodestyle.
172 * Support Flake8 3.0 (alongside Flake8 2.X).
173 * Drop Python2.6 compatibility.
174 * Fixed a bug where intermixed 1st and 3rd party imports cause an
175 error with the PEP8 style.
176 * Fixed a bug whereby the I101 recommended ordering wasn't a valid
177 ordering in the cryptography style.
178
179 0.8
180 ---
181
182 * Added profile, cProfile, pstats and typing to stdlib list.
183 * Added new PEP8 style, that enforces grouping of importes but allows
184 any ordering within the groups.
185
186 0.7
187 ---
188
189 * Added new Smarkets style, this is equivalent to the google style
190 except that any `import X` statements must come before any `from X
191 import y` statements.
192
193 0.6.2
194 -----
195
196 * Fixed a bug where I101 messages were not suggesting the correct order in the
197 default style. The output message now outputs a message that matches the
198 selected style.
199
200 0.6.1
201 -----
202
203 * Fixed a bug where I101 messages were not suggesting the correct order.
204 * Extended test harness to be able to check error messages as well as codes.