-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
179 lines (164 loc) · 3.42 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
168
169
170
171
172
173
174
175
176
177
178
179
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "portfolio"
version = "0.0.3"
authors = [{ name = "Cristian" }]
description = "Personal Portfolio"
license = { text = "Proprietary" }
readme = "README.md"
classifiers = ["Private :: Do not Upload"]
requires-python = ">=3.12.6"
# list of project dependencies
dependencies = [
# because pyyaml 6.0.0 is broken with Cython3
"pyyaml==6.0.1",
]
[tool.setuptools]
packages = ["portfolio"]
# optional grouped dependencies that are installed only when explicitly set
[project.optional-dependencies]
# dev dependencies are installed during development but no for package
dev = [
"mypy",
"Django",
"awsebcli",
"botocore",
"cement",
"colorama",
"distlib",
"dj-database-url",
"gunicorn",
"jmespath",
"jupyter_client",
"nest-asyncio",
"pathspec",
"psycopg2-binary",
"semantic-version",
"sqlparse",
"pytest",
"termcolor",
"pytest-cov",
"pytest-mock",
"pytest-asyncio",
"pytest-xdist[psutil]",
"ruff",
"ipykernel",
"numpy>=1.24.4",
"jupyter>=1.0.0",
"jupyterlab>=4.0.2",
"fsspec>=2023.6.0",
"pydantic",
"uvicorn",
"typer",
"fastapi",
"python-multipart",
"altair",
"ydata-profiling",
"whitenoise",
"python-dotenv",
]
# dependencies needed to build package
build = ["twine", "build"]
[tool.uv]
# Configuration for uv, the package manager
index-url = "https://pypi.org/simple"
[tool.ruff]
line-length = 79
indent-width = 4
target-version = "py312"
exclude = ["tests"]
[tool.ruff.lint]
fixable = ["ALL"]
select = [
"F",
"W",
"E",
"I",
"N", # names,
#"D", # docstrings
"UP",
"ANN", # annotations
"ASYNC",
#"S", # security
#"BLE" # blind exception
#"FBT", # boolean trap
"B",
"A",
"COM",
# "CPY", # copyright
#"C4", # comprehension
#"DTZ", # datetime
"T10",
#"DJ", # django
#"EM", # error message
#"EXE", # executable
#"FA", # future annotations
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
#"RET", # return
"SLF",
"SLOT",
"SIM", # simplify
"TID",
"TCH",
"INT",
"ARG",
#"PTH", # pathlib
#"TD, # todos
#"FIX", # fixmes
"ERA",
#"PGH", # pygrep hooks
"PL",
#"TRY", # excception handling,
#"FLY", # f-strings
"NPY",
#"AIR", # airflow
#"PERF", # performance
#"FURB", # refurb
"LOG",
#"RUF", # ruff specific
]
ignore = [
"B008",
"PLR0913",
"PLR0912",
"PLR2004",
"EM102",
"E501",
"G004",
"RSE102",
"COM812",
"ISC001",
"Q000",
"Q003",
"PLR0915",
"PLR0911",
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
# Like Black, use double quotes for strings.
# Like Black, indent with spaces, rather than tabs.
# Like Black, respect magic trailing commas.
# Like Black, automatically detect the appropriate line ending.
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.