Skip to content

Commit 11ff9e7

Browse files
authored
fix(ci): Use non-deprecated way of invoking ruff in make tidy (#3825)
I noticed that `make tidy` wasn't working in my development environment. This happens if you, a developer, forget to follow the specific instructions in `README.md` and install exactly the right versions of the necessary tools, including a *quite old* version of Ruff. This version will nonetheless warn you: warning: `ruff <path>` is deprecated. Use `ruff check <path>` instead. So this fixes that, in order to future-proof and avoid confusion!
1 parent 55debaf commit 11ff9e7

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.16.18-dev1
2+
3+
### Enhancements
4+
5+
### Features
6+
7+
### Fixes
8+
**Correct deprecated `ruff` invocation in `make tidy`**. This will future-proof it or avoid surprises if someone happens to upgrade Ruff.
9+
110
## 0.16.17
211

312
### Enhancements

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ tidy-shell:
254254

255255
.PHONY: tidy-python
256256
tidy-python:
257-
ruff . --fix-only || true
257+
ruff check . --fix-only || true
258258
autoflake --in-place .
259259
black --line-length=100 .
260260

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
[tool.black]
22
line-length = 100
3+
exclude = '''
4+
/(
5+
\.venv # Ignore virtual environment directory
6+
| \.git
7+
| \.hg
8+
| \.mypy_cache
9+
| \.tox
10+
| \.nox
11+
| \.env
12+
| \.pytest_cache
13+
| \.venv
14+
| _build
15+
| buck-out
16+
| build
17+
| dist
18+
| unstructured/nlp/patterns\.py
19+
)/
20+
'''
321

422
[tool.pyright]
523
pythonPlatform = "Linux"

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.16.17" # pragma: no cover
1+
__version__ = "0.16.18-dev1" # pragma: no cover

0 commit comments

Comments
 (0)