Charlie Marsh
|
3d8fb5be20
|
Rewrite documentation for yield-in-init (#2748)
|
2023-02-10 17:49:55 -05:00 |
|
Charlie Marsh
|
e5f5142e3e
|
Improve yield-in-init documentation
|
2023-02-10 16:47:44 -05:00 |
|
Charlie Marsh
|
98d5ffb817
|
Fix __init__.py-to-__init__ in documentation
|
2023-02-10 16:30:36 -05:00 |
|
Charlie Marsh
|
3f20f73413
|
Use function_type::classify for yield-in-init (#2742)
|
2023-02-10 16:19:45 -05:00 |
|
Martin Fischer
|
ec63658250
|
Disallow rule names starting with avoid-*
|
2023-02-10 09:25:29 -05:00 |
|
Colin Delahunty
|
48daa0f0ca
|
[pylint ]: bad-string-format-type (#2572)
|
2023-02-09 20:08:56 -05:00 |
|
Matt Oberle
|
fc628de667
|
Implement bandit's 'hardcoded-sql-expressions' S608 (#2698)
This is an attempt to implement `bandit` rule `B608` (renamed here `S608`).
- https://bandit.readthedocs.io/en/latest/plugins/b608_hardcoded_sql_expressions.html
The rule inspects strings constructed via `+`, `%`, `.format`, and `f""`.
- `+` and `%` via `BinOp`
- `.format` via `Call`
- `f""` via `JoinedString`
Any SQL-ish strings that use Python string formatting are flagged.
The expressions and targeted expression types for the rule come from here:
- 7104b336d3/bandit/plugins/injection_sql.py
> Related Issue: https://github.com/charliermarsh/ruff/issues/1646
|
2023-02-09 19:28:17 -05:00 |
|
Steve Dignam
|
67e58a024a
|
Add flake8-pyi with one rule (#2682)
Add basic scaffold for [flake8-pyi](https://github.com/PyCQA/flake8-pyi) and the first rule, Y001
rel: https://github.com/charliermarsh/ruff/issues/848
|
2023-02-09 19:03:11 -05:00 |
|
Nick Pope
|
7750087f56
|
Remove duplicate documentation for TRY002 (#2692)
|
2023-02-09 12:08:00 -05:00 |
|
Charlie Marsh
|
7d5fb0de8a
|
Add documentation for mccabe, isort, and flake8-annotations (#2691)
|
2023-02-09 11:56:18 -05:00 |
|
Nuno Mendes
|
9cd1bf9c03
|
doc: add documentation for TRY002 (#2655)
|
2023-02-08 11:04:31 -05:00 |
|
Charlie Marsh
|
4c35feaa18
|
Add documentation for eradicate, flake8-import-conventions, and flake8-no-pep420 (#2652)
|
2023-02-07 22:19:21 -05:00 |
|
Charlie Marsh
|
a9aa96b24f
|
Add documentation for flake8-quotes rules (#2650)
|
2023-02-07 21:20:24 -05:00 |
|
Charlie Marsh
|
56398e0002
|
Tweak format for rule explanations (#2645)
|
2023-02-07 19:02:41 -05:00 |
|
Charlie Marsh
|
271e4fda8c
|
Create per-rule pages and link from README (#2644)
|
2023-02-07 18:15:05 -05:00 |
|