-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
102 lines (88 loc) · 2.08 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
[tool.poetry]
name = "django-pro"
version = "0.1.0"
description = "Django for Professionals - William Vincent"
authors = ["Carlos Regis <cr@carlosregis.com>"]
readme = "README.md"
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
psycopg2-binary = "^2.9.7"
# Django Dependencies
django = "^4.2.4"
django-environ = "^0.10.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
ruff = "^0.0.286"
pylint-django = "^2.5.3"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^7.2.5"
sphinx-rtd-theme = "^1.3.0"
# [tool.poetry.group.test.dependencies]
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core>=1.6.1",
]
[tool.black]
line-length = 100
target-version = ['py311']
include = '\.pyi?$'
# If --exclude is not set, Black will automatically ignore files and
# directories in .gitignore file(s), if present.
extend-exclude = '''
(
docs
| migrations
| /static/CACHE/
)
'''
[tool.ruff]
cache-dir = "~/.cache/ruff"
fix = true
target-version = "py311"
show-fixes = true
show-source = true
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle errors
"DJ", # flake8-django
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PT", # flake8-pytest-style
"PL", # pylint
"Q", # flake8-quotes
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"E501", # line too long, handled by black
]
extend-exclude = [
"**/migrations/*",
"**/static/CACHE/*",
"docs",
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F403"]
# "path/to/file.py" = ["E402"]
# "**/{tests,docs,tools}/*" = ["E402"]
# [tool.ruff.isort]
# known-third-party = ["fastapi", "pydantic", "starlette"]
[tool.bandit]
exclude_dirs = ["tests", "settings.py"]
# tests = ["B201", "B301"]
# skips = ["B101", "B601"]
[tool.djlint]
profile="django"
[tool.codespell]
write-changes = true
ignore-words-list = "asend"