-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
154 lines (135 loc) · 3.73 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[tool.poetry]
name = "bankid_asyncio"
version = "0.0.4"
description = "BankID client for Python with asyncio support."
license = "MIT"
authors = ["Kostiantyn Salnykov <[email protected]>"]
maintainers = ["Kostiantyn Salnykov <[email protected]>"]
readme = "README.md"
homepage = "https://kostiantyn-salnykov.github.io/bankid_asyncio/"
repository = "https://github.com/Kostiantyn-Salnykov/bankid_asyncio/"
documentation = "https://kostiantyn-salnykov.github.io/bankid_asyncio/"
keywords = ["bankid", "client", "asyncio", "pydantic", "httpx"]
classifiers = [
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
]
packages = [
{include = "bankid_asyncio"},
]
[tool.poetry.urls]
"Issues" = "https://github.com/Kostiantyn-Salnykov/bankid_asyncio/issues"
"Discussions" = "https://github.com/Kostiantyn-Salnykov/bankid_asyncio/discussions"
[tool.poetry.dependencies]
python = "^3.8"
httpx = "^0.23.0"
pydantic = "^1.9.2"
[tool.poetry.group.lint.dependencies]
black = "^22.6.0"
isort = "^5.10.1"
tox = "^3.25.1"
mypy = "^0.971"
flake8 = "^5.0.4"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest-sugar = "^0.9.5"
pytest-asyncio = "^0.19.0"
Faker = "^14.1.0"
pytest-cov = "^3.0.0"
pytest-mock = "^3.8.2"
pytest-randomly = "^3.12.0"
pytest-clarity = "^1.0.1"
pydantic = {extras = ["dotenv"], version = "^1.9.2"}
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs-material = "^8.4.2"
pymdown-extensions = "^9.5"
mkdocs-glightbox = "^0.2.1"
mkdocs-macros-plugin = "^0.7.0"
mkdocs = {extras = ["i18n"], version = "^1.3.1"}
mkdocs-static-i18n = "^0.46"
mkdocstrings = {extras = ["python"], version = "^0.19.0"}
mkdocs-build-plantuml-plugin = "^1.7.4"
[tool.poetry.group.dev.dependencies]
ipython = "^8.5.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
include = '\.pyi?$'
extend-exclude = '''
/(
| dist
| .pytest_cache
| .tox
| docs
| docs_src
| .venv
| .mypy_cache
)/
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
[tool.pytest.ini_options]
markers = [
'debug: marks tests as debug (deselect with -m "not debug")',
]
#addopts = "--maxfail=1 -rf"
norecursedirs = ["venv", ".venv", ".env"]
testpaths = ["tests",]
pythonpath = ["."]
python_files = ["test*.py", "*test.py"]
python_functions = ["*_test", "test_*"]
console_output_style = "progress"
asyncio_mode = "auto"
log_cli = true
[tool.coverage.run]
parallel = true
branch = true
source = ["bankid_asyncio",]
omit = ["*/.local/*", "*/.idea/*", "*./venv/*", "*/test*", "*__init__*", "*/*interfaces.py"]
[tool.coverage.report]
#show_missing = true
ignore_errors = true
sort = "-Cover"
precision = 2
omit = ["*/.local/*", "*/.idea/*", "*./venv/*", "*/test*", "*__init__*", "*/*interfaces.py"]
exclude_lines = ["pragma: no cover", "if __name__ = .__main__.:"]
[tool.coverage.html]
directory = "coverage"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38, py39, py310, py311
isolated_build = true
[testenv]
whitelist_externals = poetry
commands_pre =
poetry install --no-root
commands =
poetry run pytest tests/ --import-mode importlib
"""
[tool.mypy]
python_version = "3.8"
files = ['*.py', '**/*.py']
exclude = ["docs*", "coverage", "test"]
plugins = ["pydantic.mypy",]
no_site_packages = true
follow_imports = "skip"
ignore_missing_imports = true
strict_optional = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
no_implicit_optional = true
disallow_untyped_defs = true
#disallow_any_unimported = true