This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
111 lines (89 loc) · 2.22 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
[project]
name = "Marketplace"
version = "0.0.1"
description = "A Django app for people to connect and exchange goods."
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Topic :: Internet"
]
requires-python = ">=3.9"
dependencies = [
"Django>4",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-django",
"django-stubs[compatible-mypy]",
"black==23.7.0",
"ruff==0.0.284",
"httpretty",
]
[build-system]
requires = ['setuptools>=68.1.0', 'wheel']
build-backend = 'setuptools.build_meta'
[tool.setuptools]
include-package-data = true
[tools.black]
max-line-length = 88
[tool.ruff]
line-length = 79
fix = true
# Enable Flake's "E" and "F" codes by default.
select = ["E", "F", "I", "W", "A", "B", "Q", "C", "S"]
ignore = ["B008", "E501", "S101", "A003", "B904"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
'static',
'migrations',
'__pycache__',
'.pytest_cache',
'__init__.py',
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.9.x
target-version = "py39"
[tool.ruff.per-file-ignores]
"tests/*" = ["S105", "S106"]
[tool.mypy]
ignore_missing_imports = true
disable_error_code = "attr-defined, valid-type"
disallow_untyped_defs = true
exclude = "venv|migrations|build|dist|docs"
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "marketplace.settings"
[tool.pytest.ini_options]
python_files = "tests.py test_*.py"
DJANGO_SETTINGS_MODULE = "marketplace.settings"