Skip to content

Commit 8576744

Browse files
Bastian-KrauseEmantor
authored andcommitted
pyproject.toml: maintain ruff include centrally
The default value of the "include" setting is ["*.py", "*.pyi", "*.ipynb", "**/pyproject.toml"] [1]. We're only interested in pyproject.toml and *.py files, so add pyproject.toml and the pre-formatted labgrid.remote module (previously specified in the CI configuration only). [1] https://docs.astral.sh/ruff/settings/#include Signed-off-by: Bastian Krause <[email protected]>
1 parent 0025a9a commit 8576744

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/reusable-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
pylint labgrid
5656
- name: Format with ruff
5757
run: |
58-
ruff format --check --diff labgrid/remote/
58+
ruff format --check --diff
5959
- name: Test with pytest
6060
run: |
6161
pytest -r a --cov-config .coveragerc --cov=labgrid --local-sshmanager --ssh-username runner -k "not test_docker_with_daemon"

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ extend-exclude = [
213213
"envs",
214214
"labgrid/remote/generated",
215215
]
216+
include = [
217+
"**/pyproject.toml",
218+
"labgrid/remote/**/*.py",
219+
]
216220

217221
[tool.ruff.lint]
218222
select = ["B", "E", "F", "I", "SIM", "UP"]

0 commit comments

Comments
 (0)