-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (100 loc) · 2.9 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
[project]
name = "plotly-gtk"
dynamic = ["version", "readme"]
dependencies = ["numpy<2.0", "pygobject", "pandas", "prefixed"]
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "setuptools_scm_custom"]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
doc = ["pylint", "sphinx", "sphinx-pyreverse", "pydata-sphinx-theme", "sphinx-rtd-theme", "plotly"]
lint = ["black", "isort", "flake8", "flake8-pyproject", "flake8-pylint", "flake8-json", "flake8-bugbear", "mypy", "mypy-json-report", "pygobject-stubs", "deptry"]
test = ["plotly", "pytest", "pillow", "selenium", "pytest-subtests", "pytest-cov", "pytest-html"]
dev = ["plotly-gtk[doc, lint, test]"]
[tool.setuptools.dynamic]
readme = { file = "README.md", content-type = "text/markdown" }
[tool.setuptools_scm]
version_scheme = "setuptools_scm_custom:custom"
local_scheme = "setuptools_scm_custom:custom_local"
version_file = "src/plotly_gtk/_version.py"
[tool.setuptools_scm_custom]
version_scheme = "[{tag}?{distance}==0:{next_tag}][.dev{distance}?{distance}>0]"
local_scheme = "[+{node}?{distance}>0][[+?{distance}==0:.]d{node_date}?{dirty}==True]"
[tool.mypy]
exclude = "test"
# Disallow dynamic typing
disallow_any_unimported = true
# disallow_any_expr = true
disallow_any_decorated = true
disallow_any_generics = true
disallow_any_explicit = true
disallow_subclassing_any = true
# Disallow untyped definitions and calls
# disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
# None and optional handling
no_implicit_optional = true
# Configuring warnings
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_redundant_casts = true
# Misc things
strict_equality = true
# Config file
warn_unused_configs = true
[tool.isort]
profile = "black"
[tool.pylint.MAIN]
load-plugins = [
"pylint.extensions.docparams"
]
[tool.pylint.MESSAGES-CONTROL]
enable = [
"missing-function-docstring",
"useless-supression"
]
disable = [
"fixme",
"invalid-name",
"logging-fstring-interpolation",
"use-dict-literal"
]
extension-pkg-allow-list = [
]
[tool.pylint.parameter_documentation]
accept-no-param-doc = false
accept-no-raise-doc = false
accept-no-return-doc = false
accept-no-yields-doc = false
# Possible choices: ['sphinx', 'epytext', 'google', 'numpy', 'default']
default-docstring-type = "numpy"
[tool.flake8]
max-line-length = 88
max-doc-length = 88
docstring-convention = "numpy"
extend-select = [
"D417",
]
extend-ignore = [
"D102",
]
extend-exclude = [
]
require-plugins = [
# "flake8-pydocstyle",
"flake8-pylint",
"flake8-json",
"flake8-bugbear",
]
docstring_style = "numpy"
[tool.deptry]
pep621_dev_dependency_groups = ["doc", "lint", "test"]
[tool.commitizen]
name = "cz-trailers"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "scm"
major_version_zero = true