Add ruff isort rules with custom group for our own external packages
This commit is contained in:
parent
99afe89c10
commit
98cdb276d8
1 changed files with 15 additions and 2 deletions
|
|
@ -124,7 +124,8 @@ select = [
|
|||
"D", # Docstring checks
|
||||
"ERA001", # Commented out code!
|
||||
"S101",# No asserts!
|
||||
"ANN",
|
||||
"ANN", # Type annotations
|
||||
"I", # Import sorting
|
||||
]
|
||||
|
||||
ignore = [
|
||||
|
|
@ -163,4 +164,16 @@ property-decorators = ["labthings_fastapi.thing_property", "labthings_fastapi.th
|
|||
|
||||
[tool.ruff.lint.pylint]
|
||||
max-args = 7
|
||||
max-positional-args = 5
|
||||
max-positional-args = 5
|
||||
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
section-order = ["future", "standard-library", "third-party", "ours", "first-party", "local-folder"]
|
||||
|
||||
[tool.ruff.lint.isort.sections]
|
||||
ours = [
|
||||
"camera_stage_mapping",
|
||||
"openflexure_stitching",
|
||||
"sangaboard",
|
||||
"labthings_fastapi",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue