Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (95 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (95 loc) · 2.47 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[project]
requires-python = ">=3.10,<3.13" # in order to support numpy<2.0.0
dependencies = [
"requests>=2.18.4",
"types-requests>=2.31.0.5",
"numpy>=1.21.0,<2.0.0",
]
# these will not be included in build distributions
[dependency-groups]
dev = [
## dev dependencies
"black~=26.10",
"isort~=7.0",
"mypy==1.13.0",
## I would like to enable these in the future
"bandit>=1.9.4", # code is currently invalid for bandit
"ruff>=0.15.6", # code is currently invalid for ruff
"pydoclint>=0.8.3", # code is currently invalid for pydoclint
]
[tool.isort]
multi_line_output = 3
lines_after_imports = 2
skip = ["lib", "out", ".venv"]
profile = "black"
exclude = ["lib", "out", ".venv", "bk_client", "bk_proxor"]
[tool.black]
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
/(\.git|\.venv|lib|out|client|bk_client|bk_proxor)/
'''
[tool.ruff]
target-version = "py310"
line-length = 120
include = ["pyproject.toml",
"**/*.py",
"*.py"
]
exclude = [
"lib",
"out",
"addon_updater.py",
"addon_updater_ops.py",
"_debug/**",
"_bck/**",
"*.tmp",
"__pycache__/**",
".venv/**",
"*.pyi",
"sentry_sdk",
"bk_client",
"bk_proxor",
]
ignore = [
"E501", # Line too long
]
[tool.ruff.format]
line-ending = "auto"
[tool.ruff.lint]
select = ["F", "E", "W", "C90", "I", "N", "D", "UP", "S1", "S2", "S3", "S5", "BLE", "FBT",
"B", "A", "C4", "COM", "DTZ", "T10", "FA", "ISC", "ICN", "LOG", "G", "INP", "PIE", "T20", "Q", "RSE", "RET", "SLF",
"SLOT", "SIM", "TID",
"TC001", "TC004", "TC005", "TC010",
"INT", "ARG", "FIX", "ERA", "PL", "TRY", "FLY", "PERF", "RUF"
]
ignore = [
"D105", # https://docs.astral.sh/ruff/rules/undocumented-magic-method/
"D107", # https://docs.astral.sh/ruff/rules/undocumented-public-init/
"PLC0415", # https://docs.astral.sh/ruff/rules/import-outside-top-level/
"RET504", # https://docs.astral.sh/ruff/rules/unnecessary-assign/
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
exclude = ['test_*', 'tests', 'out', 'lib']
disallow_untyped_globals = false # remove this in the future
[[tool.mypy.overrides]]
module = [
"bpy",
"bpy.*",
"bpy_extras",
"mathutils",
"addonutils",
"blf",
"gpu",
"gpu_extras.*"
]
ignore_missing_imports = true # Ignore missing type hints for bpy
[tool.pydoclint]
style = "google"
arg-type-hints-in-docstring = false
check-return-types = false
ignore-private-args = true
ignore-underscore-args = true
exclude = "\\.venv|\\sentry_sdk"