Commit graph

158 commits

Author SHA1 Message Date
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
Charlie Marsh
5bf8b13644
Properly combine CLI and pyproject.toml ignores and selects (#329) 2022-10-04 20:07:17 -04:00
Charlie Marsh
44897b2a5b
Enable AST-to-source code generation (#292) 2022-10-04 16:27:57 -04:00
Charlie Marsh
fdb32330a9
Implement __metaclass__ = type removal (#324) 2022-10-04 14:31:52 -04:00
Charlie Marsh
7e4faf4b69
Implement flake8-print (#308) 2022-10-03 17:19:56 -04:00
Charlie Marsh
83f18193c2
Add an end location to Check (#299) 2022-10-02 12:50:42 -04:00
Charlie Marsh
417764d309
Expose a public 'check' method (#289) 2022-09-30 11:30:37 -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
Charlie Marsh
1d5592d937
Use take-while to terminate on parse errors (#279) 2022-09-28 22:06:35 -04:00
Seamooo
02ae494a0e
Enable per-file ignores (#261) 2022-09-24 13:02:34 -04:00
Harutaka Kawamura
dce86e065b
Make unused variable pattern configurable (#265) 2022-09-24 10:43:39 -04:00
Charlie Marsh
c0ce0b0c48
Enable automatic noqa insertion (#256) 2022-09-22 13:59:06 -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
d9e4b0cdc1
Implement --show-settings and --show-files (#246) 2022-09-21 15:08:50 -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
Anders Kaseorg
aa9c1e255c
Simplify check_path type (#239) 2022-09-20 21:11:42 -04:00
Anders Kaseorg
50ca0d7d0a
Correctly display the location of parse errors (#237) 2022-09-20 20:53:22 -04:00
Dmitry Dygalo
0091a3ae5f
chore: Do not read the same file twice (#206) 2022-09-15 16:05:29 -04:00
Charlie Marsh
71520213c1
Allow __path__ in __init__.py (#201) 2022-09-15 09:44:03 -04:00
Charlie Marsh
d008a181ec
Improve default exclusions and support extend-exclude (#188) 2022-09-14 22:21:17 -04:00
Charlie Marsh
6d612a428a
Migrate linter tests to insta (#194) 2022-09-14 21:52:44 -04:00
Charlie Marsh
c0cb73ab16
Implement E721 (#193) 2022-09-14 21:10:29 -04:00
Charlie Marsh
2e1eb84cbf
Implement F632 (#190) 2022-09-14 18:22:35 -04:00
Charlie Marsh
b03a8728b5
Add support for from __future__ import annotations (#189) 2022-09-14 18:22:19 -04:00
Dmitry Dygalo
b7e2a4b9a9
feat: Implement InvalidPrintSyntax (F633) (#182) 2022-09-13 21:10:20 -04:00
Charlie Marsh
90f9e60517
Implement F722 (#175) 2022-09-12 21:34:27 -04:00
Charlie Marsh
dfba1416b2
Implement F406 (#172) 2022-09-12 16:47:30 -04:00
Charlie Marsh
40c1e7e005
Implement F701 and F702 (#169) 2022-09-12 11:16:08 -04:00
Harutaka Kawamura
9414090617
Implement E722 (#166) 2022-09-12 09:04:39 -04:00
Harutaka Kawamura
825777edc1
Add test case for assignment expression in E741.py (#168) 2022-09-12 09:03:36 -04:00
Charlie Marsh
4e0807e908
Include line length in E501 messages (#165) 2022-09-11 22:54:11 -04:00
Charlie Marsh
43e1f20b28
Allow unused assignments in for loops and unpacking (#163) 2022-09-11 21:53:45 -04:00