Skip to content

Commit f11fe25

Browse files
Revert "Feat/remove ignore errors in mypy settings (#78)" (#80)
This reverts commit 3c799d0.
1 parent 3c799d0 commit f11fe25

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+888
-7811
lines changed

.flake8

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/bump-version.yml

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,67 @@
11
# .github/workflows/bump-version.yml
2-
name: Tag Version on Merge to Main
3-
2+
name: Bump Version on Merge to Main
3+
44
on:
55
push:
66
branches:
77
- main
88

99
jobs:
10-
tag-version:
10+
bump-version:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14+
id-token: write
1415

1516
steps:
1617
- uses: actions/checkout@v4
1718
with:
18-
fetch-depth: 0
19+
fetch-depth: 0 # Fetch all history for all branches and tags
1920

2021
- uses: actions/setup-python@v5
2122
with:
2223
python-version: "3.11"
2324

24-
- name: Tag repository from pyproject
25-
run: python scripts/check_version_match.py --fix
25+
- run: pip install python-semantic-release
26+
27+
- name: Configure Git
28+
run: |
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
31+
32+
- name: Run Semantic Release
33+
env:
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: semantic-release version
2636

37+
- name: Push changes
38+
run: |
39+
git push --follow-tags
40+
- name: "Install Poetry"
41+
run: pip install poetry
42+
- name: "Determine version bump type"
43+
run: |
44+
git fetch --tags
45+
# This defaults to a patch type, unless a feature commit was pushed, then set type to minor
46+
LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
47+
LAST_COMMIT=$(git log -1 --format='%H')
48+
echo "Last git tag: $LAST_TAG"
49+
echo "Last git commit: $LAST_COMMIT"
50+
echo "Commits:"
51+
git log --no-merges --pretty=oneline $LAST_TAG...$LAST_COMMIT
52+
git log --no-merges --pretty=format:"%s" $LAST_TAG...$LAST_COMMIT | grep -q ^feat: && BUMP_TYPE="minor" || BUMP_TYPE="patch"
53+
echo "Version bump type: $BUMP_TYPE"
54+
echo "BUMP_TYPE=$BUMP_TYPE" >> $GITHUB_ENV
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
- name: "Version bump"
58+
run: |
59+
poetry version $BUMP_TYPE
60+
- name: "Push new version"
61+
run: |
62+
git add pyproject.toml
63+
git commit -m "Update version to $(poetry version -s)"
64+
git pull --ff-only origin main
65+
git push origin main --follow-tags
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.9"
21+
22+
- name: Install Poetry
23+
run: |
24+
curl -sSL https://install.python-poetry.org | python3 -
25+
echo "$HOME/.local/bin" >> $GITHUB_PATH
26+
27+
- name: Install dependencies
28+
run: poetry install
29+
30+
- name: Run tests
31+
run: poetry run pytest --cov=gen_surv --cov-report=xml --cov-report=term
32+
33+
34+
- name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v5
36+
with:
37+
files: coverage.xml
38+
token: ${{ secrets.CODECOV_TOKEN }} # optional if public repo

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ dist/
5050
# Temporary
5151
*.log
5252
*.tmp
53-
.hypothesis/

.pre-commit-config.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.readthedocs.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,10 @@ build:
44
os: ubuntu-22.04
55
tools:
66
python: "3.11"
7-
jobs:
8-
post_create_environment:
9-
- pip install poetry
10-
post_install:
11-
- poetry config virtualenvs.create false
12-
- poetry install --with docs
137

148
python:
159
install:
16-
- method: pip
17-
path: .
10+
- requirements: docs/requirements.txt
1811

1912
sphinx:
2013
configuration: docs/source/conf.py
21-
fail_on_warning: false
22-
23-
formats:
24-
- pdf
25-
- epub

CHANGELOG.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,5 @@
11
# CHANGELOG
22

3-
## v1.0.9 (2025-08-02)
4-
5-
### Features
6-
- export datasets to RDS files
7-
- test workflow runs on a Python version matrix
8-
- scikit-learn compatible data generator
9-
- compatibility helpers for lifelines and scikit-survival
10-
11-
### Documentation
12-
- updated usage examples and tutorials
13-
- document optional scikit-survival dependency throughout the docs
14-
15-
### Continuous Integration
16-
- auto-tag releases using the version check script
17-
18-
### Misc
19-
- README quick example uses `covariate_range`
20-
21-
## v1.0.8 (2025-07-30)
22-
23-
### Documentation
24-
- ensure absolute path resolution in `conf.py`
25-
- drop unsupported theme option
26-
- define bibliography anchors and headings
27-
- fix tutorial links to non-existing docs
28-
- add additional references to the bibliography
29-
30-
### Testing
31-
- add CLI integration test
32-
- expand piecewise generator test coverage
33-
34-
### Misc
35-
- remove fix_recommendations.md
36-
37-
383

394
## v1.0.0 (2025-06-06)
405

0 commit comments

Comments
 (0)