Commit graph

121 commits

Author SHA1 Message Date
Charlie Marsh
b51a080a44
Rename SPR001 to U008 (#379) 2022-10-09 21:58:22 -04:00
Charlie Marsh
6a1d7d8a1c
Defer string annotations even when futures annotations are enabled (#378) 2022-10-09 18:28:29 -04:00
Charlie Marsh
30b1b1e15a
Treat TypeAlias values as annotations (#377) 2022-10-09 17:37:19 -04:00
Charlie Marsh
aafe7c0c39
Mark aliased submodule imports as used (#374) 2022-10-09 17:01:14 -04:00
Harutaka Kawamura
bbe0220c72
Implement C415 (#371) 2022-10-09 10:12:58 -04:00
Charlie Marsh
7fe5945541
Implement PEP 604 annotation rewrites (#369) 2022-10-08 20:28:00 -04:00
Charlie Marsh
806f3fd4f6
Implement PEP 585 annotation rewrites (#368) 2022-10-08 18:22:24 -04:00
Charlie Marsh
d0e1612507
Check newline ending on contents directly (#365) 2022-10-08 17:25:22 -04:00
Harutaka Kawamura
5ccd907398
Implement C408 (#364) 2022-10-08 17:17:34 -04:00
Harutaka Kawamura
346610c2e3
Implement C406 (#363) 2022-10-08 11:15:41 -04:00
Harutaka Kawamura
307fa26515
Implement C405 (#362) 2022-10-08 09:03:21 -04:00
Harutaka Kawamura
d9edec0ac9
Implement C402 (#359) 2022-10-07 22:57:04 -04:00
Chris Pryer
473675fffb
Add check for W292 (#339) 2022-10-07 21:10:16 -04:00
Charlie Marsh
99c66d513a
Rename refactor checks to upgrade checks (#354) 2022-10-07 16:54:55 -04:00
Charlie Marsh
4cf2682cda
Implement type(primitive) (#353) 2022-10-07 16:47:06 -04:00
Harutaka Kawamura
e3d1d01a1f
Implement C401 (#343) 2022-10-07 13:00:22 -04:00
Harutaka Kawamura
6dfdd21a7c
Implement C400 (#340) 2022-10-07 12:16:23 -04:00
Harutaka Kawamura
bd34850f98
Implement C404 (#338) 2022-10-07 08:53:18 -04:00
Charlie Marsh
6e19539e28
Enable abspath(__file__) removal (#336) 2022-10-06 22:49:06 -04:00
Harutaka Kawamura
5141285c8e
Implement C403 (#335) 2022-10-06 16:24:23 -04:00
Adrian Garcia Badaracco
df438ba051
Support PEP 593 annotations (#333) 2022-10-06 09:16:07 -04:00
Charlie Marsh
fdb32330a9
Implement __metaclass__ = type removal (#324) 2022-10-04 14:31:52 -04:00
Charlie Marsh
4e6ae33a3a
Only flag super calls in class-function scopes (#323) 2022-10-04 13:55:32 -04:00
Charlie Marsh
7e4faf4b69
Implement flake8-print (#308) 2022-10-03 17:19:56 -04:00
Charlie Marsh
0966bf2c66
Handle multi-import lines (#307) 2022-10-03 15:22:46 -04:00
Charlie Marsh
b049cced04
Automatically remove unused imports (#298) 2022-10-03 14:08:16 -04:00
Charlie Marsh
bc335f839e
Visit lambda arguments prior to deferral (#303) 2022-10-02 20:54:02 -04:00
Suguru Yamamoto
4d0d433af9
fix: Make assigns to dunder exception for E402. (#294) 2022-10-01 09:43:47 -04:00
Nikita Sobolev
20989e12ba
Implement flake8-super check (#291) 2022-09-30 09:12:09 -04:00
Nikita Sobolev
63ba0bfeef
Adds flake8-builtins (#284) 2022-09-29 16:37:43 -04:00
Harutaka Kawamura
dce86e065b
Make unused variable pattern configurable (#265) 2022-09-24 10:43:39 -04:00
Charlie Marsh
e5b16973a9
Enable autofix for M001 (#255) 2022-09-22 13:21:03 -04:00
Charlie Marsh
de9ceb2fe1
Only enforce multi-line noqa directives for strings (#258) 2022-09-22 13:09:02 -04:00
Charlie Marsh
38b19b78b7
Enable noqa directives on logical lines (#257) 2022-09-22 12:56:15 -04:00
Charlie Marsh
732f208e47
Add a lint rule to enforce noqa validity (#253) 2022-09-21 19:56:38 -04:00
Charlie Marsh
65d29d9734
Adjust line numbers when reporting rules in f-strings (#244) 2022-09-21 13:42:58 -04:00
Charlie Marsh
d827e6e36a
Implement F405 (#243) 2022-09-21 12:13:40 -04:00
Harutaka Kawamura
71d9b2ac5f
Implement F402 (#221) 2022-09-21 11:12:55 -04:00
Charlie Marsh
fa0954fe47
Treat relative excludes as relative to project root (#228) 2022-09-19 20:45:02 -06:00
Charlie Marsh
a0b50d7ebc
Use absolute paths for exclusion matching (#213) 2022-09-19 20:32:31 -06:00
Charlie Marsh
afe7a04211
Ignore F841 violations when locals() is in scope (#226) 2022-09-19 20:13:55 -06:00
Charlie Marsh
14806c62ca
Reduce number of sites for new check definitions (#227) 2022-09-19 20:13:46 -06:00
Suguru Yamamoto
0d0c8730fa
fix: Use UTF-32 char count for line length (#223) (#224) 2022-09-18 10:45:41 -06:00
Anders Kaseorg
9bdb922c75
Detect multi-target assignment as unpacking if *any* target is unpacking (#217) 2022-09-16 21:45:44 -06:00
Charlie Marsh
9d4a4478f7
Improve exclusion syntax to match exact files (#209) 2022-09-15 21:40:49 -04:00
Charlie Marsh
71520213c1
Allow __path__ in __init__.py (#201) 2022-09-15 09:44:03 -04:00
Charlie Marsh
592c53c8bf
Use binding location when reporting F821 errors (#200) 2022-09-14 22:51:07 -04:00
Charlie Marsh
b8f12d2e79
Raise error when failing to parse (#199) 2022-09-14 22:37:55 -04:00
Charlie Marsh
67b1d0463a
Pull in pycodestyle tests for E checks (#195) 2022-09-14 22:22:53 -04:00
Charlie Marsh
d008a181ec
Improve default exclusions and support extend-exclude (#188) 2022-09-14 22:21:17 -04:00