Commit Graph

85 Commits

Author SHA1 Message Date
Charlie Marsh ac6fa1dc88
Simplify some logic around configuration detection (#1197) 2022-12-12 10:15:05 -05:00
Charlie Marsh 0adc9ed259
Support hierarchical settings for nested directories (#1190) 2022-12-12 10:12:23 -05:00
Reiner Gerecke 7f25d1ec70
Implement SIM118 (key in dict) of flake8-simplify (#1195) 2022-12-11 10:05:11 -05:00
Charlie Marsh bb67fbb73a
Implement unused argument detection (`ARG`) (#1126)
Detect unused arguments
2022-12-07 12:15:41 -05:00
Edgar R. M ea550abd3c
Implement `flake8-import-conventions` (#1098) 2022-12-06 16:01:17 -05:00
Charlie Marsh 71543eeabc
Rename rules mod to ruff (#1104) 2022-12-05 23:35:36 -05:00
Charlie Marsh 291727a27d
Implement `flake8-return` plugin (#1016) 2022-12-03 20:12:11 -05:00
Jonathan Plasse 117fcb6936
Add no-eval rule from pygrep-hooks (#994) 2022-12-02 12:59:06 -05:00
Charlie Marsh f6b0a606d6
Implement await-outside-async / E1142 (#972) 2022-11-30 11:38:03 -05:00
Charlie Marsh 82b0b7941a
Implement eradicate (#947) 2022-11-28 20:54:33 -05:00
Denis Gavrilyuk 721a1e9443
Add flake8-debugger (#909) 2022-11-26 16:21:03 -05:00
Charlie Marsh d28e026525
Preserve existing noqa codes in --add-noqa (#913) 2022-11-26 14:42:19 -05:00
Charlie Marsh 92ca114882
Move some main.rs subcommands to a new module (#901) 2022-11-24 22:43:43 -05:00
CelebrateVC a3af6c1ea5
Implement GlobSet optimization for file path exclusions (#883) 2022-11-24 22:31:55 -05:00
Oliver Margetts 2cf2805848
Implement F521 (#898) 2022-11-24 18:09:36 -05:00
Charlie Marsh bdd32c0850
Enforce most pedantic lints on CI (#878) 2022-11-22 18:55:57 -05:00
Charlie Marsh 9315b9f459
Remove Mode from various internal checkers (#877) 2022-11-22 16:57:47 -05:00
Charlie Marsh fe77fb70a1
Apply autofixes iteratively until code is stabilized (#875) 2022-11-22 16:37:52 -05:00
Anders Kaseorg 58949b564e
Fix clippy::trivially-copy-pass-by-ref (pedantic) (#862) 2022-11-21 15:59:51 -05:00
pwoolvett 7a4449eacb
Add flake8-boolean-trap (#790) 2022-11-18 12:30:07 -05:00
Jonathan Plasse 2f894e3951
Add flake8-blind-except (#805) 2022-11-18 12:15:10 -05:00
Edgar R. M f44fada446
Implement C901 (mccabe) (#765) 2022-11-17 17:40:50 -05:00
Charlie Marsh f0a54716e5
Implement flake8-tidy-imports (#789) 2022-11-17 11:44:06 -05:00
Charlie Marsh 7d8360a1de
Change all &Option<> to Option<&> (#768) 2022-11-16 09:40:01 -05:00
Charlie Marsh b5cb9485f6 Move updater to its own module 2022-11-15 15:51:24 -05:00
Charlie Marsh 3a2e6926d4
Include flake8-bugbear settings in flake8-to-ruff (#712) 2022-11-12 16:46:12 -05:00
Edgar R. M 1b422a7f12
Add `flake8-bandit` (#697) 2022-11-12 12:04:49 -05:00
Anders Kaseorg 5a8b7c1d20
Implement flake8-2020 (sys.version, sys.version_info misuse) (#688) 2022-11-11 20:39:37 -05:00
Charlie Marsh befe64a10e
Support `isort: skip`, `isort: on`, and `isort: off` (#678) 2022-11-11 12:38:01 -05:00
Charlie Marsh 3cc74c0564
Implement import sorting (#633) 2022-11-10 19:05:56 -05:00
Charlie Marsh 99d9aa61bf
Implement flake8-annotations (#625) 2022-11-06 17:25:49 -05:00
Charlie Marsh 0e3f08aa68
Split ambiguous unicode detection into string vs. docstring rules (#590) 2022-11-04 14:46:20 -04:00
Charlie Marsh 50c4bbc52b
Implement ambiguous unicode character detection (#578) 2022-11-04 12:08:26 -04:00
Charlie Marsh f0239de559
Use a shared Rope between AST checker and fixer (#585) 2022-11-04 12:05:46 -04:00
Charlie Marsh f50ff61056
Expose autofix mode in public API (#551) 2022-11-02 09:44:46 -04:00
Charlie Marsh 79ca66ace5
Use nightly rustfmt with rustfmt.toml (#536) 2022-11-01 20:34:38 -04:00
Charlie Marsh bad5723d80
Add plugin configuration to flake8-to-ruff (#535) 2022-11-01 17:08:53 -04:00
Charlie Marsh f3f010cdf5
Move flake8-to-ruff to a separate crate (#528) 2022-10-31 14:22:07 -04:00
Charlie Marsh 7e5e03fb15
Add a Flake8-to-Ruff configuration conversion tool (#527) 2022-10-31 11:34:40 -04:00
Charlie Marsh 78889efa37
Modify public API to return Check rather than Message (#524) 2022-10-31 09:20:14 -04:00
Charlie Marsh b060ae2f22
Move SourceCodeLocator to its own module (#522) 2022-10-30 15:51:59 -04:00
Charlie Marsh 9aa91d3d3c
Add a cargo bench for SourceCodeLocator (#521) 2022-10-30 13:50:42 -04:00
Charlie Marsh c495cef529
Move pyproject.toml logging to debug (#506) 2022-10-29 17:07:46 -04:00
Charlie Marsh 782a90b584
Add tests for resolve_codes (#498) 2022-10-28 18:58:46 -04:00
Charlie Marsh 7df903dc4d
Move around and rename some of the Settings structs (#496) 2022-10-28 18:46:54 -04:00
Charlie Marsh 8fc5e91ec7
Enable prefix-based check code selection (#493) 2022-10-28 18:19:57 -04:00
Charlie Marsh 86265c1d7c
Implement the `flake8-quotes` plugin (#495) 2022-10-28 17:52:11 -04:00
Charlie Marsh 63552cbc8e
Implement W605 (invalid escape sequence) (#482) 2022-10-26 19:10:24 -04:00
Charlie Marsh 16c2e3a995
Handle multi-segment import-from removal (#479) 2022-10-26 16:36:12 -04:00
Anders Kaseorg 650b025181
Suppress “No pyproject.toml found” message with --quiet (#478) 2022-10-26 16:03:25 -04:00