Skip to content

Commit 617f180

Browse files
authored
Merge pull request #12 from smkent/dev
Add py.typed to template, update coverage config
2 parents 2181acd + f8871b5 commit 617f180

7 files changed

Lines changed: 17 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ A template for new Python projects, with:
88
* black
99
* flake8
1010
* GitHub Actions support
11+
* Coverage reports with codecov.io
1112

1213
## Usage
1314

{{cookiecutter.project_name}}/.coveragerc

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
threshold: 0.2%

{{cookiecutter.project_name}}/py.typed

Whitespace-only changes.

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pytest-sugar = "*"
3030
tox = "*"
3131

3232
[tool.poetry.scripts]
33-
{{ cookiecutter.project_name }} = "{{ cookiecutter.project_slug }}.main:main"
3433

3534
[tool.poetry-dynamic-versioning]
3635
enable = true
@@ -51,6 +50,13 @@ flake8 = { cmd = "flake8" }
5150
mypy = { cmd = "mypy" }
5251
pytest = { cmd = "pytest" }
5352

53+
[tool.coverage.run]
54+
source = ["jmapc"]
55+
56+
[tool.coverage.report]
57+
fail_under = 0
58+
show_missing = true
59+
5460
[tool.isort]
5561
atomic = true
5662
profile = "black"

{{cookiecutter.project_name}}/tests/test_main.py

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def test_import() -> None:
2+
import {{cookiecutter.project_slug}}
3+
4+
assert {{cookiecutter.project_slug}}

0 commit comments

Comments
 (0)