-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (60 loc) · 1.99 KB
/
Copy pathpyproject.toml
File metadata and controls
62 lines (60 loc) · 1.99 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
[tool.black]
line-length = 88
target-version = ["py310", "py311", "py312", "py313"]
skip-magic-trailing-comma = true
force-exclude = '''
/(
\.git
| \.github
| \.ruff_cache
| /cmake
| /docs
| /include
| /plugins
| /src
| /test
| /unittest
)/
'''
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 88
target-version = "py310"
lint.select = [
"D", # pydocstyle - checks docstrings are correctly formatted
"E", # pycodestyle - checks PEP8 compliance
"F", # Pyflakes - detects syntax errors, unused imports and variables and function arguments
"I", # isort - import sorting
"UP", # pyupgrade - modern python
"RUF", # ruff-specific rules
"ANN", # flake8-annotations - enforces type annotations and correctly typed variables in function calls
"S", # bandit - security checks
"N", # pep8-naming - naming convention enforcement
"ERA", # eradicate - removes commented out code
"B", # flake8-bugbear - checks for likely bugs, design problems, performance issues, reliability traps, API misuse, and bad practices
"C4", # flake8-comprehensions - clearer comprehensions
"A", # flake8-builtins - detects shadowing of built-in names in code
"RET", # flake8-return - checks return statement issues
"T20", # flake8-print - raises issues with print statements in production code
"ISC", # flake8-implicit-str-concat - raises issues with implicit string concatenation
"G", # flake8-logging-format - raises issues with logging that are not % replaced
"TRY", # tryceratops - automatically detects and fixes type issues
"T" # check for TODOs
]
exclude = [
"build",
"include",
"src",
"unittest",
"plugins",
"schema",
"cmake"
]
lint.ignore = [
"D205", # D205: Missing docstring in docstring sections
"D100", # D100: Missing docstring in public module
"D104" # D104: Missing docstring in public package
]
src = ["python", "scripts"]
lint.pydocstyle.convention = "google"