Skip to content

Commit db5254c

Browse files
authored
Merge pull request #13 from python-project-templates/tkp/upd
Update from main template
2 parents 612e077 + 0946d4d commit db5254c

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 711106c
2+
_commit: b6c112c
33
_src_path: .
44
add_extension: python
5-
email: t.paine154@gmail.com
5+
66
github: python-project-templates
77
project_description: A pure-python project template
88
project_name: python template

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at t.paine154@gmail.com. All
58+
reported by contacting the project team at [email protected].com. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ annotate: ## run python type annotation checks with mypy
5353
.PHONY: test coverage tests
5454

5555
test: ## run python tests
56-
python -m pytest -v python_template/tests --junitxml=junit.xml
56+
python -m pytest -v python_template/tests
5757

5858
coverage: ## run tests and collect test coverage
59-
python -m pytest -v python_template/tests --junitxml=junit.xml --cov=python_template --cov-branch --cov-fail-under=50 --cov-report term-missing --cov-report xml
59+
python -m pytest -v python_template/tests --cov=python_template --cov-report term-missing --cov-report xml
6060

6161
# Alias
6262
tests: test

pyproject.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend="hatchling.build"
44

55
[project]
66
name = "python-template"
7-
authors = [{name = "Python Project Template Authors", email = "t.paine154@gmail.com"}]
7+
authors = [{name = "Python Project Template Authors", email = "[email protected].com"}]
88
description="A pure-python project template"
99
readme = "README.md"
1010
license = { text = "Apache-2.0" }
@@ -67,6 +67,20 @@ ignore = [
6767
"setup.py",
6868
]
6969

70+
[tool.coverage.run]
71+
branch = true
72+
omit = [
73+
"python_template/tests/integration/",
74+
]
75+
[tool.coverage.report]
76+
exclude_also = [
77+
"raise NotImplementedError",
78+
"if __name__ == .__main__.:",
79+
"@(abc\\.)?abstractmethod",
80+
]
81+
ignore_errors = true
82+
fail_under = 50
83+
7084
[tool.hatch.build]
7185
artifacts = []
7286

@@ -80,6 +94,7 @@ include = [
8094
"README.md",
8195
]
8296
exclude = [
97+
".copier-answers.yml",
8398
"/.github",
8499
"/.gitattributes",
85100
"/.gitignore",
@@ -90,6 +105,7 @@ include = [
90105
"/python_template",
91106
]
92107
exclude = [
108+
".copier-answers.yml",
93109
"/.github",
94110
"/.gitattributes",
95111
"/.gitignore",
@@ -99,6 +115,7 @@ exclude = [
99115
[tool.hatch.build.targets.wheel.shared-data]
100116

101117
[tool.pytest.ini_options]
118+
addopts = ["-vvv", "--junitxml=junit.xml"]
102119
asyncio_mode = "strict"
103120
testpaths = "python_template/tests"
104121

0 commit comments

Comments
 (0)