-
Notifications
You must be signed in to change notification settings - Fork 335
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 1.89 KB
/
pyproject.toml
File metadata and controls
77 lines (68 loc) · 1.89 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
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 95
target-version = "py310"
# Exclude directories
exclude = [
".git",
"__pycache__",
"docs/source/conf.py",
"build",
"dist",
"tests",
"test*.py",
]
[tool.ruff.lint]
# Enable the rule sets you want
select = [
"E", # pycodestyle errors (flake8)
"W", # pycodestyle warnings (flake8)
"F", # pyflakes (flake8)
"I", # isort
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PL", # pylint (subset)
]
# Ignore specific rules to match your current config
ignore = [
"E401", # Multiple imports on one line (from flake8 config)
"E501", # Line too long (handled by formatter)
#"W503", # Line break before binary operator (from flake8 config)
"D212", # Multi-line docstring summary should start at the first line (from pydocstyle)
"D203", # 1 blank line required before class docstring (from pydocstyle)
"D417", # Missing argument descriptions (from pydocstyle)
"PLR0913", # Too many arguments
"PLR2004", # Magic value comparison
"PLW2901", # Loop variable overwritten
]
[tool.ruff.lint.per-file-ignores]
# Ignore certain rules in test files
"tests/**" = ["D", "PL"]
"test_*.py" = ["D", "PL"]
[tool.ruff.lint.pydocstyle]
# Use numpy convention (from your config)
convention = "numpy"
[tool.ruff.lint.isort]
# Match your isort config
# profile = "black"
known-first-party = ["msticpy"]
[tool.ruff.lint.pylint]
# Match your pylint config
max-args = 10
max-branches = 15
[tool.ruff.format]
# Use double quotes (Black style)
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Like Black, respect magic trailing comma
skip-magic-trailing-comma = false
# Like Black, automatically detect line endings
line-ending = "auto"