From 230a6dc7bfe0ee4c6de9c26f1d693daa512949f4 Mon Sep 17 00:00:00 2001 From: tognee Date: Tue, 24 Dec 2024 15:18:13 +0100 Subject: [PATCH] feat: added ruff for linting + requirements for local development --- .gitignore | 2 ++ dev-requirements.txt | 16 ++++++++++++++++ ruff.toml | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 dev-requirements.txt create mode 100644 ruff.toml diff --git a/.gitignore b/.gitignore index 7135c1b3..7a1393de 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ externals/ .vagrant api/docs/api-docs.html *.code-workspace +.vscode +.venv diff --git a/dev-requirements.txt b/dev-requirements.txt new file mode 100644 index 00000000..dce1918f --- /dev/null +++ b/dev-requirements.txt @@ -0,0 +1,16 @@ +rtyaml +email_validator>=1.0.0 +exclusiveprocess +flask +dnspython +python-dateutil +expiringdict +gunicorn +qrcode[pil] +pyotp +idna>=2.0.0 +cryptography==37.0.2 +psutil +postfix-mta-sts-resolver +b2sdk +boto3 diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 00000000..5e630384 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,4 @@ +exclude = ["tools/mail.py", "tools/readable_bash.py"] + +[lint] +ignore = ["E701", "E401", "E722", "E741", "E402"]