-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use pydantic models for validation (#496)
Co-authored-by: Eric Blanc <[email protected]> Co-authored-by: Nicolai-vKuegelgen <[email protected]>
- Loading branch information
Showing
234 changed files
with
7,939 additions
and
4,644 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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
|
@@ -42,10 +42,9 @@ jobs: | |
uses: marocchino/[email protected] | ||
with: | ||
message: | | ||
- Please format your Python code with [black](https://black.readthedocs.io): `make black` | ||
- Please format your Python code with [ruff](https://docs.astral.sh/ruff/): `make fmt` | ||
- Please check your Python code with [ruff](https://docs.astral.sh/ruff/): `make check` | ||
- Please format your Snakemake code with [snakefmt](https://github.com/snakemake/snakefmt): `make snakefmt` | ||
- Please organize your imports [isorts](https://isort.readthedocs.io): `make isort` | ||
- Please ensure that your code passes [flake8](https://flake8.pycqa.org/en/latest/): `make flake8` | ||
You can trigger all lints locally by running `make lint` | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -58,11 +57,12 @@ jobs: | |
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements/test.txt | ||
pip install -r requirements/base.txt -r requirements/test.txt | ||
pip install -e . | ||
pip freeze | ||
- name: Build documentation | ||
|
@@ -75,7 +75,7 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: | ||
- "3.10" | ||
- "3.12" | ||
# - "3.11" # no compatible pysam yet | ||
# - "3.12" # no compatible pysam yet | ||
needs: linting | ||
|
@@ -95,7 +95,7 @@ jobs: | |
- name: Prepare environment.yml file | ||
run: > | ||
cp environment.yml /tmp/environment.yml && sed -i -e | ||
's/- python/- python=${{ matrix.python-version }}/' | ||
's/- python=.*/- python=${{ matrix.python-version }}/' | ||
/tmp/environment.yml | ||
- name: Update environment using mamba | ||
run: mamba env update --name root --file /tmp/environment.yml | ||
|
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,8 @@ | ||
repos: | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.4.8 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format |
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 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
Oops, something went wrong.