Skip to content

Commit 49a58b5

Browse files
authored
Align with pytask v0.2. (#37)
1 parent 24efe22 commit 49a58b5

26 files changed

+326
-415
lines changed

.conda/meta.yaml

-50
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
---
1+
______________________________________________________________________
22

3-
name: Bug Report
4-
about: Create a bug report to help us improve pytask-parallel
5-
title: "BUG:"
6-
labels: "bug"
3+
name: Bug Report about: Create a bug report to help us improve pytask-parallel title:
4+
"BUG:" labels: "bug"
75

8-
---
6+
______________________________________________________________________
97

108
- [ ] I have checked that this issue has not already been reported.
119

@@ -14,11 +12,11 @@ labels: "bug"
1412
- [ ] (optional) I have confirmed this bug exists on the `main` branch of
1513
pytask-parallel.
1614

17-
---
15+
______________________________________________________________________
1816

19-
**Note**: Please read [this
20-
guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing
21-
how to provide the necessary information for us to reproduce your bug.
17+
**Note**: Please read
18+
[this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
19+
detailing how to provide the necessary information for us to reproduce your bug.
2220

2321
#### Code Sample, a copy-pastable example
2422

.github/ISSUE_TEMPLATE/documentation.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
---
1+
______________________________________________________________________
22

3-
name: Documentation Improvement
4-
about: Report wrong or missing documentation
5-
title: "DOC:"
6-
labels: "documentation"
3+
name: Documentation Improvement about: Report wrong or missing documentation title:
4+
"DOC:" labels: "documentation"
75

8-
---
6+
______________________________________________________________________
97

108
#### Location of the documentation
119

.github/ISSUE_TEMPLATE/enhancement.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
---
1+
______________________________________________________________________
22

3-
name: Enhancement
4-
about: Suggest an idea for pytask-parallel
5-
title: "ENH:"
6-
labels: "enhancement"
3+
name: Enhancement about: Suggest an idea for pytask-parallel title: "ENH:" labels:
4+
"enhancement"
75

8-
---
6+
______________________________________________________________________
97

108
#### Is your feature request related to a problem?
119

1210
Provide a description of what the problem is, e.g. "I wish I could use pytask-parallel
13-
to do [...]".
11+
to do \[...\]".
1412

1513
#### Describe the solution you'd like
1614

.github/ISSUE_TEMPLATE/question.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
---
1+
______________________________________________________________________
22

3-
name: Submit Question
4-
about: Ask a general question about pytask-parallel
5-
title: "QST:"
3+
name: Submit Question about: Ask a general question about pytask-parallel title: "QST:"
64
labels: "question"
75

8-
---
6+
______________________________________________________________________
97

108
#### Question about pytask-parallel
119

12-
**Note**: If you'd still like to submit a question, please read [this guide](
13-
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to
14-
provide the necessary information for us to reproduce your question.
10+
**Note**: If you'd still like to submit a question, please read
11+
[this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
12+
detailing how to provide the necessary information for us to reproduce your question.
1513

1614
```python
1715
# Your code here, if applicable

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Provide a description and/or bullet points to describe the changes in this PR.
66

77
- [ ] Reference issues which can be closed due to this PR with "Closes #x".
88
- [ ] Review whether the documentation needs to be updated.
9-
- [ ] Document PR in docs/changes.rst.
9+
- [ ] Document PR in CHANGES.md.

.github/workflows/continuous-integration-workflow.yml renamed to .github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Integration Workflow
1+
name: main
22

33
# Automatically cancel a previous run.
44
concurrency:
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Run unit tests and doctests.
4343
shell: bash -l {0}
44-
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
44+
run: tox -e pytest -- tests -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4545

4646
- name: Upload coverage report for unit tests and doctests.
4747
if: runner.os == 'Linux' && matrix.python-version == '3.9'
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Run integration tests.
5252
shell: bash -l {0}
53-
run: tox -e pytest -- -m integration --cov=./ --cov-report=xml -n auto
53+
run: tox -e pytest -- tests -m integration --cov=./ --cov-report=xml -n auto
5454

5555
- name: Upload coverage reports of integration tests.
5656
if: runner.os == 'Linux' && matrix.python-version == '3.9'
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Run end-to-end tests.
6161
shell: bash -l {0}
62-
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
62+
run: tox -e pytest -- tests -m end_to_end --cov=./ --cov-report=xml -n auto
6363

6464
- name: Upload coverage reports of end-to-end tests.
6565
if: runner.os == 'Linux' && matrix.python-version == '3.9'

.pre-commit-config.yaml

+11-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ repos:
66
args: ['--maxkb=100']
77
- id: check-merge-conflict
88
- id: check-yaml
9-
exclude: meta.yaml
109
- id: debug-statements
1110
- id: end-of-file-fixer
1211
- repo: https://github.com./pre-commit/pygrep-hooks
@@ -17,9 +16,6 @@ repos:
1716
- id: python-no-eval
1817
- id: python-no-log-warn
1918
- id: python-use-type-annotations
20-
- id: rst-backticks
21-
- id: rst-directive-colons
22-
- id: rst-inline-touching-normal
2319
- id: text-unicode-replacement-char
2420
- repo: https://github.com./asottile/pyupgrade
2521
rev: v2.32.0
@@ -39,11 +35,6 @@ repos:
3935
rev: 22.3.0
4036
hooks:
4137
- id: black
42-
- repo: https://github.com./asottile/blacken-docs
43-
rev: v1.12.1
44-
hooks:
45-
- id: blacken-docs
46-
additional_dependencies: [black]
4738
- repo: https://github.com./PyCQA/flake8
4839
rev: 4.0.1
4940
hooks:
@@ -65,24 +56,30 @@ repos:
6556
pydocstyle,
6657
Pygments,
6758
]
68-
- repo: https://github.com./PyCQA/doc8
69-
rev: 0.11.1
70-
hooks:
71-
- id: doc8
7259
- repo: https://github.com./econchick/interrogate
7360
rev: 1.5.0
7461
hooks:
7562
- id: interrogate
7663
args: [-v, --fail-under=40, src, tests]
64+
- repo: https://github.com./executablebooks/mdformat
65+
rev: 0.7.14
66+
hooks:
67+
- id: mdformat
68+
additional_dependencies: [
69+
mdformat-gfm,
70+
mdformat-black,
71+
]
72+
args: [--wrap, "88"]
7773
- repo: https://github.com./codespell-project/codespell
7874
rev: v2.1.0
7975
hooks:
8076
- id: codespell
81-
args: [-L unparseable]
8277
- repo: https://github.com./mgedmin/check-manifest
8378
rev: "0.48"
8479
hooks:
8580
- id: check-manifest
81+
args: [--no-build-isolation]
82+
additional_dependencies: [setuptools-scm, toml]
8683
- repo: meta
8784
hooks:
8885
- id: check-hooks-apply

CHANGES.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Changes
2+
3+
This is a record of all past pytask-parallel releases and what went into them in reverse
4+
chronological order. Releases follow [semantic versioning](https://semver.org/) and all
5+
releases are available on [PyPI](https://pypi.org/project/pytask-parallel) and
6+
[Anaconda.org](https://anaconda.org/conda-forge/pytask-parallel).
7+
8+
## 0.1.2 - 2022-xx-xx
9+
10+
- {pull}`36` adds a test for <https://github.com./pytask-dev/pytask/issues/216>.
11+
12+
## 0.1.1 - 2022-02-08
13+
14+
- {pull}`30` removes unnecessary content from `tox.ini`.
15+
- {pull}`33` skips concurrent CI builds.
16+
- {pull}`34` deprecates Python 3.6 and adds support for Python 3.10.
17+
18+
## 0.1.0 - 2021-07-20
19+
20+
- {pull}`19` adds `conda-forge` to the `README.rst`.
21+
- {pull}`22` add note that the debugger cannot be used together with pytask-parallel.
22+
- {pull}`24` replaces versioneer with setuptools-scm.
23+
- {pull}`25` aborts build and prints reports on `KeyboardInterrupt`.
24+
- {pull}`27` enables rich tracebacks from subprocesses.
25+
26+
## 0.0.8 - 2021-03-05
27+
28+
- {pull}`17` fixes the unidentifiable version.
29+
30+
## 0.0.7 - 2021-03-04
31+
32+
- {pull}`14` fixes some post-release issues.
33+
- {pull}`16` add dependencies to `setup.py` and changes the default backend to `loky`.
34+
35+
## 0.0.6 - 2021-02-27
36+
37+
- {pull}`12` replaces all occurrences of `n_processes` with `n_workers`.
38+
- {pull}`13` adds a license, versioneer, and allows publishing on PyPI.
39+
40+
## 0.0.5 - 2020-12-28
41+
42+
- {pull}`5` fixes the CI and other smaller issues.
43+
- {pull}`8` aligns pytask-parallel with task priorities in pytask v0.0.11.
44+
- {pull}`9` enables --max-failures. Closes {issue}`7`.
45+
- {pull}`10` releases v0.0.5.
46+
47+
## 0.0.4 - 2020-10-30
48+
49+
- {pull}`4` implement an executor with `loky`.
50+
51+
## 0.0.3 - 2020-09-12
52+
53+
- {pull}`3` align the program with pytask v0.0.6.
54+
55+
## 0.0.2 - 2020-08-12
56+
57+
- {pull}`1` prepares the plugin for pytask v0.0.5.
58+
- {pull}`2` better parsing and callbacks.
59+
60+
## 0.0.1 - 2020-07-17
61+
62+
- Initial commit which combined the whole effort to release v0.0.1.

CHANGES.rst

-84
This file was deleted.

0 commit comments

Comments
 (0)