summaryrefslogtreecommitdiffstats
path: root/ruff.toml
diff options
context:
space:
mode:
Diffstat (limited to 'ruff.toml')
-rw-r--r--ruff.toml30
1 files changed, 17 insertions, 13 deletions
diff --git a/ruff.toml b/ruff.toml
index 9268c3c8221..385bdf9232c 100644
--- a/ruff.toml
+++ b/ruff.toml
@@ -1,8 +1,16 @@
-line-length = 122
-target-version = "py38"
# This is an introductory addition of ruff. We should look to adding:
-# D: pydocstyle, PD: pandas-vet
+# PD: pandas-vet
# All options here: https://github.com/charliermarsh/ruff#supported-rules
+
+exclude = [
+ "^openbb_platform/platform/core/openbb_core/app/static/package/.*",
+ "^openbb_platform/openbb/package/.*",
+]
+
+line-length = 122
+target-version = "py38"
+
+[lint]
select = [
"E",
"W",
@@ -20,31 +28,27 @@ select = [
]
# These ignores should be seen as temporary solutions to problems that will NEED fixed
ignore = ["PLR2004", "PLR0913", "PLR0915"]
-exclude = [
- "^openbb_platform/platform/core/openbb_core/app/static/package/.*",
- "^openbb_platform/openbb/package/.*",
-]
-[per-file-ignores]
+[lint.per-file-ignores]
"**/tests/*" = ["S101"]
"*init*.py" = ["F401"]
-"website/*" = ["T201"]
+"website/*" = ["T201", "PLR0915"]
"*integration/*" = ["S101"]
-[isort]
+[lint.isort]
combine-as-imports = true
force-wrap-aliases = true
-[pylint]
+[lint.pylint]
max-args = 8
max-branches = 25
max-returns = 9
max-statements = 30
-[pydocstyle]
+[lint.pydocstyle]
convention = "numpy"
-[flake8-import-conventions.aliases]
+[lint.flake8-import-conventions.aliases]
"matplotlib.pyplot" = "plt"
numpy = "np"
pandas = "pd"