Commit graph

591 commits

Author SHA1 Message Date
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
Colin Delahunty
34842b4c4b
PyUpgrade: Replace pipes with capture_output=True (#1415) 2022-12-28 16:53:35 -05:00
Colin Delahunty
6131c819ed
Rewrite xml.etree.cElementTree to xml.etree.ElementTree (#1426) 2022-12-28 16:30:36 -05:00
Anders Kaseorg
a8cde5a936
Check for keyword arguments before the last star argument (#1420) 2022-12-27 23:20:03 -05:00
Charlie Marsh
570d0864f2
Add rule to detect keyword arguments before starred arguments (#1416) 2022-12-27 21:17:22 -05:00
Colin Delahunty
c59035139c
Pyupgrade: converts universal_newlines to text in subprocess.run (#1403) 2022-12-27 12:01:27 -05:00
Charlie Marsh
7632d7eda7
Allow specification of explicit docstring convention (#1408) 2022-12-27 11:50:28 -05:00
Reiner Gerecke
534d8d049c
Support isort's force-single-line option (#1366) 2022-12-27 08:51:32 -05:00
Reiner Gerecke
e0b39fa63e
Implement pyupgrade check for io.open alias (#1399) 2022-12-27 07:47:40 -05:00
Colin Delahunty
58c383401c
Replace typing.Text with str (#1391) 2022-12-26 19:55:41 -05:00
Colin Delahunty
debd909b2c
Magic Trailing Commas in isort (#1363) 2022-12-26 09:40:02 -05:00
Reiner Gerecke
fa54538bd1
Only re-associate inline comments during normalization when necessary (#1380) 2022-12-26 07:52:13 -05:00
Charlie Marsh
b0f30bef8f
Add support for ruff.toml (#1378) 2022-12-25 21:55:07 -05:00
Charlie Marsh
ec80d1cd85
Respect natural ordering for imports (#1374) 2022-12-25 18:11:41 -05:00
Charlie Marsh
9bb470c7d4
Ignore unused arguments for @overload stubs (#1373) 2022-12-25 17:22:31 -05:00
Charlie Marsh
9a7331b2e2
Annotate RUF100 messages with unmatched, disabled, and unknown codes (#1365) 2022-12-24 14:55:55 -05:00
Reiner Gerecke
7f4ff1e38f
Fix false-positive in RET504 when referencing globals (#1358) 2022-12-24 12:02:57 -05:00
Reiner Gerecke
32ebc1d227
Don't trigger E721 when comparing with None (#1356) 2022-12-24 04:45:40 -05:00
Sawbez
4ded155dc0
Add autofix for W292 [NoNewLineAtEndOfFile] (#1354) 2022-12-23 23:14:17 -05:00
Reiner Gerecke
9da3e2cca1
Implement "native literals" check from pyupgrade (#1350) 2022-12-23 11:40:32 -05:00
Reiner Gerecke
cc26051b7a
Implement "datetime.UTC alias" check from pyupgrade (#1341) 2022-12-22 17:21:36 -05:00
Charlie Marsh
3ac5a9aa31
Respect --force-exclude for files passed via stdin (#1342) 2022-12-22 16:40:15 -05:00
Charlie Marsh
6907df489b
Extend false-positive list for flake8-boolean-trap (#1338) 2022-12-22 10:56:04 -05:00
Charlie Marsh
99657b7d92
Implement E401 ("multiple imports on one line") (#1326) 2022-12-21 21:15:57 -05:00
Ran Benita
3b02da9d7b
Fix false positive DTZ001 on datetime(2000, 1, 1, 0, 0, 0, 0, utc) (#1308) 2022-12-21 19:03:36 -05:00
Charlie Marsh
de767cc026
Avoid used-prior-global-declaration false-positives in f-strings (#1314) 2022-12-21 14:34:09 -05:00
Charlie Marsh
f40e4bcd14
Avoid flagging RUF100 as a RUF100 violation (#1305) 2022-12-20 17:40:10 -05:00
Charlie Marsh
e7d40d435f
Avoid F821 false positives for Mypy extensions (#1304) 2022-12-20 16:29:33 -05:00
Charlie Marsh
226f682c99
Avoid DTZ007 false-positives for non-string arguments (#1300) 2022-12-20 13:20:53 -05:00
Charlie Marsh
8934f6938d
Avoid RET504 errors for intermediary function calls (#1294) 2022-12-19 19:48:09 -05:00
Charlie Marsh
4da2264722
Avoid T201 errors for print(..., file=fp)-like calls (#1287) 2022-12-19 00:10:07 -05:00
Charlie Marsh
bf88c815aa
Move flake8-debugger tests into flake8-debugger subdirectory (#1286) 2022-12-18 22:06:42 -05:00
Yasu_umi
8a4831dd5b
Implement flake8-datetimez (#1270) 2022-12-18 22:06:06 -05:00
Charlie Marsh
1fc09ebd5c
Fix inverted E501 condition (#1285) 2022-12-18 20:08:30 -05:00
Reiner Gerecke
87465daacc
pygrep-hooks - deprecated use of logging.warn & no blanket type ignore (#1275) 2022-12-18 18:04:21 -05:00
Charlie Marsh
ecf0dd05d6
Auto-detect same-package imports (#1266) 2022-12-16 21:19:11 -05:00
Charlie Marsh
634553f188
Add ignore-variadic-names options to flake8-unused-arguments (#1261) 2022-12-16 00:22:38 -05:00
Edgar R. M
4ff0b75045
test: Fix flake8-errmsg snapshots (#1260) 2022-12-15 23:53:15 -05:00
Charlie Marsh
b4bfa87104
Avoid removing partially-unused imports (#1259) 2022-12-15 23:13:58 -05:00
Edgar R. M
8281d414ca
Implement flake8-errmsg (#1258) 2022-12-15 23:10:59 -05:00
Charlie Marsh
7e45a9f2e2
Avoid generating invalid statements when deleting from multi-statement lines (#1253) 2022-12-15 22:17:31 -05:00
Martin Lehoux
d8b4b92733
Implement U016: Remove six compatibility code (#1013) 2022-12-15 14:16:58 -05:00
Charlie Marsh
d805067683
Avoid fixing E711 and E712 issues that would cause F632 (#1248) 2022-12-15 12:08:31 -05:00
Charlie Marsh
d067efe265
Treat extend-* configuration options as "always extended" (#1245) 2022-12-14 20:22:40 -05:00
Charlie Marsh
549ea2f85f
Ignore any pyproject.toml without a [tool.ruff] section (#1243) 2022-12-14 19:35:52 -05:00
Charlie Marsh
76891a8c07
Always check zero-depth CLI paths (#1241) 2022-12-14 16:32:02 -05:00
Charlie Marsh
4b2020d03a
Automatically ignore files specified in .gitignore (#1234) 2022-12-14 15:58:40 -05:00