-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
106 lines (93 loc) · 2.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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["nonogram"]
[project]
name = "nonogram"
version = "0.1.0"
readme = "README.md"
dependencies = [
"Django==5.0.3",
"djangorestframework==3.15.0",
"drf-spectacular==0.27.1",
"psycopg2-binary==2.9.9",
"python-dotenv==1.0.1",
"django-silk==5.1.0",
"django-browser-reload==1.12.1",
"whitenoise==6.0.0",
"django-debug-toolbar==4.3.0",
"Pillow==10.3.0",
"numpy==1.26.4",
"cloudinary==1.40.0",
"requests==2.32.3",
"rembg==2.0.57"
]
[project.optional-dependencies]
dev = [
"black==24.2.0",
"ruff==0.3.2",
"pre-commit==3.6.2",
"mypy==1.9.0",
"django-stubs==4.2.7",
"djlint==1.34.1",
"whitenoise==6.0.0",
"coverage==7.4.4",
"setuptools==70.0.0",
"types-requests==2.32.0.20240602",
]
deploy = [
"gunicorn==21.2.0",
]
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"DJ", # flake8-django
"G", # flake8-logging-format
"T20", # flake8-print
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"FIX", # flake8-fixme
"ERA", # eradicate
"PL", # pylint
]
lint.ignore = [
"E501", # line too long, handled by black
]
[tool.ruff.lint.per-file-ignores] # https://github.com/astral-sh/ruff/issues/4368
"**/tests.py" = [
"S101", # asserts allowed in tests
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
"PLR2004", # Magic value used in comparison
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
# https://docs.astral.sh/ruff/rules/
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "nonogram.settings"
[tool.coverage.run]
source = ["nonogram"]
[tool.coverage.report]
omit = [
"*/config-3.py",
"*/config.py",
"*/migrations/*",
"*/tests/*"
]
skip_empty = true