Skip to content

Commit 51c3354

Browse files
Add deprecation warning
1 parent a2e2897 commit 51c3354

File tree

1 file changed

+6
-0
lines changed
  • src/python/pants/backend/experimental/python/lint/ruff

1 file changed

+6
-0
lines changed

src/python/pants/backend/experimental/python/lint/ruff/register.py

+6
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@
66
See https://www.pantsbuild.org/docs/python-linters-and-formatters and https://docs.astral.sh/ruff/
77
"""
88

9+
from pants.base.deprecated import warn_or_error
910
from pants.backend.experimental.python.lint.ruff.check import register as ruff_check_rules
1011

1112

1213
def rules():
14+
warn_or_error(
15+
"2.22.0",
16+
"using the `pants.backend.experimental.python.lint.ruff` backend",
17+
hint="Use `pants.backend.experimental.python.lint.ruff.check` instead.",
18+
)
1319
return ruff_check_rules.rules()

0 commit comments

Comments
 (0)