-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (111 loc) · 2.21 KB
/
pyproject.toml
File metadata and controls
121 lines (111 loc) · 2.21 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
[project]
name = "off_explorer"
version = "0.1.0"
authors = [
{ name = "CAprogs", email = "cakotto@ippon.fr" }
]
description = "A simple streamlit app using Open Food Facts data"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"duckdb>=1.2.2",
"off_streamlit_app",
"pandas>=2.2.3",
"streamlit>=1.45.1",
]
[dependency-groups]
dev = [
"deptry>=0.23.0",
"pre-commit>=4.2.0",
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
"pytest-mock>=3.14.0",
]
[tool.uv.sources]
off-streamlit-app = { path = "./src/off_streamlit_app" }
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
".pytest_cache",
"__pycache__",
]
fix = false
required-version = ">=0.6.8"
line-length = 120
indent-width = 4
output-format = "concise"
[tool.ruff.lint]
select = [
"E4",
"E5",
"E7",
"F",
"UP",
"D",
"N",
"S",
"B",
"PT",
"RUF005",
"RUF019",
"PLR1711",
"PLR1722",
"PLR1730",
"PLR2044",
"PLR5501",
"ARG"
]
ignore = ["D300", "D206", "S608"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "D104"]
"tests/*" = ["E501", "D103", "D100", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
lines-after-imports = 2
length-sort-straight = true
length-sort = true
no-sections = true
[tool.ruff.lint.flake8-pytest-style]
parametrize-names-type = "list"
parametrize-values-row-type = "tuple"
[tool.ruff.format]
exclude = ["__init__.py"]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = true
line-ending = "auto"
[tool.commitizen]
# see https://commitizen-tools.github.io/commitizen/config/
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver2"
version = "0.1.1"
update_changelog_on_bump = true