Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (51 loc) · 1.82 KB
/
Copy pathpyproject.toml
File metadata and controls
55 lines (51 loc) · 1.82 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
[project]
name = "python-social-auth-examples"
requires-python = ">=3.11"
version = "2025.0"
[tool.ruff.lint]
ignore = [
"ANN", # TODO: missing type annotations
"ARG001", # TODO: Unused function argument
"ARG005", # TODO: Unused lambda argument
"COM", # CONFIG: No trailing commas
"CPY001", # TODO: missing copyright info on files
"D", # TODO: missing documentation
"D203", # CONFIG: incompatible with D211
"D212", # CONFIG: incompatible with D213
"E501", # WONTFIX: we accept long strings (rest is formatted by ruff)
"EM101", # TODO: Exception must not use a string literal
"FBT002", # TODO: Boolean default positional argument in function definition
"FBT003", # TODO: Boolean positional value in function call
'ISC001', # CONFIG: formatter
"N", # TODO: wrong naming conventions
"PLR2004", # TODO: Magic value used in comparison
"PTH", # TODO: not using pathlib
"S104", # CONFIG: Possible binding to all interfaces
"S105", # CONFIG: Possible hardcoded password assigned
"S106", # CONFIG: Possible hardcoded password assigned
"S603", # CONFIG: subprocess is being used
"S607", # CONFIG: subprocess executes system tools
"SLF001", # TODO: Private member accessed
"T201", # CONFIG: print is used
"TRY003" # TODO: Avoid specifying long messages outside the exception class
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"example-*/**settings.py" = ["ERA001"]
"example-*/manage.py" = ["INP001"]
"example-*/setup.py" = ["INP001"]
"example-django/app/migrations/*.py" = ["RUF012"]
"scripts/check-backends.py" = ["INP001"]
[tool.rumdl]
disable = [
# We do not enforce heading
"first-line-heading",
# Avoid length limit checks
"line-length"
]
[tool.tomlsort]
ignore_case = true
sort_inline_arrays = true
sort_inline_tables = true
sort_table_keys = true
spaces_before_inline_comment = 2