-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
201 additions
and
9 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coverage>=7.6.9 | ||
# pytest-cov | ||
pytest-instafail | ||
pytest-plus | ||
pytest>=8 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
comment: false | ||
coverage: | ||
status: | ||
patch: true | ||
project: | ||
default: | ||
threshold: 0.5% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs | ||
"setuptools_scm[toml] >= 7.0.5" # required for "no-local-version" scheme | ||
] | ||
|
||
[project] | ||
description = "..." | ||
dynamic = ["version", "dependencies", "optional-dependencies"] | ||
name = "team-devtools" | ||
readme = "README.md" | ||
# https://peps.python.org/pep-0621/#readme | ||
requires-python = ">=3.10" | ||
# Keep this default because xml/report do not know to use load it from config file: | ||
# data_file = ".coverage" | ||
[tool.coverage.paths] | ||
source = ["src", "test", ".tox/*/site-packages"] | ||
|
||
[tool.coverage.report] | ||
exclude_also = ["pragma: no cover", "if TYPE_CHECKING:"] | ||
# Increase it just so it would pass on any single-python run | ||
fail_under = 100 | ||
omit = ["test/*"] | ||
show_missing = true | ||
skip_covered = true | ||
skip_empty = true | ||
|
||
[tool.coverage.run] | ||
concurrency = ["multiprocessing", "thread"] | ||
# Do not use branch until bug is fixes: | ||
# https://github.com/nedbat/coveragepy/issues/605 | ||
# branch = true | ||
parallel = true | ||
source = ["src"] | ||
[tool.pytest.ini_options] | ||
addopts = "-p no:pytest_cov --durations=10 --failed-first" | ||
norecursedirs = [ | ||
"*.egg", | ||
".cache", | ||
".config", | ||
".eggs", | ||
".git", | ||
".github", | ||
".mypy_cache", | ||
".projects", | ||
".eggs", | ||
".tox", | ||
"__pycache__", | ||
"build", | ||
"collections", | ||
"dist", | ||
"docs", | ||
"site", | ||
"src/*.egg-info" | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = [".config/requirements.in"]} | ||
optional-dependencies.docs = {file = [".config/requirements-docs.in"]} | ||
optional-dependencies.test = {file = [".config/requirements-test.in"]} | ||
[tool.setuptools_scm] | ||
# To prevent accidental pick of mobile version tags such 'v6' | ||
git_describe_command = [ | ||
"git", | ||
"describe", | ||
"--dirty", | ||
"--long", | ||
"--tags", | ||
"--match", | ||
"v*.*" | ||
] | ||
local_scheme = "no-local-version" | ||
tag_regex = "^(?P<prefix>v)?(?P<version>[0-9.]+)(?P<suffix>.*)?$" | ||
write_to = "src/team_devtools/_version.py" | ||
|
||
[tool.tomlsort] | ||
in_place = true | ||
sort_inline_tables = true | ||
sort_table_keys = true | ||
|
||
[tool.uv.pip] | ||
annotation-style = "line" | ||
custom-compile-command = "tox run deps" | ||
no-emit-package = ["ansible-core", "pip", "resolvelib", "typing_extensions", "uv"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
try: | ||
from ._version import __version__ | ||
except ImportError: # pragma: no cover | ||
__version__ = "unknown" | ||
|
||
__all__ = ("__version__",) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# file generated by setuptools_scm | ||
# don't change, don't track in version control | ||
TYPE_CHECKING = False | ||
if TYPE_CHECKING: | ||
from typing import Tuple, Union | ||
VERSION_TUPLE = Tuple[Union[int, str], ...] | ||
else: | ||
VERSION_TUPLE = object | ||
|
||
version: str | ||
__version__: str | ||
__version_tuple__: VERSION_TUPLE | ||
version_tuple: VERSION_TUPLE | ||
|
||
__version__ = version = '22.5.1.dev19' | ||
__version_tuple__ = version_tuple = (22, 5, 1, 'dev19') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Use ansiblelint.testing instead for reusable tests.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"""Test module for the package.""" | ||
|
||
|
||
def test_placeholder(): | ||
"""Placeholder test.""" | ||
from team_devtools import __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters