generated from dataforgoodfr/d4g-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
128 lines (118 loc) · 1.75 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "python_template"
version = "0.1.0"
description = "Template"
authors = ["DataForGood"]
license = " MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
# numpy = "^1.21.1"
# pandas = "^1.1.1"
# jupyter = "^1.0.0"
# ipykernel = "^5.3.4"
pandas = "2.0.3"
duckdb = "0.10.0"
geopandas = "^0.14.3"
folium = "^0.16.0"
streamlit = "^1.32.2"
plotly-express = "^0.4.1"
streamlit-authenticator = "^0.3.2"
st-pages = "^0.4.5"
[tool.poetry.group.dev.dependencies]
pre-commit = "^2.20.0"
pytest = "^7.2.0"
# ruff = "^0.0.254"
tox = "^4.4.8"
[tool.ruff]
select = [
"A",
"ANN",
"ARG",
"B",
"C",
"COM",
"C90",
"E",
"ERA",
"F",
"I",
"N",
"PGH",
"PL",
"PLE",
"PLR",
"PLW",
"PT",
"PTH",
"Q",
"RET",
"RUF",
"SLF",
"SIM",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
ignore = ["A003", "ANN101", "ANN401", "N805", "N818", "PLR0913", "RET504", "RET505"]
fixable = [
"A",
"ANN",
"ARG",
"B",
"C",
"COM",
"C90",
"E",
"ERA",
"F",
"I",
"PGH",
"PL",
"PLE",
"PLR",
"PLW",
"PT",
"PTH",
"Q",
"RET",
"RUF",
"SLF",
"SIM",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".pants.d",
".pytype",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"venv",
"pages",
"tests"
]
line-length = 96
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
[tool.ruff.mccabe]
max-complexity = 10