Commit graph

41 commits

Author SHA1 Message Date
Maksudul Haque
9f8ef1737e
[flake8-bandit] Add Rule for S324 (Insecure hash functions in hashlib) (#1661)
ref: https://github.com/charliermarsh/ruff/issues/1646
2023-01-05 11:45:47 -05:00
Edgar R. M
1817f8752b
Implement flake8-bandit rule S103 (#1636) 2023-01-04 15:47:38 -05:00
Harutaka Kawamura
03a8ece954
Implement autofix for F541 (#1577) 2023-01-02 22:28:32 -05:00
Charlie Marsh
31ce37dd8e
Avoid PD false positives on some non-DataFrame expressions (#1538) 2023-01-01 17:05:57 -05:00
Colin Delahunty
4ad8db3d61
Pyupgrade: Turn errors into OSError (#1434) 2022-12-31 16:36:05 -05:00
Harutaka Kawamura
960c5e2006
Use more precise error ranges for names (#1513) 2022-12-31 13:42:39 -05:00
Harutaka Kawamura
f73dfbbfd3
Fix E722 and F707 ranges (#1508) 2022-12-31 07:58:46 -05:00
Harutaka Kawamura
14248cb8cb
Improve PLW0120 range (#1500) 2022-12-31 07:42:49 -05:00
Harutaka Kawamura
9106d5338b
Replace make_tokenize with make_tokenizer_located (#1405) 2022-12-27 10:07:03 -05:00
Harutaka Kawamura
dca3fcd8d1
Improve excepthandler_name_range (#1368) 2022-12-25 00:12:12 -05:00
Harutaka Kawamura
10f75c9620
Fix F841 (UnusedVariable) range in except handler (#1367) 2022-12-24 22:55:55 -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
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
6be910ae07
Use more precise ranges for function and class checks (#1247) 2022-12-14 22:40:00 -05:00
Charlie Marsh
ee994e8c07
Import compatibility with isort newline-insertion behavior (#1078) 2022-12-05 16:07:07 -05:00
Anders Kaseorg
dbb1a6e44b
Remove sloppy match_name_or_attr helper (#1027) 2022-12-04 09:12:03 -05:00
Charlie Marsh
7445d00b88
Implement B023 (function uses loop variable) (#907) 2022-11-25 18:29:54 -05:00
Charlie Marsh
f59799e0c4 Remove lingering empty lines 2022-11-22 17:54:24 -05:00
Charlie Marsh
814ddeb7ea
Remove always-inline (#879) 2022-11-22 17:13:25 -05:00
Anders Kaseorg
3b33a431d6 Fix clippy::map_unwrap_or (pedantic)
https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-11-21 23:22:28 -05:00
Anders Kaseorg
58949b564e
Fix clippy::trivially-copy-pass-by-ref (pedantic) (#862) 2022-11-21 15:59:51 -05:00
Charlie Marsh
965918744b
Replace FNV with rustc-hash (#837) 2022-11-20 15:38:31 -05:00
Harutaka Kawamura
13e8ed0a0a
Implement autofix for E731 (#814) 2022-11-19 19:51:41 -05:00
Charlie Marsh
b04a6a3f7c
Support arbitrary expression paths for class and static decorators (#772) 2022-11-16 12:24:46 -05:00
Charlie Marsh
7d8360a1de
Change all &Option<> to Option<&> (#768) 2022-11-16 09:40:01 -05:00
Charlie Marsh
b4e1563517
Avoid allocations for binding values (#764) 2022-11-16 08:55:35 -05:00
Charlie Marsh
8961da7b89
Add support for import alias tracking (#746) 2022-11-14 21:29:30 -05:00
Charlie Marsh
f67727b13c
Improve performance of import matching code (#744) 2022-11-14 17:14:22 -05:00
Charlie Marsh
f5b1f957e3
Improve some import tracking code (#715) 2022-11-13 00:10:13 -05:00
Charlie Marsh
8cfc0e5cf5
Use FnvHasher for unordered maps and sets (#708) 2022-11-12 16:09:34 -05:00
Charlie Marsh
79ca66ace5
Use nightly rustfmt with rustfmt.toml (#536) 2022-11-01 20:34:38 -04:00
Charlie Marsh
e9a4c8ba13
Track typing module imports (#533) 2022-11-01 14:01:59 -04:00
Charlie Marsh
2415d73260
Remove RustPython fork (#523) 2022-10-30 18:04:05 -04:00
Charlie Marsh
583149a472
Break up autofix/fixes.rs (#449) 2022-10-17 17:01:50 -04:00
Charlie Marsh
4ac6a18d40 Remove some Vec arguments 2022-10-16 18:17:10 -04:00
Charlie Marsh
c384fa513b
Implement B025 from flake8-bugbear (#391) 2022-10-10 12:18:31 -04:00
Charlie Marsh
9cc902b802
Avoid F821 false-positives with NameError (#386) 2022-10-10 09:39:59 -04:00
Charlie Marsh
50a3fc5a67 Move some code into helpers.rs 2022-10-08 20:45:15 -04:00
Charlie Marsh
7fe5945541
Implement PEP 604 annotation rewrites (#369) 2022-10-08 20:28:00 -04:00