Christian Clauss
|
1a3b4c2afe
|
Lint Python twice: 1. Whole repo, 2. Exclude tests/ (#1035)
* Lint Python twice: 1. Whole repo, 2. Exclude tests/
Both runs take less than a second so...
`line-length=366` is more reasonable`
```
- run: pip install --user ruff # Lint Python twice: 1. Whole repo, 2. Exclude tests/
- run: ruff --format=github --line-length=7228 --target-version=py39
--ignore=E402,E712,E721,E722,E741,F401,F403,F405,F541,F601,F811,F822,F841 .
- run: ruff --format=github --line-length=366 --target-version=py39
--exclude=tests/ --ignore=E402,E712,E722,E741,F401,F403,F405,F541,F822,F841 .
```
* Update configoptions.py
|
2023-04-07 08:14:51 -07:00 |
|
Christian Clauss
|
8b59615ff7
|
GitHub Action to lint Python code (#1025)
* GitHub Action to lint Python code
[Ruff](https://beta.ruff.rs/) supports [over 500 lint rules](https://beta.ruff.rs/docs/rules) including bandit, isort, pylint, pyupgrade, and flake8 plus its plugins, and is written in Rust for speed.
The `ruff` Action uses minimal steps to __run in ~5 seconds__, rapidly providing intuitive GitHub Annotations to contributors.

* ruff --target-version=py39
|
2023-04-02 19:45:13 -07:00 |
|