-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also adopts src/ layout
- Loading branch information
Showing
37 changed files
with
129 additions
and
94 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -28,3 +28,4 @@ test-distribute.sh | |
/AUTHORS | ||
/.pytest_cache | ||
venv/* | ||
src/tendo/_version.py |
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 was deleted.
Oops, something went wrong.
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,10 @@ | ||
--- | ||
codecov: | ||
require_ci_to_pass: true | ||
comment: false | ||
coverage: | ||
status: | ||
patch: false | ||
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
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,44 @@ | ||
# spell-checker:ignore filterwarnings norecursedirs optionflags | ||
[pytest] | ||
# do not add options here as this will likely break either console runs or IDE | ||
# integration like vscode or pycharm | ||
addopts = | ||
# https://code.visualstudio.com/docs/python/testing | ||
# coverage is re-enabled in `tox.ini`. That approach is safer than | ||
# `--no-cov` which prevents activation from tox.ini and which also fails | ||
# when plugin is effectively missing. | ||
-p no:pytest_cov | ||
|
||
doctest_optionflags = ALLOW_UNICODE ELLIPSIS | ||
filterwarnings = | ||
default | ||
ignore:.*mode is deprecated:Warning | ||
ignore:unclosed file.*:Warning | ||
ignore:can't resolve package from.*:Warning | ||
junit_duration_report = call | ||
# Our github annotation parser from .github/workflows/tox.yml requires xunit1 format. Ref: | ||
# https://github.com/shyim/junit-report-annotations-action/issues/3#issuecomment-663241378 | ||
junit_family = xunit1 | ||
junit_suite_name = ansible_lint_test_suite | ||
minversion = 4.6.6 | ||
norecursedirs = | ||
build | ||
dist | ||
docs | ||
.cache | ||
.eggs | ||
.git | ||
.github | ||
.tox | ||
*.egg | ||
python_files = | ||
test_*.py | ||
# Ref: https://docs.pytest.org/en/latest/reference.html#confval-python_files | ||
# Needed to discover legacy nose test modules: | ||
Test*.py | ||
# Needed to discover embedded Rule tests | ||
# Using --pyargs instead of testpath as we embed some tests | ||
# See: https://github.com/pytest-dev/pytest/issues/6451#issuecomment-687043537 | ||
# testpaths = | ||
xfail_strict = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,12 +2,13 @@ | |
name = tendo | ||
|
||
author = Sorin Sbarnea | ||
author-email = [email protected] | ||
author_email = [email protected] | ||
maintainer = Sorin Sbarnea | ||
maintainer-email = [email protected] | ||
maintainer_email = [email protected] | ||
summary = A Python library that extends some core functionality | ||
description-file = README.rst | ||
home-page = https://github.com/pycontribs/tendo | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
home_page = https://github.com/pycontribs/tendo | ||
license = BSD | ||
classifier = | ||
Development Status :: 5 - Production/Stable | ||
|
@@ -31,19 +32,44 @@ keywords = | |
colorer | ||
singleton | ||
|
||
|
||
[options] | ||
use_scm_version = True | ||
python_requires = >=3.6 | ||
package_dir = | ||
= src | ||
packages = find: | ||
# Do not use include_package_data as we mention them explicitly. | ||
# see https://setuptools.pypa.io/en/latest/userguide/datafiles.html | ||
# include_package_data = True | ||
zip_safe = False | ||
install_requires = | ||
six | ||
|
||
[files] | ||
packages = | ||
tendo | ||
[options.extras_require] | ||
test = | ||
coverage[toml]>=6.5.0 | ||
coveralls~=3.3.1 | ||
pre-commit~=2.20.0 | ||
pytest-cache~=1.0 | ||
pytest-cov~=3.0.0 | ||
pytest-html~=3.1.1 | ||
pytest-instafail~=0.4.2 | ||
pytest-xdist~=2.5.0 | ||
pytest~=7.1.3 | ||
wheel~=0.37.1 | ||
docs = | ||
Sphinx~=5.2.1 | ||
docutils~=0.19 | ||
MarkupSafe~=2.1.1 | ||
|
||
[entry_points] | ||
pbr.config.drivers = | ||
plain = pbr.cfg.driver:Plain | ||
[options.package_data] | ||
* = | ||
py.typed | ||
**/*.txt | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
[options.packages.find] | ||
where = src | ||
|
||
[build_sphinx] | ||
source-dir = docs | ||
|
@@ -58,21 +84,3 @@ enable-extensions = H106,H203,H204,H205,H210,H904 | |
exclude = __pycache__,build,src,.tox | ||
ignore = D | ||
max-line-length=1024 | ||
|
||
[tool:pytest] | ||
norecursedirs = . .svn _build tmp* lib/third lib *.egg bin distutils build docs demo | ||
python_files = *.py | ||
addopts = -p no:xdist --ignore=setup.py --tb=long --capture=fd -rxX --maxfail=10 tendo | ||
# --maxfail=2 -n4 | ||
# -n4 runs up to 4 parallel procs | ||
# --maxfail=2 fail fast, dude | ||
# --durations=3 report the top 3 longest tests | ||
|
||
# these are important for distributed testing, to speedup their execution we minimize what we sync | ||
rsyncdirs = . tendo demo docs | ||
rsyncignore = .hg .git | ||
filterwarnings = | ||
default | ||
ignore:.*mode is deprecated:Warning | ||
ignore:unclosed file.*:Warning | ||
ignore:can't resolve package from.*:Warning |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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