Skip to content

Commit 0b1a6e7

Browse files
Introduce pyright and treat the CI job as a warning
1 parent 3290a4e commit 0b1a6e7

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ jobs:
2121
ruff check .
2222
ruff format --check .
2323
24+
typecheck:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v6
28+
- name: Set up Python
29+
uses: actions/setup-python@v6
30+
with:
31+
python-version: "3.10"
32+
- name: Install pyright
33+
run: pip install ".[dev]"
34+
- name: Run pyright
35+
run: pyright
36+
continue-on-error: true
37+
2438
test:
2539
runs-on: ubuntu-latest
2640
strategy:

‎pyproject.toml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Issues = "https://github.com/icecube/skyllh/issues"
4242
[project.optional-dependencies]
4343
dev = [
4444
"pre-commit",
45+
"pyright",
4546
]
4647
docs = [
4748
"sphinx<9.0.0",
@@ -76,3 +77,13 @@ convention = "numpy"
7677

7778
[tool.ruff.format]
7879
quote-style = "single"
80+
81+
[tool.pyright]
82+
pythonVersion = "3.10"
83+
typeCheckingMode = "standard"
84+
85+
include = [
86+
"skyllh",
87+
"examples",
88+
"tests",
89+
]

0 commit comments

Comments
 (0)