ruff/scripts
Simon Brugman 28f05aa6e7
feat: update scripts to new rules structure (#2078)
- optional `prefix` argument for `add_plugin.py`
- rules directory instead of `rules.rs`
- pathlib syntax
- fix test case where code was added instead of name

Example:
```
python scripts/add_plugin.py --url https://pypi.org/project/example/1.0.0/ example --prefix EXA
python scripts/add_rule.py --name SecondRule --code EXA002 --linter example
python scripts/add_rule.py --name FirstRule --code EXA001 --linter example
python scripts/add_rule.py --name ThirdRule --code EXA003 --linter example
 ```

Note that it breaks compatibility with 'old style' plugins (generation works fine, but namespaces need to be changed):
```
python scripts/add_rule.py --name DoTheThing --code PLC999 --linter pylint
```
2023-01-21 19:19:58 -05:00
..
benchmarks Add benchmark scripts for no-IO (#1925) 2023-01-16 17:38:40 -05:00
_utils.py refactor: Rename RuleOrigin to Linter 2023-01-20 20:25:57 -05:00
add_plugin.py feat: update scripts to new rules structure (#2078) 2023-01-21 19:19:58 -05:00
add_rule.py feat: update scripts to new rules structure (#2078) 2023-01-21 19:19:58 -05:00
pyproject.toml fix: Update add_rule.py to account for 81996f1bc 2023-01-20 08:09:54 -05:00