-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
82 lines (67 loc) · 1.79 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
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=2,<3"]
[tool.flit.metadata]
module = "foodx_backup_source"
author = "FoodX Technologies"
author-email = "[email protected]"
description-file = "README.rst"
home-page = "https://github.com/Food-X-Technologies/foodx_backup_source/"
requires-python = ">=3.8"
requires = [
"aiofiles >=0.8.0, <1.0",
"aiohttp >=3.8.1, <4",
"click >=8.1.2, <9",
"deepmerge >=1.0.1, <2",
"gitpython >=3.1.27, <4",
"pydantic >=1.9.0, <2",
"ruamel.yaml >=0.17.20, <1.0",
]
[tool.flit.metadata.requires-extra]
dev = [
"build_harness >=1.0.1, <2",
"pre_commit >=2.17.0, <3",
"types-aiofiles >=0.8.3, <1.0",
]
doc = [
"sphinx >=4.5.0, <5",
"sphinx_rtd_theme >=1.0, <2",
]
test = [
"pytest >=7.1.1, <8",
"pytest-asyncio >=0.18.3, <1.0",
"pytest-cov >=3.0, <4",
"pytest-mock >=3.7.0, <4",
]
[tool.flit.scripts]
backup-source = "foodx_backup_source.entrypoint:main"
[tool.black]
# Don't forget to sync this with isort, .flake8
line-length = 80
[tool.isort]
# Don't forget to sync this with black, .flake8
line_length = 80
profile = "black"
[tool.coverage.run]
# branch and concurrency settings seem to be needed due to this problem:
# pytest-cov internal error "Can't combine line data with arc data"
# https://github.com/pytest-dev/pytest-cov/issues/243
branch = true
concurrency = ["multiprocessing"]
omit = [".venv/*"]
source = ["foodx_backup_source"]
[tool.coverage.report]
exclude_lines = [
"except ImportError",
"raise NotImplementedError",
"pass",
"ABCmeta",
"abstractmethod",
"warnings.warn",
]
omit = [
# very little test utility in this file and "0%" test coverage biases coverage results, so exclude it.
"*/entrypoint.py"
]
precision = 0
show_missing = true