-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (120 loc) · 3.36 KB
/
pyproject.toml
File metadata and controls
134 lines (120 loc) · 3.36 KB
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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "petbox-dca"
version = "2.0.0"
description = "Decline Curve Library"
readme = {file = "README.rst", content-type = "text/x-rst"}
license = "MIT"
requires-python = ">=3.10"
authors = [
{name = "David S. Fulford", email = "petbox-dev@gmail.com"},
]
keywords = [
"petbox-dca", "dca", "decline curve", "type curve",
"production forecast", "production data analysis",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = [
"numpy>=2.1",
"scipy>=1.13",
]
[project.urls]
Homepage = "https://github.com/petbox-dev/dca"
[project.optional-dependencies]
dev = [
"attrs>=19.2.0",
"coverage>=5.1",
"hypothesis>=6.14.8",
"mpmath>=1.3.0",
"mypy>=1.0",
"pytest>=6.2.4",
"pytest-cov>=2.12.1",
"ruff>=0.4.0",
"wheel>=0.34.2",
]
docs = [
"Sphinx<7.0.0",
"sphinx-rtd-theme==1.2.2",
]
[tool.setuptools.packages.find]
include = ["petbox.dca"]
[tool.setuptools.package-data]
"petbox.dca" = ["py.typed"]
[tool.ruff]
line-length = 100
target-version = "py310"
exclude = [
".git",
"__pycache__",
"docs/source/conf.py",
"old",
"build",
"dist",
]
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = [
"F401", # imported but unused
"F841", # local variable assigned but never used
"E116", # unexpected indentation (comment)
"E251", # unexpected spaces around keyword / parameter default
"E261", # at least two spaces before inline comment
"E265", # block comment should start with '# '
"E266", # too many leading '#' for block comment
"E302", # expected 2 blank lines
"E305", # expected 2 blank lines after end of function/class
"E402", # module level import not at top of file
"E722", # do not use bare 'except'
"W605", # invalid escape sequence
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
plugins = ["numpy.typing.mypy_plugin"]
[tool.pytest.ini_options]
addopts = "--cov=petbox.dca --cov-report=term-missing --cov-config=pyproject.toml --hypothesis-show-statistics -v test"
[tool.coverage.run]
# branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self\\.debug",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
]
ignore_errors = true
[tool.coverage.html]
directory = "test/htmlcov"