Skip to content

Commit 3ff1a80

Browse files
authored
Implement a new interface. (#7)
1 parent c020a73 commit 3ff1a80

38 files changed

+1757
-752
lines changed

.coveragerc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[report]
2+
exclude_lines =
3+
pragma: no cover
4+
if TYPE_CHECKING.*:
5+
\.\.\.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
---
1+
______________________________________________________________________
22

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

8-
---
6+
______________________________________________________________________
97

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

1210
- [ ] I have confirmed this bug exists on the latest version of pytask-julia.
1311

14-
- [ ] (optional) I have confirmed this bug exists on the `main` branch of
15-
pytask-julia.
12+
- [ ] (optional) I have confirmed this bug exists on the `main` branch of pytask-julia.
1613

17-
---
14+
______________________________________________________________________
1815

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.
16+
**Note**: Please read
17+
[this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
18+
detailing how to provide the necessary information for us to reproduce your bug.
2219

2320
#### Code Sample, a copy-pastable example
2421

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 4 additions & 6 deletions
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

Lines changed: 6 additions & 8 deletions
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-julia
5-
title: "ENH:"
6-
labels: "enhancement"
3+
name: Enhancement about: Suggest an idea for pytask-julia title: "ENH:" labels:
4+
"enhancement"
75

8-
---
6+
______________________________________________________________________
97

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

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

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

.github/ISSUE_TEMPLATE/question.md

Lines changed: 6 additions & 8 deletions
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-script.jl
5-
title: "QST:"
3+
name: Submit Question about: Ask a general question about pytask-script.jl title: "QST:"
64
labels: "question"
75

8-
---
6+
______________________________________________________________________
97

108
#### Question about pytask-script.jl
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

Lines changed: 1 addition & 1 deletion
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/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ concurrency:
55
group: ${{ github.head_ref || github.run_id }}
66
cancel-in-progress: true
77

8+
env:
9+
CONDA_EXE: mamba
10+
811
on:
912
push:
1013
branches:
@@ -24,7 +27,7 @@ jobs:
2427
fail-fast: false
2528
matrix:
2629
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
27-
python-version: ['3.7', '3.8', '3.9']
30+
python-version: ['3.7', '3.8', '3.9', '3.10']
2831

2932
steps:
3033
- uses: actions/checkout@v2
@@ -35,7 +38,8 @@ jobs:
3538

3639
- name: Install core dependencies.
3740
shell: bash -l {0}
38-
run: conda install -c conda-forge tox-conda coverage
41+
run: conda install -c conda-forge tox-conda coverage mamba
42+
3943

4044
# Unit, integration, and end-to-end tests.
4145

.pre-commit-config.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ repos:
2323
- id: python-no-eval
2424
- id: python-no-log-warn
2525
- id: python-use-type-annotations
26-
- id: rst-backticks
27-
- id: rst-directive-colons
28-
- id: rst-inline-touching-normal
2926
- id: text-unicode-replacement-char
3027
- repo: https://github.com/asottile/pyupgrade
3128
rev: v2.32.0
@@ -36,6 +33,7 @@ repos:
3633
rev: v3.0.1
3734
hooks:
3835
- id: reorder-python-imports
36+
args: [--py37-plus, --add-import, 'from __future__ import annotations']
3937
- repo: https://github.com/asottile/setup-cfg-fmt
4038
rev: v1.20.1
4139
hooks:
@@ -44,11 +42,6 @@ repos:
4442
rev: 22.3.0
4543
hooks:
4644
- id: black
47-
- repo: https://github.com/asottile/blacken-docs
48-
rev: v1.12.1
49-
hooks:
50-
- id: blacken-docs
51-
additional_dependencies: [black]
5245
- repo: https://github.com/PyCQA/flake8
5346
rev: 4.0.1
5447
hooks:
@@ -70,24 +63,30 @@ repos:
7063
pydocstyle,
7164
Pygments,
7265
]
73-
- repo: https://github.com/PyCQA/doc8
74-
rev: 0.11.1
66+
- repo: https://github.com/executablebooks/mdformat
67+
rev: 0.7.14
7568
hooks:
76-
- id: doc8
69+
- id: mdformat
70+
additional_dependencies: [
71+
mdformat-gfm,
72+
mdformat-black,
73+
]
74+
args: [--wrap, "88"]
7775
- repo: https://github.com/econchick/interrogate
7876
rev: 1.5.0
7977
hooks:
8078
- id: interrogate
81-
args: [-v, --fail-under=40, src, tests]
79+
args: [-v, --fail-under=40, src]
8280
- repo: https://github.com/codespell-project/codespell
8381
rev: v2.1.0
8482
hooks:
8583
- id: codespell
86-
args: [-L unparseable]
8784
- repo: https://github.com/mgedmin/check-manifest
8885
rev: "0.48"
8986
hooks:
9087
- id: check-manifest
88+
args: [--no-build-isolation]
89+
additional_dependencies: [setuptools-scm, toml]
9190
- repo: meta
9291
hooks:
9392
- id: check-hooks-apply

CHANGES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changes
2+
3+
This is a record of all past pytask-julia 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-julia) and
6+
[Anaconda.org](https://anaconda.org/conda-forge/pytask-julia).
7+
8+
## 0.2.0 - 2022-04-16
9+
10+
- {pull}`6` skip concurrent builds.
11+
- {pull}`7` implements the new interface of pytask-julia with the decorator and an
12+
approach to serialize arguments to pass them to the executed script.
13+
- {pull}`8` removes an unnecessary hook.
14+
15+
## 0.1.0 - 2022-01-19
16+
17+
- {pull}`2` polishes the first release of pytask-julia. (Thanks to {user}`hmgaudecker`,
18+
{user}`hildebrandecon`)
19+
- {pull}`4` fixes the badges.

CHANGES.rst

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

MANIFEST.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
prune tests
22

3-
exclude *.rst
4-
exclude *.yml
5-
exclude *.yaml
3+
exclude .coveragerc
64
exclude *.ini
5+
exclude *.md
6+
exclude *.toml
7+
exclude *.yaml
8+
exclude *.yml
79

8-
include README.rst
10+
include README.md
911
include LICENSE

0 commit comments

Comments
 (0)