-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
210 lines (177 loc) · 4.97 KB
/
Copy pathpyproject.toml
File metadata and controls
210 lines (177 loc) · 4.97 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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "beiwe-forest"
version = "1.0.1beta"
description = "Forest is a library for analyzing smartphone-based high-throughput digital phenotyping data"
authors = [
{name = "Jukka-Pekka Onnela"},
{name = "Josh Barback"},
{name = "Zachary Clement"},
{name = "Hassan Dawood"},
{name = "Georgios Efstathiadis"},
{name = "Patrick Emedom-Nnamdi"},
{name = "Ceyhun Olcan"},
{name = "Emily J. Huang"},
{name = "Marta Karas"},
{name = "Gang Liu"},
{name = "Nellie Ponarul"},
{name = "Marcin Straczkiewicz"},
{name = "Ilya Sytchev"},
{name = "Anna Beukenhorst"},
]
maintainers = [
{name = "Onnela Lab", email = "onnela.lab@gmail.com"},
{name = "Eli Jones", email = "biblicabeebli@gmail.com"},
]
readme = "README.md"
license = {text = "BSD-3-Clause"}
requires-python = ">=3.12, <3.15"
dependencies = [
"audioread",
"holidays",
"numpy",
"openrouteservice",
"pandas",
"pyproj",
"python-dateutil",
"tzdata",
"ratelimit",
"requests",
"scipy",
"shapely",
"soundfile",
"ssqueezepy",
"timezonefinder",
"zstandard",
]
keywords = ["digital phenotyping", "smartphone", "statistics", "accelerometer", "GPS"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Information Analysis",
]
[project.urls]
Documentation = "https://forest.beiwe.org"
Homepage = "https://forest.beiwe.org"
Issues = "https://github.com/onnela-lab/forest/issues"
Source = "https://github.com/onnela-lab/forest"
[project.optional-dependencies]
dev = [
"build",
"cffconvert",
"ruff",
"flake8",
"flake8-pytest-style",
"flake8-pyproject",
"mypy",
"pandas-stubs",
"pytest",
"pytest-mock",
"pytest-xdist",
"twine",
"types-python-dateutil",
"types-requests",
"types-setuptools",
]
[tool.setuptools.package-data]
"forest.poplar.raw" = ["noncode/*.csv", "noncode/*.json"]
#
## Type checker config
#
[tool.mypy]
mypy_path = "src"
packages = ["forest"]
python_version = "3.12"
[[tool.mypy.overrides]]
# remember to run mypy --install-types
module = [
"audioread",
"audioread.*",
"openrouteservice",
"openrouteservice.*",
"scipy.*",
"soundfile",
"ssqueezepy",
]
ignore_missing_imports = true
#
## Pytest config
#
[tool.pytest.ini_options]
# addopts = "--import-mode=importlib" # this does not seem to be necessary anymore
testpaths = ["tests"]
#
## Linting and type checking tools
#
## Ruff
[tool.ruff]
line-length = 100 # target a 100 character line length
indent-width = 4
[tool.ruff.lint.pycodestyle]
max-line-length = 105 # only go above 100 when it makes the code clearer.
[tool.ruff.format]
indent-style = "space" # use spaces for indentation
line-ending = "lf" # use \n for line endings
skip-magic-trailing-comma = true # even with this set to true the , is added to imports
[tool.ruff.lint]
future-annotations = true
select = [ # (linting directives to enable)
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes codes
"UP", # pyupgrade codes
"COM818", # trailing-comma-on-bare-tuple
"A", # flake8-annotations codes
"SIM", # code simplification rules - noqa with a reason if you ignore
"TID", # "tidy import" checks
"ARG", # argument-related checks, unused args, (at least hide them with an _underscore)
# "I", # import checks and sorting - cannot get this to match isort
# "DTZ", # Timezone checks - can't enable due to datetime handling
]
extend-ignore = [ # (linting directives to ignore)
"W293", # blank line contains whitespace
]
exclude = [
"build",
".venv",
"venv",
"*.ipynb",
"private",
]
## Flake8 - not actually used, but IDEs using it need it configured.
[tool.flake8]
line-length = 100
max-line-length = 100
extend-ignore = [
"W293", # blank line contains whitespace
]
exclude = [
"build",
".venv",
"venv",
]
## isort - import formatter - (would use ruff, cannot get identical formatting out of it)
[tool.isort]
combine_as_imports = true
float_to_top = true
honor_noqa = true
line_length = 100
lines_after_imports = 2
multi_line_output = 10 # "HANGING_INDENT_WITH_PARENTHESES"
py_version = 312
remove_redundant_aliases = true
star_first = true
use_parentheses = true
known_third_party = [] # Force these libraries to a special spot in import order (second to bottom)
known_local_folder = []
known_first_party = [] # Force these libraries to a special spot in import order (bottom)