From 0a961b192d1370e3820bba85d4093e899c72c1d2 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 7 Sep 2026 18:39:25 -0400 Subject: [PATCH] Adding pyproject.toml --- pyproject.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..00834f3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,26 @@ +[project] +name = "pico-time" +version = "0.0.1" +description = "MicroPython show local time on an SSD1306 display." +readme = "README.md" +requires-python = ">=3.9" +authors = [ + { name = "Gregory Ballantine" } +] + +[tool.ruff] +target-version = "py312" +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"]