-
Notifications
You must be signed in to change notification settings - Fork 248
/
pyproject.toml
157 lines (151 loc) · 4.23 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
152
153
154
155
156
157
[tool.poetry]
name = "django-ajax-selects"
version = "3.0.3"
description = "Edit ForeignKey, ManyToManyField and CharField in Django Admin using jQuery UI AutoComplete."
authors = ["Chris Sattinger <[email protected]>"]
repository = "https://github.com/crucialfelix/django-ajax-selects"
documentation = "https://django-ajax-selects.readthedocs.io/en/latest/"
license = "MIT, GPL"
readme = "README.md"
packages = [{include = "ajax_select"}]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
"Framework :: Django",
]
[tool.poetry.dependencies]
python = "^3.10"
Django = ">=3.2"
[tool.poetry.group.dev.dependencies]
tox = "^4.11.4"
sphinx = "^7.2.6"
sphinx-rtd-theme = "^2.0.0"
ruff = "^0.6.5"
[tool.ruff]
exclude = [
"./example/AJAXSELECTS/lib/*",
"./example/AJAXSELECTS/bin/*",
"./docs/*",
]
line-length = 120
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle
"W", # pycodestyle
"C90", # mccabe
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"YTT", # flake8-2020
# "ANN", # flake8-annotations
"ASYNC",# flake8-async
"S", # flake8-bandit
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"CPY", # flake8-copyright
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"DJ", # flake8-django
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SLOT", # flake8-slots
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"INT", # flake8-gettext
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"FIX", # flake8-fixme
"ERA", # eradicate
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # Pylint
"TRY", # tryceratops
"FLY", # flynt
"NPY", # NumPy-specific rules
"FAST", # FastAPI
"AIR", # Airflow
"PERF", # Perflint
"FURB", # refurb
"DOC", # pydoclint
# "RUF", # Ruff-specific rules
]
ignore = [
"ANN101", # public methods must have type annotations
"ARG001", #
"ARG002", # unused argument
"COM812",
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # public method
"D103", # missing docstring in public function
"D104", #
"D105", # missing docstring in magic method
"D106", #
"D107", #
"D200", #
"D203", # 1 blank line required before class docstring
"D205", #
"D211", # no-blank-line-before-class
"D212", #
"D401", #
"D404", #
"D415", # docstring should end in a period
"D417", #
"DJ001", #
"DJ006", #
"DJ008", #
"ERA001", # commented out code
"FBT002", #
"FIX002", #
"ISC001",
"PGH004", #
"PT009", # should use regular assert in tests
"PTH100", #
"PTH118", #
"PTH120", #
"RUF005",
"RUF012", # mutable class attributes should be annotated
"S105", #
"S106", # password in example app
"S308", #
"SLF001", #
"TD002", #
"TD003", #
"TRY002", #
# "D200", # One-line docstring should fit on one line
# "D212", # multi line docstring should start at first line
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"