Skip to content

Commit 42d089d

Browse files
add TagSpecs and alter Parser (#68)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e59f601 commit 42d089d

File tree

51 files changed

+2304
-1094
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2304
-1094
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ env:
1414
CARGO_TERM_COLOR: always
1515
FORCE_COLOR: "1"
1616
PYTHONUNBUFFERED: "1"
17-
UV_VERSION: "0.4.x"
1817

1918
jobs:
2019
test:
@@ -33,7 +32,7 @@ jobs:
3332
uses: astral-sh/setup-uv@v5
3433
with:
3534
enable-cache: true
36-
version: ${{ env.UV_VERSION }}
35+
pyproject-file: pyproject.toml
3736

3837
- name: Install dependencies and build
3938
run: |

.rustfmt.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
imports_granularity = "Item"
2-
unstable_features = true

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ serde_json = "1.0"
1818
thiserror = "2.0"
1919
tokio = { version = "1.42", features = ["full"] }
2020
tower-lsp = { version = "0.20", features = ["proposed"] }
21+
lsp-types = "0.94"
2122

2223
[profile.dev.package]
2324
insta.opt-level = 3

crates/djls-project/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ impl fmt::Display for DjangoProject {
9595

9696
#[derive(Debug)]
9797
struct PythonEnvironment {
98+
#[allow(dead_code)]
9899
python_path: PathBuf,
99100
sys_path: Vec<PathBuf>,
100101
sys_prefix: PathBuf,

crates/djls-template-ast/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ version = "0.0.0"
44
edition = "2021"
55

66
[dependencies]
7+
anyhow = { workspace = true }
8+
lsp-types = { workspace = true }
79
serde = { workspace = true }
810
thiserror = { workspace = true }
11+
toml = "0.8"
912

1013
[dev-dependencies]
11-
insta = { version = "1.41", features = ["yaml"] }
14+
insta = { version = "1.42", features = ["yaml"] }
15+
tempfile = "3.19"

0 commit comments

Comments
 (0)