/
pyproject.toml
105 lines (84 loc) · 3.43 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[metadata]
description-file = "README.md"
[build-system]
# virtualenv 20.0.34 partly breaks pre-commit under conda
# https://github.com/ContinuumIO/anaconda-issues/issues/12094
# Poetry uses pip and setuptools (although they're not included as dependencies)
# We don't need to list wheel here, but setting a min vr can avoid generating inferior wheels
requires = ["poetry>=1.1,<2", "virtualenv==20.0.33", "wheel>=0.36,<1.0"]
build-backend = "poetry.masonry.api"
#########################################################################################
# Poetry metadata
#########################################################################################
[tool.poetry]
name = "realized"
version = "0.1.0"
description = "Adorable little Python code for you to copy or import."
keywords = ["python", "models", "json-schema", "iso-8601"]
authors = ["Douglas Myers-Turnbull"]
maintainers = ["Douglas Myers-Turnbull"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/dmyersturnbull/realized"
repository = "https://github.com/dmyersturnbull/realized"
documentation = "https://github.com/dmyersturnbull/realized"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules"
]
[tool.poetry.urls]
CI = "https://github.com/dmyersturnbull/realized/actions"
Issues = "https://github.com/dmyersturnbull/realized/issues"
Download = "https://pypi.org/project/realized/"
Changelog = "https://github.com/dmyersturnbull/realized/blob/main/CHANGELOG.md"
#########################################################################################
# Poetry build & dependencies
#########################################################################################
[tool.poetry.dependencies]
python = "^3.9"
defusedxml = ">=0.7, <1.0"
orjson = "^3.8"
regex = ">=2022"
tomlkit = ">=0.11, <1.0"
[tool.poetry.dev-dependencies]
pre-commit = "^2.20"
bandit = "^1.7"
hypothesis = "^6"
pytest = "^7"
coverage = {extras = ["toml"], version = "^6"}
pytest-cov = "^3"
flake8 = "^5"
flake8-bugbear = ">=22.7"
flake8-docstrings = "^1.6"
#########################################################################################
# Testing
#########################################################################################
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(name)s: %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
#########################################################################################
# Style checking
#########################################################################################
[tool.coverage.paths]
source = ["realized"]
[tool.coverage.run]
source = ["realized"]
[tool.coverage.report]
show_missing = true
[tool.black]
line-length = 100
target-version = ["py310", "py311"]
[tool.isort]
line_length = 100
[mypy]
check_untyped_defs = true
strict_optional = true