-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
46 lines (42 loc) · 1.25 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
# Formatters are optional, this configuration attempts to make as many
# tools "just work" in a way compatible with kobo code standards
[tool.black]
# Do not enable `verbose = true` unless Black changes their behavior to respect
# `--quiet` on the command line properly
# verbose = true
line-length = 88
skip-string-normalization = true
[tool.isort]
profile = "black"
line_length = 88 # same as black
known_first_party = "mepp"
no_lines_before = ["LOCALFOLDER"]
[tool.ruff]
line-length = 88
[tool.ruff.format]
quote-style = "single" # Preserve is coming soon to ruff
[tool.ruff.lint]
extend-select = [
"I", # Enable ruff isort
"Q", # Flake quotes
"E", # pycodestyle, some needs `--preview` to be enable
"N", # PEP-8 naming convention
"UP026", # deprecated mock
"UP034", # extraneous-parentheses
"UP039", # Unnecessary parentheses after class definition
"W1", # Indentation warning
"W292", # no newline at end of file
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single" # To prefer single quotes over double quote
multiline-quotes = "double"
docstring-quotes = "double"
[tool.ruff.lint.isort]
known-first-party = ["kobo"]
[tool.pytest.ini_options]
testpaths = [
'mepp',
]
env = [
'DJANGO_SETTINGS_MODULE=mepp.settings.testing',
]