File tree Expand file tree Collapse file tree 8 files changed +209
-74
lines changed Expand file tree Collapse file tree 8 files changed +209
-74
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -130,4 +130,3 @@ dmypy.json
130
130
131
131
# Pycharm
132
132
.idea
133
-
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -4,13 +4,26 @@ The intent of this repo is to help you get started with creating Pydra tasks.
4
4
All tasks will be inserted into pydra.tasks.<yourtaskpackagename > namespace.
5
5
6
6
# To use this template:
7
-
7
+
8
8
1 . Click on new repo.
9
9
2 . Select this template from the repository template drop down list.
10
10
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
13
14
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:
15
25
16
- # TODO: Change this README after creating your new repo.
26
+ ```
27
+ pip install -e .[dev]
28
+ pre-commit install
29
+ ```
Original file line number Diff line number Diff line change 1
-
1
+ """
2
+ >>> import pydra.tasks.TODO
3
+ """
2
4
from ._version import get_versions
3
- __version__ = get_versions ()['version' ]
5
+
6
+ __version__ = get_versions ()["version" ]
4
7
del get_versions
You can’t perform that action at this time.
0 commit comments