2019-11-08 15:47:37 +03:00
[ tool . poetry ]
name = "generic"
2022-05-09 00:26:34 +03:00
version = "1.1.0"
2019-11-08 15:47:37 +03:00
description = "Generic programming library for Python"
authors = [
"Andrey Popp <8mayday@gmail.com>" ,
2019-11-09 11:51:11 +03:00
"Arjan Molenaar <gaphor@gmail.com>"
]
maintainers = [
2019-11-08 15:49:40 +03:00
"Arjan Molenaar <gaphor@gmail.com>" ,
"Dan Yeaw <dan@yeaw.me>"
2019-11-08 15:47:37 +03:00
]
2019-11-09 11:51:11 +03:00
2019-11-08 15:47:37 +03:00
license = "BSD License"
readme = "README.md"
homepage = "https://generic.readthedocs.io/"
repository = "https://github.com/gaphor/generic"
documentation = "https://generic.readthedocs.io/"
keywords = [ "generic" , "multi dispatch" , "dispatch" , "event" ]
classifiers = [
"Development Status :: 5 - Production/Stable" ,
"Intended Audience :: Developers" ,
"Intended Audience :: Information Technology" ,
"License :: OSI Approved :: BSD License" ,
"Programming Language :: Python" ,
]
[ tool . poetry . dependencies ]
2021-10-16 18:52:04 +03:00
python = "^3.8"
2022-05-08 14:28:21 +03:00
exceptiongroup = "^1.0.0-rc.5"
2019-11-08 15:47:37 +03:00
[ tool . poetry . dev-dependencies ]
2022-10-26 05:12:40 +03:00
pytest = "^7.2"
2022-09-29 13:08:08 +03:00
pytest-cov = "^4.0"
2022-03-01 05:29:17 +03:00
pytest-runner = "^6.0"
2022-10-07 20:37:19 +03:00
black = { version = "^22.10" , python = "^3.7" }
2022-11-15 20:03:25 +03:00
mypy = "0.991"
2022-07-11 22:53:46 +03:00
pre-commit = "^2.20"
2019-11-08 15:47:37 +03:00
bw_sphinxtheme = "^0.1.8"
2022-10-27 03:41:39 +03:00
tox = "^3.27"
2019-11-08 15:47:37 +03:00
2019-11-23 23:20:45 +03:00
[ tool . tox ]
legacy_tox_ini = "" "
[ tox ]
isolated_build = true
2022-11-20 06:12:23 +03:00
envlist = clean , py38 , py39 , py310 , py311 , report
2019-11-23 23:20:45 +03:00
2020-10-24 21:52:07 +03:00
[ gh-actions ]
python =
2020-10-24 22:32:50 +03:00
3.8 : py38
2020-10-24 21:52:07 +03:00
3.9 : py39
2021-10-16 18:52:04 +03:00
3.10 : py310
2022-11-20 06:12:23 +03:00
3.11 : py311
2020-10-24 21:52:07 +03:00
2019-11-23 23:20:45 +03:00
[ testenv ]
2020-10-24 21:48:37 +03:00
commands =
pytest --cov --cov-append --cov-report = term-missing { posargs }
deps =
pytest
pytest-cov
depends =
2022-11-20 06:12:23 +03:00
{ py38 , py39 , py310 , py311 } : clean
report : py38 , py39 , py310 , py311
2020-10-24 21:48:37 +03:00
[ testenv : report ]
2020-10-24 22:10:42 +03:00
deps = coverage [ toml ]
2019-11-23 23:20:45 +03:00
skip_install = true
commands =
2020-10-24 21:48:37 +03:00
coverage report
coverage html
[ testenv : clean ]
2020-10-24 22:10:42 +03:00
deps = coverage [ toml ]
2020-10-24 21:48:37 +03:00
skip_install = true
commands = coverage erase
2019-11-23 23:20:45 +03:00
"" "
2020-08-29 05:08:26 +03:00
2020-10-20 04:50:49 +03:00
[ tool . pytest . ini_options ]
testpaths = [
"tests" ,
"docs" ,
]
2022-11-20 06:03:14 +03:00
addopts = [
"--doctest-modules" ,
"--doctest-glob='*.rst'" ,
"--import-mode=importlib" ,
]
2020-10-20 04:50:49 +03:00
2020-08-29 05:08:26 +03:00
[ tool . isort ]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
known_third_party = [ "pytest" ]
skip = ".venv,build,dist"
2020-10-24 22:10:42 +03:00
[ tool . coverage . run ]
source = [ "generic" ]
2022-11-20 06:03:14 +03:00
[ tool . mypy ]
python_version = 3.9
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
check_untyped_defs = true
strict_optional = true
show_error_codes = true
ignore_missing_imports = true
warn_unused_ignores = true
namespace_packages = true
[ [ tool . mypy . overrides ] ]
module = [
"pytest.*" ,
"conf" ,
]
ignore_missing_imports = true
warn_unreachable = true
[ build-system ]
requires = [ "poetry-core>=1.0.0" ]
build-backend = "poetry.core.masonry.api"