diff --git a/.copier-answers.yml b/.copier-answers.yml index 4fd1b6f..3fdd780 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -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: 3105306+timkpaine@users.noreply.github.com github: python-project-templates project_description: A pure-python project template project_name: python template diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 1b32efd..d07d5b8 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -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 3105306+timkpaine@users.noreply.github.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. diff --git a/Makefile b/Makefile index 82ca9c4..35d6275 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 127406e..3452b2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "3105306+timkpaine@users.noreply.github.com"}] description="A pure-python project template" readme = "README.md" license = { text = "Apache-2.0" } @@ -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 = [] @@ -80,6 +94,7 @@ include = [ "README.md", ] exclude = [ + ".copier-answers.yml", "/.github", "/.gitattributes", "/.gitignore", @@ -90,6 +105,7 @@ include = [ "/python_template", ] exclude = [ + ".copier-answers.yml", "/.github", "/.gitattributes", "/.gitignore", @@ -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"