Skip to content

Commit

Permalink
Support Python3.12 (#151)
Browse files Browse the repository at this point in the history
* Support Python3.12

* small fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
himoto and pre-commit-ci[bot] committed Apr 25, 2024
1 parent 5ce8b38 commit 4b95ad4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.11']
python-version: ['3.8', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
Expand All @@ -45,9 +46,9 @@ dynamic = ["version"]

[project.optional-dependencies]
dev = [
"black==23.3.0",
"flake8==6.0.0",
"isort==5.12.0",
"black",
"flake8",
"isort",
"pre-commit",
"pytest",
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_breast_cancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_patient_model_simulations(
start = time.time()
assert simulations.run() is None
elapsed = time.time() - start
print(f"Computation time for simulating {len(TNBC_ID)} patients: {elapsed/60:.1f} [min]")
print(f"Computation time for simulating {len(TNBC_ID)} patients: {elapsed / 60:.1f} [min]")
if exec_model:
# Extract response characteristics and visualize patient classification
if dynamical_features is None:
Expand Down

0 comments on commit 4b95ad4

Please sign in to comment.