Charlie Marsh
b8ed4d402a
Implement SIM110 and SIM111 (conversion to any and all) ( #1653 )
2023-01-04 23:08:12 -05:00
messense
46dcf3c4c0
Implement flake8-simplify SIM107 ( #1650 )
2023-01-04 23:02:25 -05:00
Charlie Marsh
fb8024a6ac
Implement nested with detection (SIM117) ( #1651 )
2023-01-04 21:22:25 -05:00
Edgar R. M
2f71bdfbfc
Implement flake8-bandit rule S108 ( #1644 )
2023-01-04 21:11:13 -05:00
Charlie Marsh
30d6688c26
Implement nested-if detection ( #1649 )
2023-01-04 20:55:01 -05:00
Charlie Marsh
7339d7eccf
Implement builtin import removal ( #1645 )
2023-01-04 19:10:16 -05:00
Martin Fischer
ca48492137
Add task-tags & ignore-overlong-task-comments settings ( #1550 )
2023-01-04 17:10:21 -05:00
Edgar R. M
1817f8752b
Implement flake8-bandit rule S103 ( #1636 )
2023-01-04 15:47:38 -05:00
Harutaka Kawamura
12166584c4
Minor fixes for SIM105 ( #1633 )
2023-01-04 11:01:06 -05:00
messense
0df28bdd4e
Implement flake8-simplify SIM105 rule ( #1621 )
2023-01-04 08:10:59 -05:00
Charlie Marsh
8b07f9517a
Implement SIM220 and SIM221 ( #1630 )
2023-01-04 08:07:00 -05:00
Harutaka Kawamura
0a0e1926f2
Check SIM118 in comprehension ( #1627 )
2023-01-04 07:05:13 -05:00
Colin Delahunty
fb1a638a96
Implement yield-to-yield from conversion ( #1544 )
2023-01-03 22:56:52 -05:00
Edgar R. M
16964409a8
Implement missing fixes for PT006 ( #1622 )
2023-01-03 22:52:51 -05:00
Charlie Marsh
bd14f92898
Avoid byte-string conversions ( #1618 )
2023-01-03 21:45:14 -05:00
Charlie Marsh
0d27c0be27
Treat .pyi files as __future__ annotations-enabled ( #1616 )
2023-01-03 21:27:26 -05:00
Edgar R. M
60359c6adf
Fix leftover whitespace when removing pass for PIE790 ( #1612 )
2023-01-03 20:44:59 -05:00
Charlie Marsh
77692e4b5f
Associate inline comments with parenthesized ImportFrom statements ( #1609 )
2023-01-03 20:02:12 -05:00
Charlie Marsh
731f3a74a9
Fix *arg and **kwarg handling for Google docstrings ( #1608 )
2023-01-03 18:17:42 -05:00
Maksudul Haque
d4d67e3014
Do not Change Quotation Style for PT006 Autofix ( #1600 )
2023-01-03 10:16:49 -05:00
Ran Benita
ebb31dc29b
Fix PT006 autofix of parametrize name strings like ' first, , second ' ( #1591 )
2023-01-03 08:12:09 -05:00
Charlie Marsh
68fbd0f029
Preserve style when generating flake8-simplify messages ( #1599 )
2023-01-03 08:05:55 -05:00
Charlie Marsh
e0fe34c523
Implement and-false and or-true rules ( #1586 )
2023-01-02 23:10:42 -05:00
Harutaka Kawamura
03a8ece954
Implement autofix for F541 ( #1577 )
2023-01-02 22:28:32 -05:00
Charlie Marsh
8aeec35bfb
Implement dupe-class-field-definitions ( #1581 )
2023-01-02 22:26:01 -05:00
Charlie Marsh
93259acb31
Implement unnecessary-pass-statement ( #1580 )
2023-01-02 22:15:24 -05:00
Charlie Marsh
5dd9e99a4b
Add flake8-pie plugin with prefer_list_builtin ( #1578 )
2023-01-02 21:47:38 -05:00
Charlie Marsh
1425b21d93
Avoid invalid trailing comma fixes for mock rewrites ( #1570 )
2023-01-02 18:03:43 -05:00
Edgar R. M
c4014ef2d3
Implement flake8-pytest-style ( #1506 )
2023-01-02 16:34:17 -05:00
Charlie Marsh
6d5aa344a1
Avoid merging import from statements with inline comments ( #1562 )
2023-01-02 16:24:41 -05:00
Colin Delahunty
e9be5fc7be
Add typo linter ( #1553 )
2023-01-02 15:57:59 -05:00
Martin Fischer
90b2d85c85
Fix __init__.py being private ( #1556 )
...
Previously visibility::module_visibility() returned Private
for any module name starting with an underscore, resulting in
__init__.py being categorized as private, which in turn resulted
in D104 (Missing docstring in public package) never being reported
for __init__.py files.
2023-01-02 14:39:23 -05:00
Martin Fischer
cdae2f0e67
Fix typing::match_annotated_subscript matching ExprKind::Call ( #1554 )
2023-01-02 12:13:45 -05:00
Pedram Navid
07e47bef4b
Add flake8-simplify SIM300 check for Yoda Conditions ( #1539 )
2023-01-01 18:37:40 -05:00
Colin Delahunty
65c34c56d6
Implement list-to-tuple comprehension unpacking ( #1534 )
2023-01-01 16:53:26 -05:00
Charlie Marsh
f1a183c171
Rewrite mock.mock attribute accesses ( #1533 )
2023-01-01 13:14:09 -05:00
Harutaka Kawamura
509c6d5ec7
Add visit_format_spec to avoid false positives for F541 in f-string format specifier ( #1528 )
2023-01-01 13:03:32 -05:00
Colin Delahunty
70895a8f1e
Pyupgrade: import mock to from unittest import mock ( #1488 )
2022-12-31 21:25:06 -05:00
Charlie Marsh
f2c9f94f73
Avoid some false positives for ends-in-period checks ( #1521 )
2022-12-31 18:38:22 -05:00
Charlie Marsh
605c6069e2
Ignore property assignments in RET504 ( #1520 )
2022-12-31 18:04:13 -05:00
Colin Delahunty
4ad8db3d61
Pyupgrade: Turn errors into OSError ( #1434 )
2022-12-31 16:36:05 -05:00
Charlie Marsh
9ba17fbf92
Avoid flagging nested f-strings ( #1516 )
2022-12-31 13:41:21 -05:00
Harutaka Kawamura
f7bb5bc858
Remove F831 ( #1495 )
2022-12-30 23:57:51 -05:00
Charlie Marsh
1e3cf87f67
Escape strings when formatting check messages ( #1493 )
2022-12-30 22:11:01 -05:00
Reiner Gerecke
080f99b908
Detect line endings and use them during code generation ( #1482 )
2022-12-30 12:59:40 -05:00
Charlie Marsh
a86c57a832
Support multi-line noqa directives for 'import from' ( #1479 )
2022-12-30 11:16:50 -05:00
Charlie Marsh
b078050732
Implicit flake8-implicit-str-concat ( #1463 )
2022-12-29 23:00:55 -05:00
Martin Fischer
9d34da23bd
Implement TID251 (banning modules & module members) ( #1436 )
2022-12-29 22:11:12 -05:00
Colin Delahunty
f735660801
Removed unicode literals ( #1448 )
2022-12-29 20:11:33 -05:00
Maksudul Haque
781bbbc286
[pygrep-hooks] Adds Check for Blanket # noqa ( #1440 )
2022-12-29 12:43:16 -05:00