forked from matthewwardrop/formulaic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
167 lines (148 loc) · 4.05 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "formulaic"
description = "An implementation of Wilkinson formulas."
authors = [
{name = "Matthew Wardrop", email = "[email protected]"},
]
license = "MIT"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Topic :: Scientific/Engineering :: Mathematics",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.7.2"
dependencies = [
"astor>=0.8; python_version < \"3.9\"",
"cached-property>=1.3.0; python_version < \"3.8\"",
"graphlib-backport>=1.0.0; python_version < \"3.9\"",
"interface-meta>=1.2.0",
"numpy>=1.16.5",
"pandas>=1.0",
"scipy>=1.6",
"wrapt>=1.0",
"typing-extensions>=4.2.0",
]
dynamic = ["version"]
[project.urls]
repository = "https://github.com/matthewwardrop/formulaic"
documentation = "https://matthewwardrop.github.io/formulaic"
[project.optional-dependencies]
arrow = ["pyarrow>=1"]
calculus = ["sympy>=1.3,!=1.10"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "formulaic/_version.py"
# Build target configuration
[tool.hatch.build.targets.sdist]
include = [
"docsite",
"benchmarks",
"formulaic",
"tests",
"LICENSE",
"pyproject.toml",
"README.md",
]
# Testing configuration
[tool.hatch.envs.default]
dependencies = [
'formulaic[arrow,calculus]; python_version < "3.12"',
'formulaic[calculus]; python_version == "3.12"',
"pytest==7.4.3",
"pytest-cov==4.1.0",
]
[tool.hatch.envs.default.scripts]
tests = 'pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=formulaic --cov-report=xml -vv {args:tests}'
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310", "311"]
[[tool.hatch.envs.test_min.matrix]]
python = ["37"]
[tool.hatch.envs.test_min]
dependencies = [
"formulaic[arrow,calculus]",
"pytest==7.2.0",
"pytest-cov==4.0.0",
"astor==0.8; python_version < \"3.9\"",
"cached-property==1.3.0; python_version < \"3.8\"",
"graphlib-backport==1.0.0; python_version < \"3.9\"",
"interface-meta==1.2.0",
"numpy==1.16.5",
"pandas==1.0",
"scipy==1.6",
"wrapt==1.0",
"typing-extensions==4.2.0",
]
[tool.hatch.envs.lint]
dependencies = [
"black==22.6",
"flake8==5.0.4",
"flake8-pyproject",
"mypy==1.4.1",
"mypy-extensions==1.0.0",
"pylint==2.17.4",
"pytest-cov==3.0.0",
"pytest==6.2.5",
]
[tool.hatch.envs.lint.scripts]
check = [
"black --check formulaic tests",
"flake8 formulaic",
"pylint formulaic",
"mypy formulaic",
]
format = "black formulaic tests"
# Linting configuration
[tool.flake8]
ignore = [
"C901","E203","E501","E712","E722","E731","W503","W504","W601"
]
max-complexity = 25
import-order-style = "edited"
application-import-names = "formulaic"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"cyclic-import",
"duplicate-code",
"eval-used",
"fixme",
"import-outside-toplevel",
"invalid-name",
"line-too-long",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-member",
"protected-access",
"redefined-outer-name",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-statements",
"ungrouped-imports",
"unnecessary-lambda-assignment",
"unused-argument",
"use-dict-literal",
]
[tool.mypy]
allow_redefinition = true
disallow_untyped_defs = true
disallow_any_generics = false
ignore_missing_imports = true