-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
pyproject.toml
97 lines (84 loc) · 1.97 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
[project]
name = "dundie"
description = "Rewards API for Dunder Mifflin"
authors = [
]
requires-python = ">=3.8"
license = {text = "MIT"}
dynamic = ["version", "readme", "dependencies"]
[project.urls]
Homepage = 'https://github.com/rochacbruno/dundie-api'
Source = 'https://github.com/rochacbruno/dundie-api'
[project.optional-dependencies]
dev = [
"pytest",
"ipdb",
"ipython",
"pip-tools",
"pyright",
"flake8",
"black",
"isort",
]
[project.scripts]
dundie = "dundie.cli:main"
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["dundie"]
[tool.setuptools_scm]
write_to = "dundie/VERSION.txt"
[tool.setuptools.dynamic]
readme = {file = ["docs/README.md"]}
dependencies = {file = "requirements.txt"}
[tool.pytest.ini_options]
testpaths = 'tests'
xfail_strict = true
filterwarnings = [
'error',
'ignore:path is deprecated.*:DeprecationWarning:',
]
[tool.coverage.run]
source = ['dundie']
branch = true
context = '${CONTEXT}'
[tool.coverage.report]
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'@overload',
]
[tool.black]
color = true
line-length = 100
target-version = ['py310']
skip-string-normalization = true
[tool.isort]
line_length = 100
known_first_party = 'dundie'
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
[tool.mypy]
# temporarily ignore some files
# exclude = 'foo/(zaz|bar)\.py'
python_version = '3.10'
show_error_codes = true
follow_imports = 'silent'
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
warn_unused_configs = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
disallow_untyped_defs = true