Skip to content

Commit 40c0fd9

Browse files
Update vscode config
1 parent c0c34d8 commit 40c0fd9

7 files changed

Lines changed: 31 additions & 90 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
run: uv sync --all-packages --frozen
3030
- name: Ruff
3131
run: uv run ruff format --check . && uv run ruff check .
32-
- name: Pyright
33-
run: uv run pyright .
32+
- name: Ty
33+
run: uv run ty check
3434

3535
tests:
3636
name: Run tests

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-yaml
66
- id: end-of-file-fixer
77
- repo: https://github.com/tsvikas/sync-with-uv
8-
rev: v0.4.0
8+
rev: v0.5.0
99
hooks:
1010
- id: sync-with-uv
1111
- repo: https://github.com/charliermarsh/ruff-pre-commit

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"recommendations": [
3+
"astral-sh.ty",
34
"ms-python.python",
45
"ms-python.vscode-pylance",
56
"charliermarsh.ruff",

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
}
1313
},
1414
"files.insertFinalNewline": true,
15+
"python.languageServer": "None",
1516
"python.testing.unittestEnabled": false,
1617
"python.testing.pytestEnabled": true,
1718
"python.analysis.autoImportCompletions": true,

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ uv run --package tilebox-datasets pytest tilebox-datasets
4242
uv run ruff format . && uv run ruff check --fix .
4343

4444
# type checking:
45-
uv run pyright .
45+
uv run ty check
4646
```
4747

4848
### Adding dependencies to one of the packages
@@ -54,8 +54,8 @@ uv add --package tilebox-datasets "numpy>=2"
5454
### Used code quality tools
5555

5656
- [ruff](https://github.com/astral-sh/ruff) for linting and formatting
57-
- [pyright](https://github.com/microsoft/pyright) for type checking
58-
- [pre-commit](https://pre-commit.com/) for running all of the above automatically on each git commit
57+
- [ty](github.com/astral-sh/ty) for type checking
58+
- [prek](https://prek.j178.dev/) for running all of the above automatically on each git commit
5959

6060
## Protobuf usage
6161

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ dev = [
2424
"pyarrow>=17.0.0",
2525
# some dev tooling
2626
"ruff>=0.11.10",
27-
"pre-commit>=3.8.0",
2827
"types-protobuf>=6.30",
2928
"junitparser>=3.2.0",
3029
"ty>=0.0.11",
30+
"prek>=0.2.27",
3131
]
3232

3333
[project.scripts]

uv.lock

Lines changed: 21 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)