Simon Brugman
b7e32b0a18
Re-enable clippy `useless-format` ( #14095 )
2024-11-04 18:25:25 +01:00
TomerBin
053243635c
[`fastapi`] Implement `FAST001` (`fastapi-redundant-response-model`) and `FAST002` (`fastapi-non-annotated-dependency`) ( #11579 )
...
## Summary
Implements ruff specific role for fastapi routes, and its autofix.
## Test Plan
`cargo test` / `cargo insta review`
2024-07-21 18:28:10 +00:00
Auguste Lalande
4bc73dd87e
[`pydoclint`] Implement `docstring-missing-exception` and `docstring-extraneous-exception` (`DOC501`, `DOC502`) ( #11471 )
...
## Summary
These are the first rules implemented as part of #458 , but I plan to
implement more.
Specifically, this implements `docstring-missing-exception` which checks
for raised exceptions not documented in the docstring, and
`docstring-extraneous-exception` which checks for exceptions in the
docstring not present in the body.
## Test Plan
Test fixtures added for both google and numpy style.
2024-07-20 19:41:51 +00:00
Auguste Lalande
8cc96d7868
Re-code flake8-trio and flake8-async rules to match upstream ( #10416 )
...
Co-authored-by: Micha Reiser <micha@reiser.io>
2024-06-27 13:44:11 +02:00
Kar Petrosyan
2ff1afb15c
Add initial flake8-trio rule ( #8439 )
...
## Summary
This pull request adds
[flake8-trio](https://github.com/Zac-HD/flake8-trio ) support to ruff,
which is a very useful plugin for trio users to avoid very common
mistakes.
Part of https://github.com/astral-sh/ruff/issues/8451 .
## Test Plan
Traditional rule testing, as [described in the
documentation](https://docs.astral.sh/ruff/contributing/#rule-testing-fixtures-and-snapshots ).
2023-11-03 01:05:12 +00:00
Charlie Marsh
5849a75223
Rename `ruff` crate to `ruff_linter` ( #7529 )
2023-09-20 08:38:27 +02:00