Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changes here will be overwritten by Copier
_commit: 711106c
_commit: b6c112c
_src_path: .
add_extension: python
email: t.paine154@gmail.com
email: [email protected].com
github: python-project-templates
project_description: A pure-python project template
project_name: python template
Expand Down
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at t.paine154@gmail.com. All
reported by contacting the project team at [email protected].com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ annotate: ## run python type annotation checks with mypy
.PHONY: test coverage tests

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

coverage: ## run tests and collect test coverage
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
python -m pytest -v python_template/tests --cov=python_template --cov-report term-missing --cov-report xml

# Alias
tests: test
Expand Down
19 changes: 18 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend="hatchling.build"

[project]
name = "python-template"
authors = [{name = "Python Project Template Authors", email = "t.paine154@gmail.com"}]
authors = [{name = "Python Project Template Authors", email = "[email protected].com"}]
description="A pure-python project template"
readme = "README.md"
license = { text = "Apache-2.0" }
Expand Down Expand Up @@ -67,6 +67,20 @@ ignore = [
"setup.py",
]

[tool.coverage.run]
branch = true
omit = [
"python_template/tests/integration/",
]
[tool.coverage.report]
exclude_also = [
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
fail_under = 50

[tool.hatch.build]
artifacts = []

Expand All @@ -80,6 +94,7 @@ include = [
"README.md",
]
exclude = [
".copier-answers.yml",
"/.github",
"/.gitattributes",
"/.gitignore",
Expand All @@ -90,6 +105,7 @@ include = [
"/python_template",
]
exclude = [
".copier-answers.yml",
"/.github",
"/.gitattributes",
"/.gitignore",
Expand All @@ -99,6 +115,7 @@ exclude = [
[tool.hatch.build.targets.wheel.shared-data]

[tool.pytest.ini_options]
addopts = ["-vvv", "--junitxml=junit.xml"]
asyncio_mode = "strict"
testpaths = "python_template/tests"

Expand Down
Loading