generated from python-discord/code-jam-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (87 loc) · 1.84 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
[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 = ["article_overload"]
[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",
# Assert error.
"S101",
# Copyright warning message
"CPY001",
# Pytest decorator conflictd with formatter
"PT023",
"PT001",
# Recommended ignores
"COM812",
"ISC001",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = [
# Undocumented public function (not needed for unit tests)
"D103",
# 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",
# Assert error.
"S101",
# Line too long warning in unit tests
"E501",
"SLF001",
]