generated from python-discord/code-jam-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
51 lines (49 loc) · 1.19 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
[tool.ruff]
# Increase the line length. This breaks PEP8 but it is way easier to work with.
# The original reason for this limit was a standard vim terminal is only 79 characters,
# but this doesn't really apply anymore.
line-length = 119
# Target Python 3.12. If you decide to use a different version of Python
# you will need to update this value.
target-version = "py312"
# Automatically fix auto-fixable issues.
fix = true
# The directory containing the source code. If you choose a different project layout
# you will need to update this value.
src = ["src"]
[tool.ruff.lint]
# Enable all linting rules.
select = ["ALL"]
# Ignore some of the most obnoxious linting errors.
ignore = [
# Missing docstrings.
"D100",
"D104",
"D105",
"D106",
"D107",
# Docstring whitespace.
"D203",
"D213",
# Docstring punctuation.
"D415",
# Docstring quotes.
"D301",
# Builtins.
"A",
# Print statements.
"T20",
# TODOs.
"TD002",
"TD003",
"FIX",
# Annotations.
"ANN101",
"ANN102",
# Too many function arguments.
"PLR0913",
"C901",
]
# Ignore assert error for tests
[tool.ruff.lint.per-file-ignores]
"bot/tests/*.py" = ["S101"]