Commit Graph

11956 Commits

Author SHA1 Message Date
Charlie Marsh 4ac74ed0ad Revert erroneous pyproject.toml changes 2022-09-14 08:14:26 -04:00
Dmitry Dygalo b7e2a4b9a9
feat: Implement `InvalidPrintSyntax` (`F633`) (#182) 2022-09-13 21:10:20 -04:00
Dmitry Dygalo 53a7758248
Avoid some allocations (#179) 2022-09-13 10:07:22 -04:00
Dmitry Dygalo 2ba767957d
refactor: Use `while let Some` instead of calling `is_empty` (#180) 2022-09-13 10:06:49 -04:00
Dmitry Dygalo 08152787e1
chore: Use `once_cell` instead of `lazy_static` (#178) 2022-09-13 10:06:21 -04:00
Charlie Marsh 5f77b420cd Bump version to 0.0.37 2022-09-12 21:35:08 -04:00
Charlie Marsh 90f9e60517
Implement F722 (#175) 2022-09-12 21:34:27 -04:00
Brian Okken 320737f6e4
Change URL to comply with PEP 621 (#173) 2022-09-12 18:38:20 -04:00
Charlie Marsh dfba1416b2
Implement F406 (#172) 2022-09-12 16:47:30 -04:00
Charlie Marsh 2ca3f35bd1 Remove one match from checks.rs 2022-09-12 16:32:27 -04:00
Adrian Garcia Badaracco b1c40d5fa7
Run MacOS builds in parallel (#171) 2022-09-12 16:24:13 -04:00
Charlie Marsh a129e27b3e Tweak rule counts 2022-09-12 15:26:21 -04:00
Charlie Marsh ad7daa008e Update README to enumerate missing Flake8 rules 2022-09-12 15:24:32 -04:00
Charlie Marsh 062d7081a0 Bump version to 0.0.36 2022-09-12 11:16:26 -04:00
Charlie Marsh 40c1e7e005
Implement F701 and F702 (#169) 2022-09-12 11:16:08 -04:00
Charlie Marsh 3cbd05ddff Update README 2022-09-12 09:31:16 -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 546be5692a Bump version to 0.0.35 2022-09-11 21:54:00 -04:00
Charlie Marsh 43e1f20b28
Allow unused assignments in for loops and unpacking (#163) 2022-09-11 21:53:45 -04:00
Harutaka Kawamura 97388cefda
Implement E743 (#162) 2022-09-11 21:27:33 -04:00
Harutaka Kawamura 63ce579989
Implement E742 (#160) 2022-09-11 20:27:48 -04:00
Charlie Marsh 5f4a62aa40 Bump version to 0.0.34 2022-09-11 18:05:52 -04:00
Charlie Marsh 02ab52b3e2
Implement F407 (#158) 2022-09-11 18:05:28 -04:00
Charlie Marsh 549732b1da
Implement F404 (#159) 2022-09-11 18:05:00 -04:00
Harutaka Kawamura c4565fe0f5
Implement E741 (#137) 2022-09-11 12:30:28 -04:00
Charlie Marsh 81ae3bfc94 Bump version to 0.0.33 2022-09-11 10:45:02 -04:00
Charlie Marsh 62e6feadc7
Handle accesses within inner functions (#156) 2022-09-11 10:44:27 -04:00
Charlie Marsh 18a26e8f0b
Allow setting --exclude on the command-line (#157) 2022-09-11 10:44:23 -04:00
Charlie Marsh 2371de3895
Make late imports more permissive (#155) 2022-09-11 10:44:06 -04:00
Charlie Marsh e3c8f61340
Ignore deletes in conditional branches (#154) 2022-09-11 10:28:07 -04:00
Harutaka Kawamura f6628ae100
Fix `Message.cmp` (#152) 2022-09-11 10:18:27 -04:00
Jakub Kuczys 989ed9c10b
Fix ruff's pyproject.toml section name in README.md (#148) 2022-09-11 10:18:19 -04:00
Charlie Marsh 8698c06c36 Bump version to 0.0.32 2022-09-10 15:21:01 -04:00
Charlie Marsh dfd8a4158d
Parse function annotations within the ClassDef scope (#144) 2022-09-10 15:20:39 -04:00
Charlie Marsh c247730bf5 Avoid treating keys as annotations in TypedDict 2022-09-10 15:19:11 -04:00
Charlie Marsh 024472d578
Implement F621 and F622 (#143) 2022-09-10 15:04:33 -04:00
Charlie Marsh 7d69a153e8
Support remaining typing module members (#141) 2022-09-10 14:51:43 -04:00
Charlie Marsh 4fc68e0310 Bump version to 0.0.31 2022-09-10 13:05:15 -04:00
Charlie Marsh 6a24351202 Add support for TypedDict 2022-09-10 13:03:29 -04:00
Charlie Marsh d7f95ac6b6 Upgrade RustPython parser to handle list assignments 2022-09-10 12:53:07 -04:00
Charlie Marsh 11234ea555 Add await to YieldOutsideFunction 2022-09-08 22:54:11 -04:00
Charlie Marsh b536159541
Pull check logic out of check_ast.rs (#135) 2022-09-08 22:46:42 -04:00
Charlie Marsh 7c17785eac Bump version to 0.0.30 2022-09-08 11:42:45 -04:00
Charlie Marsh f1acd28f08 Skip slice error for invalid TypeVar calls 2022-09-08 11:40:55 -04:00
Charlie Marsh c61ff9a947
Adjust location when parsing deferred type annotations (#133) 2022-09-08 11:37:19 -04:00
Charlie Marsh 2c64cf3149
Add support for Literal, Type, and TypeVar (#131) 2022-09-08 11:07:45 -04:00
Charlie Marsh fc5f34c76f
Use scope-tracking logic for parents (#130) 2022-09-08 09:14:58 -04:00
Charlie Marsh a8f4faa6e4 Fix crash on missing parent 2022-09-07 22:40:25 -04:00