Skip to content

Commit c0af7fe

Browse files
authored
Merge branch 'main' into add-smokeshow-coverage
2 parents 755a808 + f3439b4 commit c0af7fe

192 files changed

Lines changed: 3857 additions & 2024 deletions

File tree

Some content is hidden

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

.all-contributorsrc

Lines changed: 97 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,11 @@
687687
"profile": "https://github.com/nicoloesch",
688688
"contributions": [
689689
"code",
690-
"bug"
690+
"bug",
691+
"design",
692+
"maintenance",
693+
"question",
694+
"review"
691695
]
692696
},
693697
{
@@ -788,14 +792,104 @@
788792
"contributions": [
789793
"doc"
790794
]
795+
},
796+
{
797+
"login": "marius-sm",
798+
"name": "marius-sm",
799+
"avatar_url": "https://avatars.githubusercontent.com/u/40166021?v=4",
800+
"profile": "https://github.com/marius-sm",
801+
"contributions": [
802+
"ideas"
803+
]
804+
},
805+
{
806+
"login": "haarisr",
807+
"name": "haarisr",
808+
"avatar_url": "https://avatars.githubusercontent.com/u/122410226?v=4",
809+
"profile": "https://github.com/haarisr",
810+
"contributions": [
811+
"code"
812+
]
813+
},
814+
{
815+
"login": "c-winder",
816+
"name": "Chris Winder",
817+
"avatar_url": "https://avatars.githubusercontent.com/u/50587864?v=4",
818+
"profile": "https://github.com/c-winder",
819+
"contributions": [
820+
"bug"
821+
]
822+
},
823+
{
824+
"login": "rickymwalsh",
825+
"name": "Ricky Walsh",
826+
"avatar_url": "https://avatars.githubusercontent.com/u/70853488?v=4",
827+
"profile": "https://www.linkedin.com/in/ricky-walsh/",
828+
"contributions": [
829+
"code"
830+
]
831+
},
832+
{
833+
"login": "sravan953",
834+
"name": "Keerthi Sravan Ravi",
835+
"avatar_url": "https://avatars.githubusercontent.com/u/6049061?v=4",
836+
"profile": "https://github.com/sravan953",
837+
"contributions": [
838+
"bug"
839+
]
840+
},
841+
{
842+
"login": "RJacobArthrex",
843+
"name": "Rahul Kurian Jacob",
844+
"avatar_url": "https://avatars.githubusercontent.com/u/144900466?v=4",
845+
"profile": "https://github.com/RJacobArthrex",
846+
"contributions": [
847+
"doc"
848+
]
849+
},
850+
{
851+
"login": "erooke",
852+
"name": "Ethan Rooke",
853+
"avatar_url": "https://avatars.githubusercontent.com/u/46689793?v=4",
854+
"profile": "https://ethan.roo.ke",
855+
"contributions": [
856+
"doc"
857+
]
858+
},
859+
{
860+
"login": "mrdkucher",
861+
"name": "David Kucher",
862+
"avatar_url": "https://avatars.githubusercontent.com/u/13631603?v=4",
863+
"profile": "https://github.com/mrdkucher",
864+
"contributions": [
865+
"code"
866+
]
867+
},
868+
{
869+
"login": "StijnvWijn",
870+
"name": "StijnvWijn",
871+
"avatar_url": "https://avatars.githubusercontent.com/u/78531113?v=4",
872+
"profile": "https://github.com/StijnvWijn",
873+
"contributions": [
874+
"code"
875+
]
876+
},
877+
{
878+
"login": "toufiqmusah",
879+
"name": "Toufiq",
880+
"avatar_url": "https://avatars.githubusercontent.com/u/92761339?v=4",
881+
"profile": "http://toufiqmusah.github.io/toufiqmusah/",
882+
"contributions": [
883+
"code"
884+
]
791885
}
792886
],
793887
"contributorsPerLine": 7,
794888
"projectName": "torchio",
795-
"projectOwner": "fepegar",
889+
"projectOwner": "TorchIO-project",
796890
"repoType": "github",
797891
"repoHost": "https://github.com",
798892
"skipCi": true,
799-
"commitConvention": "angular",
893+
"commitConvention": "atom",
800894
"commitType": "docs"
801895
}

.bumpversion.cfg

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

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ body:
6161
Please run this command in your console and paste the output below
6262
6363
```shell
64-
python <(curl -s https://raw.githubusercontent.com/fepegar/torchio/main/print_system.py)
64+
python <(curl -s https://raw.githubusercontent.com/TorchIO-project/torchio/main/print_system.py)
6565
```
6666
placeholder: Your system info
6767
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: ❓ Discussions tab
4-
url: https://github.com/fepegar/torchio/discussions/new
4+
url: https://github.com/TorchIO-project/torchio/discussions/new
55
about: Ask and answer TorchIO-related questions or start a general discussion
6-
- name: 💬 Slack
7-
url: https://join.slack.com/t/torchioworkspace/shared_invite/zt-exgpd5rm-BTpxg2MazwiiMDw7X9xMFg
8-
about: Chat with our community in real time (if they are connected!)

.github/ISSUE_TEMPLATE/not_working.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ body:
7070
Please run this command in your console and paste the output below
7171
7272
```shell
73-
python <(curl -s https://raw.githubusercontent.com/fepegar/torchio/main/print_system.py)
73+
python <(curl -s https://raw.githubusercontent.com/TorchIO-project/torchio/main/print_system.py)
7474
```
7575
placeholder: Your system info
7676
render: shell

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
version: 2
77
updates:
88
- package-ecosystem: "github-actions"
9-
directory: "/" # Location of package manifests
9+
directory: "/"
1010
schedule:
11-
interval: "weekly"
11+
interval: "monthly"
12+
- package-ecosystem: "pip"
13+
directory: "/"
14+
schedule:
15+
interval: "monthly"

.github/pull_request_template.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ Fixes #{issue_number}.
1313
<!-- You do not need to complete all the items by the time you submit the pull
1414
request, but most likely the changes will only be merged if all the tasks are
1515
done. See more information about the submission process in the
16-
CONTRIBUTING (https://github.com/fepegar/torchio/blob/main/CONTRIBUTING.rst) docs. -->
16+
CONTRIBUTING (https://github.com/TorchIO-project/torchio/blob/main/CONTRIBUTING.rst) docs. -->
1717

1818
<!-- Write an `x` in all the boxes that apply -->
19-
- [ ] I have read the [`CONTRIBUTING`](https://github.com/fepegar/torchio/blob/main/CONTRIBUTING.rst) docs and have a developer setup (especially important are `pre-commit`and `pytest`)
20-
- [ ] Non-breaking change (would not break existing functionality)
21-
- [ ] Breaking change (would cause existing functionality to change)
19+
- [ ] I have read the [`CONTRIBUTING`](https://github.com/TorchIO-project/torchio/blob/main/CONTRIBUTING.rst) docs and have a developer setup ready
20+
- Changes are
21+
- [ ] Non-breaking (would not break existing functionality)
22+
- [ ] Breaking (would cause existing functionality to change)
2223
- [ ] Tests added or modified to cover the changes
23-
- [ ] Integration tests passed locally by running `pytest`
2424
- [ ] In-line docstrings updated
25-
- [ ] Documentation updated, tested running `make html` inside the `docs/` folder
25+
- [ ] Documentation updated
2626
- [ ] This pull request is ready to be reviewed

.github/workflows/check_pull_request_title.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Check PR title'
1+
name: "Check PR title"
22
on:
33
pull_request:
44
types: [edited, opened, synchronize, reopened]
@@ -11,14 +11,25 @@ jobs:
1111
# Echo the user's login
1212
- name: Echo user login
1313
run: echo ${{ github.event.pull_request.user.login }}
14+
1415
- uses: naveenk1223/action-pr-title@master
1516
with:
16-
# Valid titles: "Do something"
17+
# ^ Start of string
18+
# [A-Z] First character must be an uppercase ASCII letter
19+
# [a-zA-Z]* Followed by zero or more ASCII letters
20+
# (?<![^s]s) Negative lookbehind: disallow a single 's' at the end of the first word
21+
# ( .+)+ At least one space and one or more characters (requires more words)
22+
# [^.] Final character must not be a period
23+
# $ End of string
24+
regex: "^[A-Z][a-zA-Z]*(?<![^s]s)( .+)+[^.]$"
25+
# Valid titles:
26+
# - "Do something"
27+
# - "Address something"
1728
# Invalid title:
1829
# - "do something"
1930
# - "Do something."
2031
# - "Does something"
2132
# - "Do"
22-
regex: '^[A-Z][a-zA-Z]*(?<!s)( .+)+[^.]$' # Thanks, ChatGPT
33+
# - "Addresses something"
2334
min_length: 10
2435
max_length: 72

.github/workflows/code_quality.yml

Lines changed: 19 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -2,94 +2,36 @@ name: Code quality
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
pull_request:
7-
branches: [main]
8+
workflow_dispatch:
89
schedule:
910
- cron: "0 4 * * *"
1011

11-
jobs:
12-
13-
mypy:
14-
name: Type checks
15-
runs-on: ubuntu-latest
16-
17-
steps:
18-
- name: Set up Python
19-
uses: actions/setup-python@v5
20-
with:
21-
python-version: "3.11"
22-
23-
- name: Checkout repository
24-
uses: actions/checkout@v4
25-
with:
26-
fetch-depth: 0
27-
28-
- name: Install tox
29-
run: pip install tox
30-
31-
- name: Run mypy
32-
run: tox -e mypy
33-
34-
flake8:
35-
name: Code style
36-
runs-on: ubuntu-latest
37-
38-
steps:
39-
- name: Set up Python
40-
uses: actions/setup-python@v5
41-
with:
42-
python-version: "3.11"
43-
44-
- name: Checkout repository
45-
uses: actions/checkout@v4
46-
with:
47-
fetch-depth: 0
48-
49-
- name: Install pre-commit
50-
run: pip install pre-commit
51-
52-
- name: Run flake8 hooks
53-
run: pre-commit run --all-files flake8
54-
55-
black:
56-
name: Code formatting
57-
runs-on: ubuntu-latest
58-
59-
steps:
60-
- name: Set up Python
61-
uses: actions/setup-python@v5
62-
with:
63-
python-version: "3.11"
12+
env:
13+
FORCE_COLOR: 1
6414

65-
- name: Checkout repository
66-
uses: actions/checkout@v4
67-
with:
68-
fetch-depth: 0
69-
70-
- name: Install black
71-
run: pip install black
72-
73-
- name: Run black
74-
run: black --check --diff .
75-
76-
docs:
77-
name: Documentation
15+
jobs:
16+
check:
17+
name: tox env ${{ matrix.tox_env }}
7818
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
tox_env:
23+
- format
24+
- lint
25+
- types
7926

8027
steps:
81-
- name: Set up Python
82-
uses: actions/setup-python@v5
83-
with:
84-
python-version: "3.11"
85-
8628
- name: Checkout repository
8729
uses: actions/checkout@v4
8830
with:
8931
fetch-depth: 0
9032

91-
- name: Install pre-commit
92-
run: pip install pre-commit
33+
- name: Install the latest version of uv
34+
uses: astral-sh/setup-uv@v6
9335

94-
- name: Run doc8 hook
95-
run: pre-commit run --all-files doc8
36+
- name: Run check for tox env "${{ matrix.tox_env }}"
37+
run: uvx --with tox-uv -- tox -e ${{ matrix.tox_env }}

0 commit comments

Comments
 (0)