-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (79 loc) · 2.69 KB
/
pyproject.toml
File metadata and controls
85 lines (79 loc) · 2.69 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
[project]
name = "openhexa-templates-ds"
version = "0.1.0"
description = "SNT pipelines maintained by Bluesquare Data Services team"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"openhexa.sdk",
]
[tool.ruff]
line-length = 110
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 100
[tool.ruff.lint]
preview = true
select = [
"F", # Pyflakes
"E", # pycodestyle
"I", # isort
"D", # pydocstyle
"UP", # pyupgrade
"ANN", # flake8-annotations
"B", # bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"FA", # flake8-future-annotations
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"NPY", # NumPy rules
"PD", # pandas rules
"N", # pep8-naming
"DOC", # pydoclint
"PLC", # pylint convention
"PLE", # pylint error
"PLW", # pylint warning
"RUF", # ruff specific rules
]
ignore = [
"I001", # Alphabetic order of imports
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D401", # First line should be in imperative mood
"D413", # Missing blank line after last section
"D420", # Order of the docstring sections
"D203", # 1 blank line required before class docstring
"SIM108", # Use ternary operators
"SIM102", # Use a single if statement instead of nested if statements
"SIM114", # Combine `if` branches
"DOC501", # Raised exception {id} missing from docstring
"DOC502", # Raised exception is not explicitly raised: {id}
"RUF022", # `__all__` is not sorted
"RUF005", # Consider expression instead of concatenation
"PD901", # Avoid using the generic variable name df for dataframes
"PLR0904", # Too many public methods ({methods} > {max_methods})
"PLR0911", # Too many return statements ({returns} > {max_returns})
"PLR0912", # Too many branches ({branches} > {max_branches})
"PLR0913", # Too many arguments ({arguments} > {max_arguments})
"PLR0914", # Too many local variables ({variables} > {max_variables})
"PLR0915", # Too many statements ({statements} > {max_statements})
"PLR0916", # Too many Boolean expressions ({expressions} > {max_expressions})
"PLR1702", # Too many nested blocks ({blocks} > {max_blocks}),
"COM812", # Missing trailing comma
]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
mypy-init-return = true
suppress-dummy-args = true
suppress-none-returning = true
[dependency-groups]
dev = [
"nbdime>=4.0.4",
]