Skip to content

Commit 10507af

Browse files
authored
GitHub Actions: Lint Python code with ruff (#310)
* GitHub Actions: Lint Python code with ruff https://docs.astral.sh/ruff is an extremely fast Python linter and code formatter, written in Rust. With [over 800 linting rules](https://docs.astral.sh/ruff/rules), ruff can be used to replace [Flake8](https://pypi.org/project/flake8/) (plus dozens of plugins), [Black](https://github.com/psf/black), [isort](https://pypi.org/project/isort/), [pydocstyle](https://pypi.org/project/pydocstyle/), [pyupgrade](https://pypi.org/project/pyupgrade/), [autoflake](https://pypi.org/project/autoflake/), and more, all while executing tens or hundreds of times faster than any individual tool. * pipx run ruff check
1 parent bb32a72 commit 10507af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
node-version: '16'
2222
- name: npm install
2323
run: npm install
24-
- name: lint
24+
- name: lint JavaScript
2525
run: npm run lint
26+
- name: lint Python
27+
run: pipx run ruff check
2628

2729
test:
2830
name: Test Suite

0 commit comments

Comments
 (0)