-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (67 loc) · 1.65 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
[tool.poetry]
name = "python-lib-template"
version = "0.1.0"
description = "Simple template for python libs with poetry and mkdocs."
authors = ["Ouail Bendidi <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/obendidi/python-lib-template"
homepage = "https://github.com/obendidi/python-lib-template"
keywords = []
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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 :: Only",
]
include = ["LICENSE"]
[tool.poetry.dependencies]
python = "^3.7"
[tool.poetry.dev-dependencies]
black = {version = "^21.9b0", allow-prereleases = true}
mypy = "^0.930"
isort = "^5.9.3"
flake8 = "^4.0.1"
pytest = "^6.2.5"
pytest-cov = "^3.0.0"
pre-commit = "^2.15.0"
mock = "^4.0.3"
mkautodoc = "^0.1.0"
mkdocs-material = "^8.1.4"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[mypy]
python_version = 3.7
exclude = "tests/"
[tool.black]
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| venv
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
# add your package name here
addopts = "-ra -q -vv --cov={{package-name}} --cov-report=term"
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
omit = ["**/tests/test_*.py"]
fail_under = 50