Skip to content

Commit eba5a34

Browse files
authored
Merge branch 'physiopy:master' into enh/report-bokeh
2 parents 924ea5f + 4261d19 commit eba5a34

File tree

12 files changed

+62
-16
lines changed

12 files changed

+62
-16
lines changed

.all-contributorsrc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"data",
244244
"doc",
245245
"userTesting",
246-
"review"
246+
"review",
247+
"infra"
247248
]
248249
},
249250
{
@@ -310,6 +311,16 @@
310311
"contributions": [
311312
"doc"
312313
]
314+
},
315+
{
316+
"login": "me-pic",
317+
"name": "Marie-Eve Picard",
318+
"avatar_url": "https://avatars.githubusercontent.com/u/77584086?v=4",
319+
"profile": "https://github.com/me-pic",
320+
"contributions": [
321+
"review"
322+
]
313323
}
314-
]
324+
],
325+
"commitType": "docs"
315326
}

.github/config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Configuration for welcome - https://github.com/behaviorbot/welcome
2+
3+
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
4+
5+
# Comment to be posted to on first time issues
6+
newIssueWelcomeComment: >
7+
![Thank You Banner](https://raw.githubusercontent.com/physiopy/physiopy-test-workflows/master/welcome_banner.png)
8+
9+
🎉 Thank you for opening your first issue in this Physiopy repo! Please check our [contributor guide](https://physiopy.github.io/contributors-guide/) and follow the issue template.
10+
11+
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
12+
13+
# Comment to be posted to on PRs from first time contributors in your repository
14+
newPRWelcomeComment: >
15+
![Thank You Banner](https://raw.githubusercontent.com/physiopy/physiopy-test-workflows/master/welcome_banner.png)
16+
17+
🎉 Thanks for opening your first pull request in this Physiopy repo! Please check our [contributor guide](https://physiopy.github.io/contributors-guide/) and follow the PR template.
18+
19+
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
20+
21+
# Comment to be posted to on pull requests merged by a first time user
22+
firstPRMergeComment: >
23+
![Thank You Banner](https://raw.githubusercontent.com/physiopy/physiopy-test-workflows/master/welcome_banner.png)
24+
25+
🎉 Congrats on merging your first pull request in this repo! We appreciate your contribution to the Physiopy community!
26+
:eyes: Please check that your contribution is correctly reported in the README of this repo and on [Physiopy's website](https://physiopy.github.io/community/team/)!

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -11,15 +11,15 @@ repos:
1111
- id: check-case-conflict
1212
- id: check-merge-conflict
1313
- repo: https://github.com/psf/black
14-
rev: 23.11.0
14+
rev: 25.1.0
1515
hooks:
1616
- id: black
1717
- repo: https://github.com/pycqa/isort
18-
rev: 5.13.0
18+
rev: 6.0.1
1919
hooks:
2020
- id: isort
2121
- repo: https://github.com/pycqa/flake8
22-
rev: 6.1.0
22+
rev: 7.2.0
2323
hooks:
2424
- id: flake8
2525
- repo: https://github.com/pycqa/pydocstyle
@@ -33,6 +33,6 @@ repos:
3333
- id: rst-directive-colons
3434
- id: rst-inline-touching-normal
3535
- repo: https://github.com/codespell-project/codespell
36-
rev: v2.2.6
36+
rev: v2.4.1
3737
hooks:
3838
- id: codespell

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ phys2bids
2424
[![Supports python version](https://img.shields.io/pypi/pyversions/phys2bids)](https://pypi.org/project/phys2bids/)
2525

2626
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
27-
[![All Contributors](https://img.shields.io/badge/all_contributors-26-orange.svg?style=flat)](#contributors)
27+
[![All Contributors](https://img.shields.io/badge/all_contributors-27-orange.svg?style=flat)](#contributors)
2828
<!-- ALL-CONTRIBUTORS-BADGE:END -->
2929

3030
``phys2bids`` is a python3 library meant to format physiological files in BIDS.
@@ -65,15 +65,14 @@ We apologise for any discomfort.
6565
Hacktoberfest participants, welcome!
6666
We have some issues for you [here](https://github.com/physiopy/phys2bids/issues?q=is%3Aissue+is%3Aopen+label%3Ahacktoberfest)!
6767
However, feel free to tackle any issue you'd like. Depending on the issue and extent of contribution, Hacktoberfest related PRs might not count toward being listed as contributors and authors (unless there is the specific interest). You can ask about it in the issue itself!
68-
Feel free to ask help to the contributors through issues or contactign directly Stefano, happy coding and (hopefully) enjoy your tee (or tree)!
68+
Feel free to ask help to the contributors through issues or contactign directly Stefano, happy coding and (hopefully) enjoy your tee (or tree)!-->
6969

70+
## Contributors ✨
7071

7172
**We're always looking for code contributors,** but any suggestion/bug report is welcome! Feel free to open issues!
7273

7374
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
7475

75-
## Contributors ✨
76-
7776
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
7877
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
7978
<!-- prettier-ignore-start -->
@@ -108,7 +107,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
108107
<td align="center" valign="top" width="25%"><a href="https://github.com/bpinsard"><img src="https://avatars.githubusercontent.com/u/1155388?v=4?s=100" width="100px;" alt="Basile"/><br /><sub><b>Basile</b></sub></a><br /><a href="https://github.com/physiopy/phys2bids/commits?author=bpinsard" title="Code">💻</a> <a href="https://github.com/physiopy/phys2bids/commits?author=bpinsard" title="Tests">⚠️</a></td>
109108
<td align="center" valign="top" width="25%"><a href="https://github.com/drombas"><img src="https://avatars.githubusercontent.com/u/50577357?v=4?s=100" width="100px;" alt="David Romero-Bascones"/><br /><sub><b>David Romero-Bascones</b></sub></a><br /><a href="https://github.com/physiopy/phys2bids/issues?q=author%3Adrombas" title="Bug reports">🐛</a> <a href="https://github.com/physiopy/phys2bids/commits?author=drombas" title="Code">💻</a> <a href="https://github.com/physiopy/phys2bids/commits?author=drombas" title="Documentation">📖</a> <a href="#content-drombas" title="Content">🖋</a></td>
110109
<td align="center" valign="top" width="25%"><a href="https://github.com/tsalo"><img src="https://avatars3.githubusercontent.com/u/8228902?v=4?s=100" width="100px;" alt="Taylor Salo"/><br /><sub><b>Taylor Salo</b></sub></a><br /><a href="#ideas-tsalo" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/physiopy/phys2bids/commits?author=tsalo" title="Code">💻</a> <a href="https://github.com/physiopy/phys2bids/pulls?q=is%3Apr+reviewed-by%3Atsalo" title="Reviewed Pull Requests">👀</a> <a href="#infra-tsalo" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
111-
<td align="center" valign="top" width="25%"><a href="https://github.com/RayStick"><img src="https://avatars3.githubusercontent.com/u/50215726?v=4?s=100" width="100px;" alt="Rachael Stickland"/><br /><sub><b>Rachael Stickland</b></sub></a><br /><a href="https://github.com/physiopy/phys2bids/issues?q=author%3ARayStick" title="Bug reports">🐛</a> <a href="https://github.com/physiopy/phys2bids/commits?author=RayStick" title="Code">💻</a> <a href="#data-RayStick" title="Data">🔣</a> <a href="https://github.com/physiopy/phys2bids/commits?author=RayStick" title="Documentation">📖</a> <a href="#userTesting-RayStick" title="User Testing">📓</a> <a href="https://github.com/physiopy/phys2bids/pulls?q=is%3Apr+reviewed-by%3ARayStick" title="Reviewed Pull Requests">👀</a></td>
110+
<td align="center" valign="top" width="25%"><a href="https://github.com/RayStick"><img src="https://avatars3.githubusercontent.com/u/50215726?v=4?s=100" width="100px;" alt="Rachael Stickland"/><br /><sub><b>Rachael Stickland</b></sub></a><br /><a href="https://github.com/physiopy/phys2bids/issues?q=author%3ARayStick" title="Bug reports">🐛</a> <a href="https://github.com/physiopy/phys2bids/commits?author=RayStick" title="Code">💻</a> <a href="#data-RayStick" title="Data">🔣</a> <a href="https://github.com/physiopy/phys2bids/commits?author=RayStick" title="Documentation">📖</a> <a href="#userTesting-RayStick" title="User Testing">📓</a> <a href="https://github.com/physiopy/phys2bids/pulls?q=is%3Apr+reviewed-by%3ARayStick" title="Reviewed Pull Requests">👀</a> <a href="#infra-RayStick" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
112111
</tr>
113112
<tr>
114113
<td align="center" valign="top" width="25%"><a href="https://github.com/eurunuela"><img src="https://avatars0.githubusercontent.com/u/13706448?v=4?s=100" width="100px;" alt="Eneko Uruñuela"/><br /><sub><b>Eneko Uruñuela</b></sub></a><br /><a href="https://github.com/physiopy/phys2bids/issues?q=author%3Aeurunuela" title="Bug reports">🐛</a> <a href="https://github.com/physiopy/phys2bids/commits?author=eurunuela" title="Code">💻</a> <a href="#infra-eurunuela" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/physiopy/phys2bids/pulls?q=is%3Apr+reviewed-by%3Aeurunuela" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/physiopy/phys2bids/commits?author=eurunuela" title="Tests">⚠️</a> <a href="#mentoring-eurunuela" title="Mentoring">🧑‍🏫</a></td>
@@ -119,6 +118,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
119118
<tr>
120119
<td align="center" valign="top" width="25%"><a href="https://github.com/marcelzwiers"><img src="https://avatars.githubusercontent.com/u/15156015?v=4?s=100" width="100px;" alt="Marcel Zwiers"/><br /><sub><b>Marcel Zwiers</b></sub></a><br /><a href="#plugin-marcelzwiers" title="Plugin/utility libraries">🔌</a></td>
121120
<td align="center" valign="top" width="25%"><a href="https://github.com/victox5"><img src="https://avatars1.githubusercontent.com/u/56017659?v=4?s=100" width="100px;" alt="victox5"/><br /><sub><b>victox5</b></sub></a><br /><a href="https://github.com/physiopy/phys2bids/commits?author=victox5" title="Documentation">📖</a></td>
121+
<td align="center" valign="top" width="25%"><a href="https://github.com/me-pic"><img src="https://avatars.githubusercontent.com/u/77584086?v=4?s=100" width="100px;" alt="Marie-Eve Picard"/><br /><sub><b>Marie-Eve Picard</b></sub></a><br /><a href="https://github.com/physiopy/phys2bids/pulls?q=is%3Apr+reviewed-by%3Ame-pic" title="Reviewed Pull Requests">👀</a></td>
122122
</tr>
123123
</tbody>
124124
</table>

docs/conduct.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We as members, contributors, and leaders pledge to make participation in
1616
our community a harassment-free experience for everyone, regardless of
1717
age, body size, visible or invisible disability, ethnicity, sex
1818
characteristics, gender identity and expression, level of experience,
19-
education, socio-economic status, nationality, personal appearance,
19+
education, socioeconomic status, nationality, personal appearance,
2020
race, religion, or sexual identity and orientation.
2121

2222
We pledge to act and interact in ways that contribute to an open,

phys2bids/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Main init for phys2bids package."""
2+
23
from ._version import get_versions
34

45
__version__ = get_versions()["version"]

phys2bids/bids.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""BIDS functions for phys2bids package."""
2+
23
import logging
34
import os
45
from csv import reader

phys2bids/tests/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import os
22
import ssl
3-
from urllib.request import urlretrieve
43

54
import pytest
5+
import requests
66

77

88
def pytest_addoption(parser):
@@ -50,7 +50,11 @@ def fetch_file(osf_id, path, filename):
5050
url = "https://osf.io/{}/download".format(osf_id)
5151
full_path = os.path.join(path, filename)
5252
if not os.path.isfile(full_path):
53-
urlretrieve(url, full_path)
53+
req = requests.get(url, allow_redirects=True)
54+
req.raise_for_status()
55+
with open(full_path, "wb") as f:
56+
f.write(req.content)
57+
f.close()
5458
return full_path
5559

5660

phys2bids/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Runs unit tests on utils.py
2+
Runs unit tests on utils.py
33
"""
44

55
import json

phys2bids/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utilities for phys2bids package."""
2+
23
import json
34
import logging
45
import os

0 commit comments

Comments
 (0)