Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
09becdc
chore(pre-commit): remove pyright from pre-commit
sahiljhawar Feb 11, 2026
0e659c6
chore(CI): add pyright to CI
sahiljhawar Feb 11, 2026
a2f9e33
chore(CI): add pyright as a standalone workflow and corresponding bad…
sahiljhawar Feb 11, 2026
9e93436
chore(CI): run CI on main
sahiljhawar Feb 11, 2026
1e5780c
chore: try ty for typecheckin
sahiljhawar Feb 11, 2026
cc0d3ea
style(type-checking): add type ignore for invalid assignment in data_dir
sahiljhawar Feb 12, 2026
13acd85
chore(ty): add ty ignore comment
sahiljhawar Feb 12, 2026
6d9f0b4
fix: do not fail on when day difference is larger than 30 days
sahiljhawar Feb 12, 2026
d4c1773
chore: add ty options
sahiljhawar Feb 12, 2026
1256679
Merge branch 'main' into pyright-ci
sahiljhawar Feb 12, 2026
71d7b9b
Merge branch 'main' into pyright-ci
sahiljhawar Feb 12, 2026
447f8fb
chore(hp): add ty ignore comments
sahiljhawar Feb 12, 2026
3124667
chore(kp): add ty ignore comments
sahiljhawar Feb 12, 2026
2334eff
chore(omni): fix type in high res
sahiljhawar Feb 12, 2026
c918789
chore(sw): add ty ignore comments
sahiljhawar Feb 12, 2026
ea5509f
chore: add ty ignore comments
sahiljhawar Feb 12, 2026
df9ccef
chore: add ty as pre-commit
sahiljhawar Feb 12, 2026
f411272
ci: remove pyright ci
sahiljhawar Feb 12, 2026
96b21e3
docs: add ty in contrib
sahiljhawar Feb 12, 2026
65ccd84
Update swvo/io/solar_wind/ace.py
sahiljhawar Feb 12, 2026
189db9a
Update swvo/io/solar_wind/read_solar_wind_from_multiple_models.py
sahiljhawar Feb 12, 2026
43ce4b6
Update swvo/io/kp/read_kp_from_multiple_models.py
sahiljhawar Feb 12, 2026
cb867a6
Update swvo/io/solar_wind/read_solar_wind_from_multiple_models.py
sahiljhawar Feb 12, 2026
7127e14
Update swvo/io/hp/read_hp_from_multiple_models.py
sahiljhawar Feb 12, 2026
762e261
Update swvo/io/hp/read_hp_from_multiple_models.py
sahiljhawar Feb 12, 2026
ec9fe2b
Update swvo/io/hp/gfz.py
sahiljhawar Feb 12, 2026
05e1e99
chore: remove pyright badge and add 'swvo' in ty check
sahiljhawar Feb 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/pyright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pyright

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
pyright-verifytypes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
Comment thread
sahiljhawar marked this conversation as resolved.
Outdated
with:
python-version: 3.11

- name: Install package and pyright
run: |
python -m pip install --upgrade pip
pip install .
pip install pyright

- name: Run pyright verifytypes
run: |
pyright --verifytypes swvo --ignoreexternal
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
Comment thread
sahiljhawar marked this conversation as resolved.
- uses: astral-sh/ruff-action@v3
with:
version: "latest"

tests:
needs: ruff
strategy:
Expand All @@ -26,10 +27,10 @@ jobs:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
Comment thread
sahiljhawar marked this conversation as resolved.
Comment thread
sahiljhawar marked this conversation as resolved.
python-version: ${{ matrix.python-version }}

Expand Down
9 changes: 0 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@ repos:
args: [--fix]
# Run the formatter.
- id: ruff-format

# - repo: local
# hooks:
# - id: pyright-verifytypes
# name: pyright verifytypes
# entry: bash -c 'pip install . >/dev/null && pyright --verifytypes swvo --ignoreexternal'
# language: system
# types: [python]
# pass_filenames: false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![PyPI version](https://badge.fury.io/py/swvo.svg)](https://badge.fury.io/py/swvo)
[![Build Sphinx HTML](https://app.readthedocs.org/projects/swvo/badge/?version=latest)](https://swvo.readthedocs.io/en/latest/)
[![SWVO Tests](https://github.com/GFZ/SWVO/actions/workflows/tests.yml/badge.svg)](https://github.com/GFZ/SWVO/actions/workflows/tests.yml)
[![Pyright](https://github.com/GFZ/SWVO/actions/workflows/pyright.yml/badge.svg)](https://github.com/GFZ/SWVO/actions/workflows/pyright.yml)
Comment thread
sahiljhawar marked this conversation as resolved.
Outdated
[![Python version](https://img.shields.io/pypi/pyversions/swvo.svg)](https://badge.fury.io/py/swvo)
[![Coverage Status](https://coveralls.io/repos/github/GFZ/SWVO/badge.svg?branch=main)](https://coveralls.io/github/GFZ/SWVO?branch=main)

Expand Down
Loading