-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (82 loc) · 1.94 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (82 loc) · 1.94 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
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
[project]
name = "cumulus"
version = "21.3.1"
requires-python = "~=3.12.0"
[dependency-groups]
lint = [
"pre-commit>=4.5.1",
"ruff~=0.14.0",
]
# Repo wide linting rules.
#
# Ruff does not merge configurations by default, so adding a pyproject.toml file
# elsewhere in this repo will take precedence over this configuration unless the
# `extend` option is set explicitly:
#
# https://docs.astral.sh/ruff/settings/#extend
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
# pycodestyle errors, ignore lints that are covered by the ruff formatter
"E4", "E7", "E9",
# line-too-long - the formatter doesn't always fix these
"E501",
# Pyflakes
"F",
# isort
"I",
# pylint
"PL",
# pyupgrade
"UP",
# bandit
"S",
# pep8-naming
"N",
# pydoclint
"DOC",
# pydocstyle
"D",
]
ignore = [
# undocumented-magic-method
"D105",
# blank-line-after-function
"D202",
# incorrect-blank-line-before-class - incompatible with D211
"D203",
# missing-blank-line-after-summary - false positives
"D205",
# multi-line-summary-second-line - incompatible with D212
"D213",
# error-suffix-on-exception-name
"N818",
# assert
"S101",
# start-process-with-partial-path
"S607",
# logging-too-many-args - false positives
"PLE1205",
]
[tool.ruff.lint.per-file-ignores]
# Ignore missing docstring rules for non-exported python code
"**/example/**.py" = ["D1"]
"**/migrations/**.py" = ["D1", "E501"]
"**/migrations-archive/**.py" = ["D1", "E501"]
"**/tests/**.py" = ["D1", "PLR0913"]
"scripts/**.py" = ["D1"]
"__init__.py" = ["D104"]
# Repo wide type checking rules
# https://mypy.readthedocs.io/en/latest/config_file.html
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
follow_untyped_imports = true
local_partial_types = true
strict_bytes = true
strict_equality = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
[tool.uv.workspace]
exclude = ["tasks/*", "examples/*"]