forked from rusalforever/learn_python_project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (68 loc) · 1.45 KB
/
pyproject.toml
File metadata and controls
76 lines (68 loc) · 1.45 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
[tool.poetry]
name = 'learn_python'
version = "0.1.0"
description = "Learn python"
authors = ["marcustas <marcustas@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
python-dateutil = "^2.8.2"
pydantic = "^2.4.2"
email-validator = "^2.0.0.post2"
[tool.poetry.group.lint.dependencies]
black = "^23.3.0"
ruff = "^0.0.291"
[tool.black]
line-length = 120
skip-string-normalization = true
[tool.ruff]
extend-exclude = [
"*/__init__.py",
]
line-length = 120
ignore = [
"T201", # Ignore print only for learn project, don't use on a real one
"ANN003",
"ANN101",
"ANN102",
"ANN204",
"ANN401",
"D105",
"D107",
"D200",
"D204",
"D413",
"F722",
"B904",
]
select = [
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"ERA", # eradicate
"T20", # flake8-print
"Q", # flake8-quotes
"I", # isort
"N", # pep8-naming
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
]
[tool.ruff.pep8-naming]
classmethod-decorators = [
"classmethod",
"pydantic.field_validator",
"pydantic.model_validator",
]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
[tool.ruff.isort]
split-on-trailing-comma = true
force-wrap-aliases = true
combine-as-imports = true
lines-after-imports = 2
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"