-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
151 lines (126 loc) · 3.58 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "python-playground"
version = "0.1.0"
description = "Python Playground."
keywords = ["python", "playground"]
authors = ["MenSeb <[email protected]>"]
maintainers = ["MenSeb <[email protected]>"]
repository = "https://github.com/MenSeb/python-playground.git"
homepage = "https://github.com/MenSeb/python-playground.git"
documentation = "https://menseb.github.io/python-playground/docs"
license = "MIT"
readme = "README.md"
classifiers = [
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Natural Language :: French",
"Operating System :: OS Independent",
"Programming Language :: Python",
]
packages = [{ include = "src" }, { include = "tools" }]
include = [{ path = "tests", format = "sdist" }]
exclude = []
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
[tool.coverage.html]
directory = "./coverage/html"
[tool.coverage.lcov]
output = "./coverage/lcov.info"
[tool.coverage.report]
# fail_under = 100
show_missing = true
exclude_lines = ["if __name__ == \"__main__\":", "def __repr__", "def __str__"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src"]
data_file = "coverage/.coverage"
omit = ["**/__init__.py", "**/__main__.py"]
[tool.djlint]
custom_html = "circle,defs,g,line,path,rect,svg,symbol,text,use"
ignore = "H006"
extension = ".jinja"
profile = "jinja"
use_gitignore = true
[tool.mypy]
ignore_missing_imports = true
[tool.pymarkdown]
plugins.line-length.enabled = false
plugins.first-line-h1.enabled = false
plugins.no-inline-html.enabled = false
[tool.pytest.ini_options]
pythonpath = "src"
testpaths = ["tests"]
addopts = [
"--verbose",
"--import-mode=importlib",
"--cov-report=html",
"--cov-report=lcov",
"--cov-report=term-missing",
]
[tool.ruff]
# A list of rule codes or prefixes to enable.
select = ["ALL"]
# A list of rule codes or prefixes to ignore.
ignore = ["D203", "D213", "FBT001", "FBT002", "PLR0913"]
# A list of rule codes or prefixes to consider autofixable
fixable = ["ALL"]
# A list of rule codes or prefixes to consider non-autofix-able.
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = []
# A list of mappings from file pattern to rule codes or prefixes to exclude.
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["S101", "PLR2004"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.yamlfix]
comments_min_spaces_from_content = 1
preserve_quotes = true
whitelines = 1
indent_mapping = 4
indent_offset = 4
indent_sequence = 6
[tool.poetry.dependencies]
python = ">=3.12.0,<3.13"
python-dotenv = "^1.0.0"
flask = "^3.0.0"
watchdog = "^3.0.0"
gevent = "^23.9.1"
beautifulsoup4 = "^4.12.2"
requests = "^2.31.0"
html5lib = "^1.1"
pandas = "^2.1.1"
aiohttp = "^3.9.1"
aiodns = "^3.1.1"
jinja2 = "^3.1.2"
[tool.poetry.group.dev.dependencies]
commitizen = "^3.7.0"
mypy = "^1.5.1"
yamlfix = "^1.14.0"
[tool.poetry.group.lint.dependencies]
ruff = "^0.0.286"
black = "^23.7.0"
pymarkdownlnt = "^0.9.13.3"
yamllint = "^1.32.0"
djlint = "^1.32.1"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
pytest-mock = "^3.11.1"
pytest-cov = "^4.1.0"
[tool.poetry.group.docs.dependencies]
mkdocs = { extras = ["i18n"], version = "^1.5.2" }
mkdocstrings = { extras = ["python"], version = "^0.22.0" }
[tool.poetry.group.webdriver.dependencies]
selenium = "^4.15.2"
playwright = "^1.39.0"
webdriver-manager = "^4.0.1"