-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix the probme when alpha is too low the result is incorrect. * ignore slice type limit (int) * Fix ruff syntax * add pyright config and type ignore * Fix type in rcimodel and remove responsibility of scale from Indexsnapshot * Remove floating point error in intensity. * Fix tox (mypy) * IndexedSnapshop accept nan value inside with corrsponding tests. * Tests for input data with NAN values. * Quick_start and some features in blrprx model. * Delete useless file. * Fix some typing and linting for mypy and ruff. * Fix tox and use poetry correctly. Minor text change in quick_start.py. * Testing Github workflow doc generation. * Fixing python 3.10 treated as 3.1. Now using 3.11. * Publish the 1.0.0 pyblrp. Change theme of doc. * Fix doc theme package name. * Fix the READMD url and image trasparency. * Fix s some requirements.txt files and tox.ini settings for mypy and ruff using poetry export command. * Remove hash from requirements.txt requirements-dev.txt and docs/requirements-doc.txt * Only run mypy and ruff on ubuntu-latest. * Fix github action envs. * Fix github action envs. * Fix github action.: * Fix github action. * Remove doc building from tox.ini. * Remove all requirements.txt files and rename doce building github action. * Fix Doc building with github action. * Fix tox.ini for python3.12. * Fix github action python version. Remove blue underscore of badges in README.md. * Adding Documentation link to README.md. * Fine tuning on github action for performance. * Rename the github action name. * Rename the github action name. * Rename the github action name.
- Loading branch information
Showing
11 changed files
with
507 additions
and
521 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev1 | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install poetry | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
- name: Install dependencies | ||
run: | | ||
poetry install --only doc | ||
- name: Build docs | ||
run: | | ||
poetry run sphinx-build -M html docs/source docs/build | ||
- name: Deploy to GitHub Pages | ||
if: github.ref == 'refs/heads/dev1' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/build/html | ||
|
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Lint | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
linting-with-mypy-and-ruff: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10'] # Adjust as necessary based on your setup | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
- name: Install dependencies with Poetry | ||
run: poetry install | ||
- name: Run mypy | ||
run: poetry run tox -e mypy | ||
- name: Run ruff | ||
run: poetry run tox -e ruff |
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.