Simon Brugman
|
02897a141b
|
[flake8-tidy-imports ] add documentation for banned-api (#2819)
|
2023-02-12 18:09:39 +00:00 |
|
Nyakku Shigure
|
fc465cc2af
|
[flake8-pyi ]: add rules for unrecognized platform check (PYI007, PYI008) (#2805)
Add two [flake8-pyi](https://github.com/PyCQA/flake8-pyi) rules (Y007, Y008). ref: #848
The specifications are described in [PEP 484 - Version and platform checking](https://peps.python.org/pep-0484/#version-and-platform-checking)
The original implementation in flake8-pyi is shown below.
- Implemention: 66f28a4407/pyi.py (L1429-L1443)
- Tests: 66f28a4407/tests/sysplatform.pyi
|
2023-02-12 18:02:38 +00:00 |
|
Karol Onyśko
|
6769a5bce7
|
Implement flake8-django plugin rules (#2586)
|
2023-02-12 17:47:59 +00:00 |
|
Zeddicus414
|
fda93c6245
|
Add E722 bare-except documentation (#2796)
|
2023-02-12 16:51:32 +00:00 |
|
trag1c
|
b8835c2e35
|
Added MkDocs section to CONTRIBUTING.md (#2803)
|
2023-02-12 16:07:24 +00:00 |
|
Simon Brugman
|
1d4422f004
|
[flake8-comprehensions ] improve autofix for C401, C402 and C417 (#2806)
|
2023-02-12 16:03:37 +00:00 |
|
Simon Brugman
|
2dccb7611a
|
[flake8-comprehensions ] bugfix for C413 autofix (#2804)
|
2023-02-12 15:56:07 +00:00 |
|
Simon Brugman
|
0123425be1
|
[flake8-comprehensions ] autofix C414 and C417 + bugfix (#2693)
Closes https://github.com/charliermarsh/ruff/issues/2262 and closes https://github.com/charliermarsh/ruff/issues/2423
Fixes bug where some cases generated duplicated violations (see https://github.com/charliermarsh/ruff/pull/2732#issuecomment-1426397842)
|
2023-02-12 05:20:42 +00:00 |
|
Charlie Marsh
|
4a12ebb9b1
|
Improve f-string-missing-placeholders documentation (#2800)
|
2023-02-12 04:58:24 +00:00 |
|
Charlie Marsh
|
418808895e
|
Add docs for f-string-missing-placeholders and unused-variable (#2790)
|
2023-02-12 02:48:36 +00:00 |
|
Charlie Marsh
|
74731a3456
|
Fix reference to ban-relative-imports setting (#2776)
|
2023-02-11 18:34:25 +00:00 |
|
Martin Fischer
|
70ff65154d
|
Rename function-is-too-complex to complex-structure
|
2023-02-11 12:05:17 -05:00 |
|
trag1c
|
e6538a7969
|
Added logo and favicon for mkdocs (#2757)
|
2023-02-10 23:34:47 -05:00 |
|
Charlie Marsh
|
9fd29e2c54
|
Mention default in relative-imports doc
|
2023-02-10 22:12:22 -05:00 |
|
Simon Brugman
|
e83ed0ecba
|
Implement autofix for relative imports (TID252) (#2739)
|
2023-02-10 22:05:47 -05:00 |
|
Nick Pope
|
9f84c497f9
|
Adjust heading level in rule documentation (#2749)
|
2023-02-10 19:10:42 -05:00 |
|
Martin Fischer
|
0ec25d1514
|
Rename dynamically-typed-expression to any-type (#2751)
|
2023-02-10 19:02:31 -05:00 |
|
Charlie Marsh
|
c8f60c9588
|
Improve implicit-namespace-package documentation
|
2023-02-10 18:06:48 -05:00 |
|
Charlie Marsh
|
113610a8d4
|
Improve hardcoded-sql-expression documentation
|
2023-02-10 18:03:01 -05:00 |
|
Charlie Marsh
|
6376e5915e
|
Improve dynamically-typed-expression documentation
|
2023-02-10 17:55:26 -05:00 |
|
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 |
|