From 7cf81914ec3dc428a18b78cb65108969a741f7dc Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Sun, 6 Sep 2026 00:49:41 -0400 Subject: [PATCH] Adding ruff tool config for the Pico --- pyproject.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..c9a329c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[tool.ruff] +target-version = "py311" +line-length = 100 + +[tool.ruff.lint] +# Select Pyflakes (F) and pycodestyle errors (E) +select = ["E", "F", "W"] + +# Ignore warnings that clash with typical embedded / MicroPython conventions +ignore = [ + "E501", # Line too long (useful for binary tables / long MQTT payloads) +] + +# Tell the linter that these are built-in globals on the Pico +[tool.ruff.lint.flake8-builtins] +builtins-ignorelist = ["machine", "network"]