Skip to content

Commit 0d40d30

Browse files
authored
Merge pull request #6 from nipype/enh-update
update a few things
2 parents c9ad3dd + 3011775 commit 0d40d30

File tree

8 files changed

+209
-74
lines changed

8 files changed

+209
-74
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: [3.7, 3.8]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install ".[dev]"
30+
- name: Test with pytest
31+
run: |
32+
pytest -sv --doctest-modules pydra/tasks/TODO

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,3 @@ dmypy.json
130130

131131
# Pycharm
132132
.idea
133-

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/psf/black
12+
rev: 19.3b0
13+
hooks:
14+
- id: black

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,26 @@ The intent of this repo is to help you get started with creating Pydra tasks.
44
All tasks will be inserted into pydra.tasks.<yourtaskpackagename> namespace.
55

66
# To use this template:
7-
7+
88
1. Click on new repo.
99
2. Select this template from the repository template drop down list.
1010
3. Give your repo a name.
11-
4. Once the repo is created search for TODO and replace with appropriate name.
12-
4b. One of the folders is called TODO. This should be renamed to your package
11+
4. Once the repo is created and cloned, search for TODO (`grep -rn TODO . `) and
12+
replace with appropriate name.
13+
5. One of the folders is called TODO. This should also be renamed to your package
1314
name.
14-
5. Add tasks to the pydra/tasks/<yourpackagename> folder
15+
6. Add tasks to the pydra/tasks/<yourpackagename> folder.
16+
7. You may want to initialize a sphinx docs directory.
17+
18+
# TODO: Change this README after creating your new repo.
19+
20+
21+
## For developers
22+
23+
Install repo in developer mode from the source directory. It is also useful to
24+
install pre-commit to take care of styling via black:
1525

16-
# TODO: Change this README after creating your new repo.
26+
```
27+
pip install -e .[dev]
28+
pre-commit install
29+
```

pydra/tasks/TODO/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
1+
"""
2+
>>> import pydra.tasks.TODO
3+
"""
24
from ._version import get_versions
3-
__version__ = get_versions()['version']
5+
6+
__version__ = get_versions()["version"]
47
del get_versions

0 commit comments

Comments
 (0)