From 41590be745a373fae80c3bc391b3aca0bcd4204b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Sat, 13 Apr 2024 12:52:37 +0200 Subject: [PATCH] added pyproject.toml and rules for linting and formatting --- .gitignore | 1 + pyproject.toml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index afed117..6119f53 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,4 @@ cython_debug/ #.idea/ test/ +.vscode/ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b1cfa4b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +[project] +name = "Shake&Tune" +description = "Klipper streamlined input shaper workflow and calibration tools" +readme = "README.md" +requires-python = ">= 3.9" +authors = [ + {name = "Félix Boisselier", email = "felix@fboisselier.fr"} +] +keywords = ["klipper", "input shaper", "calibration", "3d printer"] +license = {file = "LICENSE"} + +[project.urls] +Repository = "https://github.com/Frix-x/klippain-shaketune" +Documentation = "https://github.com/Frix-x/klippain-shaketune/tree/main/docs" +Issues = "https://github.com/Frix-x/klippain-shaketune/issues" +Changelog = "https://github.com/Frix-x/klippain-shaketune/releases" + +[tool.ruff] +line-length = 120 # We all have modern screens now and I believe this should be brought in line with current technology +indent-width = 4 +target-version = "py310" + +[tool.ruff.lint] +select = ["E4", "E7", "E9", "F", "B"] +unfixable = ["B"] + +[tool.ruff.format] +quote-style = "single" +skip-magic-trailing-comma = false