Commit Graph

6318 Commits

Author SHA1 Message Date
Charlie Marsh 9a7331b2e2
Annotate RUF100 messages with unmatched, disabled, and unknown codes (#1365) 2022-12-24 14:55:55 -05:00
Edgar R. M 4888afd423
Generate JSON schema for Ruff options (#1329) 2022-12-24 14:10:22 -05:00
Sawbez 0dc523b081
Add autofix for W605 [InvalidEscapeSequence] (#1361) 2022-12-24 13:46:28 -05:00
Harutaka Kawamura 63772e335d
Fix B025 location (#1360) 2022-12-24 12:22:11 -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
Harutaka Kawamura 201e1250de
Update RustPython to use the correct `BinOp` location (#1355) 2022-12-23 22:58:39 -05:00
Reiner Gerecke 102b049a32
Add cache-dir to command-line and pyproject.toml (#1351) 2022-12-23 22:58:29 -05:00
Charlie Marsh 74f49eda64
Bump compatibility to 3.11 (#1352) 2022-12-23 12:12:11 -05:00
Reiner Gerecke 9da3e2cca1
Implement "native literals" check from pyupgrade (#1350) 2022-12-23 11:40:32 -05:00
Charlie Marsh e290050821
Avoid enabling all EM checks at once (#1349) 2022-12-23 08:25:07 -05:00
Charlie Marsh bc9ed0a4ef Tweak LSP docs 2022-12-22 22:16:32 -05:00
Charlie Marsh 20b9b44973 Link to ruff-lsp docs 2022-12-22 21:53:11 -05:00
Charlie Marsh 6e5a553235 Update Neovim instructions 2022-12-22 21:52:30 -05:00
Charlie Marsh 2a08a63f17
Add a link to the PyCharm plugin (#1345) 2022-12-22 21:50:24 -05:00
Colin Delahunty d4290e6721
Update CONTRIBUTING.md (#1344) 2022-12-22 21:04:19 -05:00
Charlie Marsh 51bda28a7d Bump version to 0.0.192 2022-12-22 17:31:31 -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 451047c30d Exclude directly-passed files nested in excluded subdirectories 2022-12-22 15:08:11 -05:00
Charlie Marsh 6907df489b
Extend false-positive list for flake8-boolean-trap (#1338) 2022-12-22 10:56:04 -05:00
Charlie Marsh 970f882b03
Set force-exclude for pre-commit in README (#1337) 2022-12-22 10:51:20 -05:00
Charlie Marsh 3eff9a2860
Allow unittest methods in flake8-boolean-trap (#1333) 2022-12-22 08:40:22 -05:00
Charlie Marsh a4a24a0ef3
Add some more repositories to the user list (#1328) 2022-12-21 22:16:47 -05:00
Charlie Marsh 48e3c046b0 Fix integration tests 2022-12-21 21:25:37 -05:00
Charlie Marsh 03e4f5be8a Bump version to 0.0.191 2022-12-21 21:16:21 -05:00
Charlie Marsh 99657b7d92
Implement E401 ("multiple imports on one line") (#1326) 2022-12-21 21:15:57 -05:00
Charlie Marsh 40377aa1fc
Move number of errors to the bottom of the output summary (#1325) 2022-12-21 21:04:26 -05:00
Charlie Marsh 2a37017e8c Add src to Settings hash 2022-12-21 21:01:20 -05:00
Charlie Marsh ff66d08cef Run generate-options 2022-12-21 20:58:14 -05:00
Charlie Marsh dad8035eef
Support shell expansion in src field (#1324) 2022-12-21 20:57:20 -05:00
Charlie Marsh bf5fec342c
Support shell expansion in `extend` paths (#1323) 2022-12-21 20:46:38 -05:00
Charlie Marsh 66a6c81ebf
Infer package roots when running via stdin (#1321) 2022-12-21 20:30:10 -05:00
Charlie Marsh 5c70f5044b
Improve debug logging in flake8-to-ruff (#1320) 2022-12-21 20:05:48 -05:00
Charlie Marsh 953d141ab2
Support code redirects in flake8-to-ruff (#1318) 2022-12-21 19:31:20 -05:00
Charlie Marsh 07dba46039
Extract line length from `pyproject.toml` Black section (#1317) 2022-12-21 19:05:18 -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 20234c6156 Bump version to 0.0.190 2022-12-21 16:01:48 -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 ce1663d302
Allow overriding cache location via RUFF_CACHE_DIR (#1312) 2022-12-21 14:24:10 -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 ef8fe31c0c Bump version to 0.0.189 2022-12-20 13:26:17 -05:00
Charlie Marsh 226f682c99
Avoid DTZ007 false-positives for non-string arguments (#1300) 2022-12-20 13:20:53 -05:00
Hannes Käufler 468ffd29fb
[Stylistic/non-functional] Use an r# format string to make json easier to read (#1299) 2022-12-20 12:55:21 -05:00
Charlie Marsh a61126ab23 Run generate-options 2022-12-19 23:19:05 -05:00
Charlie Marsh 54c7c25861 Revert test changes to setup.py 2022-12-19 20:09:47 -05:00
Charlie Marsh eff7700d92
Add `--force-exclude` setting to force exclusions with `pre-commit` (#1295) 2022-12-19 20:08:59 -05:00
Charlie Marsh 8934f6938d
Avoid RET504 errors for intermediary function calls (#1294) 2022-12-19 19:48:09 -05:00