-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9e6363
commit 99c15a3
Showing
6 changed files
with
631 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
default: fmt check | ||
|
||
lock: | ||
pip-compile --resolver=backtracking --generate-hashes --upgrade -o requirements.txt pyproject.toml | ||
pip-compile --resolver=backtracking --generate-hashes --upgrade --extra dev -o requirements-dev.txt pyproject.toml | ||
uv lock | ||
|
||
install: | ||
pip install --no-deps -r requirements.txt | ||
pip install --no-deps -r requirements-dev.txt | ||
upgrade: | ||
uv lock --upgrade | ||
|
||
sync: | ||
uv sync --dev | ||
|
||
fmt: | ||
ruff check --fix-only ./ruff_lsp ./tests | ||
ruff format ./ruff_lsp ./tests | ||
uv run --dev -- ruff check --fix-only ./ruff_lsp ./tests | ||
uv run --dev -- ruff format ./ruff_lsp ./tests | ||
|
||
check: | ||
ruff check ./ruff_lsp ./tests | ||
ruff format --check ./ruff_lsp ./tests | ||
mypy ./ruff_lsp ./tests | ||
uv run --dev -- ruff check ./ruff_lsp ./tests | ||
uv run --dev -- ruff format --check ./ruff_lsp ./tests | ||
uv run --dev -- mypy ./ruff_lsp ./tests | ||
|
||
test: | ||
pytest | ||
uv run --dev -- pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "ruff-lsp" | ||
dynamic = ["version"] | ||
version = "0.0.53" | ||
description = "A Language Server Protocol implementation for Ruff." | ||
authors = [ | ||
{ name = "Charlie Marsh", email = "[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name = "Charlie Marsh", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.7" | ||
requires-python = ">=3.7.9" | ||
license = "MIT" | ||
keywords = ["ruff", "lsp", "language-server", "language-server-protocol", "python"] | ||
classifiers = [ | ||
|
@@ -34,6 +34,7 @@ classifiers = [ | |
"Topic :: Utilities", | ||
] | ||
urls = { repository = "https://github.com/astral-sh/ruff-lsp" } | ||
scripts = { ruff-lsp = "ruff_lsp.__main__:main" } | ||
dependencies = [ | ||
"packaging>=23.1", | ||
"pygls>=1.1.0", | ||
|
@@ -42,21 +43,15 @@ dependencies = [ | |
"typing_extensions", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
[tool.uv] | ||
dev-dependencies = [ | ||
"mypy==1.4.1", | ||
"pip-tools>=6.13.0,<7.0.0", | ||
"pytest>=7.3.1,<8.0.0", | ||
"pytest-asyncio==0.21.2", | ||
"python-lsp-jsonrpc==1.0.0", | ||
] | ||
|
||
[project.scripts] | ||
ruff-lsp = "ruff_lsp.__main__:main" | ||
|
||
[tool.hatch.version] | ||
path = "ruff_lsp/__init__.py" | ||
|
||
[tool.ruff] | ||
line-length = 88 | ||
target-version = "py37" | ||
|
Oops, something went wrong.