From 4de8e5d51ccd40999935a45cc2abcbd5875d7417 Mon Sep 17 00:00:00 2001 From: Wyatt Stanke Date: Sun, 18 Feb 2024 11:04:09 -0500 Subject: [PATCH] Moving the goalposts --- .flake8 | 10 ++++++++++ ruff.toml | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .flake8 create mode 100644 ruff.toml diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..492fc809 --- /dev/null +++ b/.flake8 @@ -0,0 +1,10 @@ +[flake8] +max-line-length = 127 +per-file-ignores = + # Most of this is just long strings + ./swarms/prompts/**.py: E501 W293 W291 + ./swarms/__init__.py: F401 +exclude = + ./playground + ./tests + ./scripts \ No newline at end of file diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 00000000..6bf1ec4c --- /dev/null +++ b/ruff.toml @@ -0,0 +1,10 @@ +exclude = ["./playground", "./tests", "./scripts"] +line-length = 127 + +[lint] +ignore = [] +select = ["E", "F", "W"] + +[lint.per-file-ignores] +"./swarms/prompts/**.py" = ["E501", "W291", "W293"] +"./swarms/__init__.py" = ["F401"]