-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
138 lines (113 loc) · 3.28 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
[build-system]
# Minimum requirements for the build system to execute.
# PEP 508 specifications for PEP 518.
requires = [
"setuptools>=45", # PSF/ZPL
"setuptools_scm[toml]>=6.2",
]
build-backend="setuptools.build_meta"
[project]
name = "advanced-descriptors"
description = "Advanced descriptors for special cases."
readme = "README.rst"
urls={"Bug Tracker" = "https://github.com/python-useful-helpers/advanced-descriptors/issues", "Documentation" = "https://advanced-descriptors.readthedocs.io/" }
requires-python = ">=3.7.0"
keywords = ["descriptor", "property", "classmethod", "development"]
license = {text = "Apache License, Version 2.0"}
authors=[{name="Alexey Stepanov", email="[email protected]"}]
maintainers=[
{name="Alexey Stepanov", email="[email protected]"},
{name="Antonio Esposito", email="[email protected]"},
{name="Dennis Dmitriev", email="[email protected]"}
]
dynamic = ["version", "classifiers", "dependencies"]
[tool.setuptools.package-data]
advanced_descriptors=[
"py.typed",
"*.pyi",
"*/*.pyi"
]
[tool.setuptools.packages.find]
exclude = [
"doc",
"test",
".*"
]
include = ["advanced_descriptors"]
namespaces = false
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
classifiers = {file = ["classifiers.txt"]}
[tool.distutils.bdist_wheel]
universal = 0
[tool.black]
line-length = 120
safe = true
target-version = ["py37", "py38"]
[tool.isort]
line_length = 120
multi_line_output = 3
force_single_line = true
import_heading_stdlib = "Standard Library"
import_heading_thirdparty = "External Dependencies"
import_heading_firstparty = "Package Implementation"
import_heading_localfolder = "Local Implementation"
[tool.doc8]
max-line-length = 150
[tool.pydocstyle]
ignore = [
"D401",
"D202",
"D203",
"D213"
]
# First line should be in imperative mood; try rephrasing
# No blank lines allowed after function docstring
# 1 blank line required before class docstring
# Multi-line docstring summary should start at the second line
match = "(?!_version|test_)*.py"
[tool.mypy]
strict = true
warn_unused_configs = true
warn_redundant_casts = true
show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-vvv -s -p no:django -p no:ipdb"
testpaths = ["test"]
mock_use_standalone_module = false
junit_family = "xunit2"
[tool.coverage.run]
omit = ["test/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"raise NotImplementedError",
# Exclude methods marked as abstract
"@abstractmethod",
# Exclude import statements
"^from\b",
"^import\b",
# Exclude variable declarations that are executed when file is loaded
"^[a-zA-Z_]+\b\\s=",
# Code for static analysis is never covered:
"if typing.TYPE_CHECKING:",
# Fallback code with no installed deps is almost impossible to cover properly
"except ImportError:",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
# OS Specific
"if platform.system()",
]
[tool.coverage.json]
pretty_print = true
[tool.setuptools_scm]
write_to = "advanced_descriptors/_version.py"