-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (78 loc) · 2.14 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[project]
name = "predicate_dispatch"
version = "0.4.0"
description = "Predicative dispatch decorator for Python, based on idea from book \"Functional Programming in Python\"."
authors = [{ name = "Dmitriy Pertsev", email = "[email protected]" }]
dependencies = []
requires-python = ">=3.7"
readme = "README.md"
license = { text = "Apache-2.0" }
keywords = ["dispatch", "functional programming"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[project.urls]
Homepage = "https://github.com/pertsevds/predicate_dispatch"
Repository = "https://github.com/pertsevds/predicate_dispatch"
Documentation = "https://github.com/pertsevds/predicate_dispatch"
"Bug Tracker" = "https://github.com/pertsevds/predicate_dispatch/issues"
[project.optional-dependencies]
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.pdm.build]
package-dir = "src"
includes = ["src"]
source-includes = ["tests", "LICENSE", "README.md"]
[tool.pdm.dev-dependencies]
dev = [
"mypy>=0.982",
"black>=22.10.0",
"pylint>=2.13.9",
]
test = ["pytest", "pytest-cov>=4.0.0"]
[tool.pdm.scripts]
test = "pytest --cov-report lcov:./coverage/lcov.info --cov-report term-missing --cov=predicate_dispatch"
format = "black src tests"
lint = "pylint src"
mypy = "mypy src"
[tool.black]
line-length = 88
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| tests/fixtures
)/
'''
[tool.mypy]
show_error_codes = true
strict = true
[tool.isort]
profile = "black"
atomic = true
skip_glob = ["*/setup.py"]
filter_files = true
known_first_party = ["pdm"]
known_third_party = ["pytest"]
[tool.pytest.ini_options]
addopts = "-r aR"
testpaths = ["tests/"]