-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (146 loc) · 5.92 KB
/
pyproject.toml
File metadata and controls
176 lines (146 loc) · 5.92 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
[project]
name = "Beiwe-Backend"
version = "0" # This is a rolling release, if the need arises we will add a version number.
# This pyproject.toml file is not complete. All tooling and information that can be moved into this
# file should be incorporated, especially if it removes a configuration file from the repository.
description = "The Beiwe Backend repository contains the server and host deployment and management tools for The Beiwe Platform. This repository is a rolling release, users of the platform seeking active support are encouraged watch the main branch of the repository, to post in repo issues, and/or to get in contact via email with the maintainer so that development is aware of their use-case."
maintainers = [
{ name = "Eli Jones", email = "biblicabeiwe@gmail.com" }
]
authors = [ # Contributors
# Eli Jones is the primary architect and maintainer of The Beiwe Platform. He is a major contributor to the backend and the apps, and occasionally dabbles in the Forest repository. He has been involved since the platform's inception.
{ name = "Eli Jones" },
# Reyva Babtista has contributed a major feature to the platform: container support! Let's hope we can eventually get everyone there, retire Elastic Beanstalk, and support other IaaS providers than AWS.
{ name = "Reyva Babtista" },
# Professor Onnela is the PI of Onnela Lab at the Harvard T.H. Chan School of Public Health, which develops The Beiwe Platform. This development is supported by funding from the U.S. National Institutes of Health.
{ name = "JP Onnela" },
# Josh Zagorsky is a founder at Zagaran Inc., which developed The Beiwe Platform under the direction of JP Onnela. He is a major historical architect of and contributer to both apps and the backend.
{ name = "Josh Zagorsky" },
# Historical contributers
{ name = "Aaron Klein" },
{ name = "Ali Abdullah" },
{ name = "Alvin Siu" },
{ name = "Caleb Dixon" },
{ name = "Chris McCarthy" },
{ name = "Daniel Norton" },
{ name = "Dor Samet" },
{ name = "Erinn Looney-Triggs" },
{ name = "Jake Klingensmith" },
{ name = "Leila Minowada" },
{ name = "Noah Houghton" },
{ name = "Sean Esterkin" },
{ name = "Zonglin Leon He" },
]
readme = "README.md"
license = { file = "LICENSE.md" }
classifiers = [
"Programming Language :: Python :: 3.12",
"Requires-Python: >=3.12",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Natural Language :: English",
# "Project-URL: Homepage - https://beiwe.org" # at time of writing there were problems with the site hosting?
"Project-URL: Homepage - https://github.com/onnela-lab/beiwe-backend",
"Project-URL: Documentation - https://github.com/onnela-lab/beiwe-backend/wiki",
"Project-URL: Repository - https://github.com/onnela-lab/beiwe-backend.git",
"Project-URL: Issues - https://github.com/onnela-lab/beiwe-backend/issues",
]
keywords = [
"Beiwe Platform",
"Beiwe",
"Clinical Research",
"Data Science",
"Digital Phenotyping",
"Phenotyping",
"Public Health",
"Research Platform",
"Research",
"Studies",
"Study",
]
#
## Dependencies are not currently handled in this file
#
# dependencies = []
#
## We are still introducing formatters to this project, but opinionated formatters like Black
## will not be enforced or accepted as additions. Currently isort and yaml are actively used
## but not enforced. MyPy is used for type checking but not enforced or officially configured.
## There is no Javascript code formatting tool in use (yet).
#
[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 = [
"forest",
]
known_first_party = [ # Force these libraries to a special spot in import order (bottom)
"authentication",
"cluster_management",
"config",
"constants",
"database",
"endpoints",
"libs",
"middleware",
"services",
]
[tool.ruff]
line-length = 105
indent-width = 4
extend-ignore =[
"E701", # multiple statements on one line (colon)
]
[tool.ruff.format]
indent-style = "space" # use spaces for indentation
line-ending = "lf" # use \n for line endings
[tool.ruff.lint.pycodestyle]
max-line-length = 120 # maximum line length
[tool.ruff.lint]
future-annotations = true
[tool.flake8]
# flake8 is not required to pass, but the primary dev uses it for a couple types of errors
max-cognitive-complexity = 10
extend-ignore = [
"E127", # continuation line over-indented for visual indent
"E128", # continuation line under-indented for visual indent
"E225", # missing whitespace around operator
# "E305", # should have 2 blank lines after class or function definition
"E301", # expected 1 blank line, found 0
# "E302", # expected 2 blank lines, found 1
"E303", # too many blank lines
"E701", # multiple statements on one line (colon)
"E702", # multiple statements on one line (semicolon)
# "E265", # block comment should start with '# '
"E266", # too many leading '#' for block comment
"E501", # line too long
"R503", # missing explicit None return
"W293", # blank line contains whitespace
# "C408", # unnecessary list comprehension
# "SIM102", # use 'if any(...)' instead of 'if True in (...)'
# "CFQ002", # missing whitespace after ',' (?)
# "CFQ004",
"E731", # don't use lambdas alone
"R505", # unnecessary elif return
"R504", # unnecessary return after assignment - is literally incorrect
]
exclude = [
".git",
"__pycache__",
"docs",
"frontend",
"paper",
"private",
]