Skip to content

Commit 30dffc2

Browse files
authored
build: fix ruff config (#285)
Remove glob expressions from Ruff calls. These expressions are inconsistent between shells and cause unexpected behavior. Update the Ruff configuration in pyproject.toml to also exclude the integration/resources directory, which includes additional Python projects used for testing bundles.
1 parent cd723f5 commit 30dffc2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ensure-uv:
4545

4646
fmt:
4747
$(PYTHON) -m ruff check --fix
48-
$(PYTHON) -m ruff format .
48+
$(PYTHON) -m ruff format
4949

5050
install: ensure-uv
5151
$(UV) pip install dist/*.whl
@@ -55,7 +55,7 @@ it:
5555

5656
lint:
5757
$(PYTHON) -m mypy --install-types --non-interactive .
58-
$(PYTHON) -m ruff check **/*.py
58+
$(PYTHON) -m ruff check
5959

6060
test:
6161
$(PYTHON) -m coverage run --source=src -m pytest tests

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ addopts = ["--import-mode=importlib"]
3636
version_file = "src/posit/_version.py"
3737

3838
[tool.ruff]
39+
extend-exclude = ["integration/resources"]
3940
line-length = 79
4041

4142
[tool.ruff.format]

0 commit comments

Comments
 (0)