From 677d54a8b11b6da0a03b52ba4b10ed726b5d8e2c Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 1 Aug 2025 11:34:19 +0200 Subject: [PATCH] fix: replace ruff config with full pyproject template --- pyproject.toml | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ ruff.toml | 42 ---------------------------- 2 files changed, 76 insertions(+), 42 deletions(-) create mode 100644 pyproject.toml delete mode 100644 ruff.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..60a3053 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,76 @@ +[project] +name = "" +version = "0.0.0" +dependencies = [ + "" +] +authors = [ + { name="", email="" }, +] +description = "" +readme = "README.md" +requires-python = ">=3.13" + +[project.urls] +Homepage = "" + +[project.optional-dependencies] +dev = [ + "setuptools>=75.8", + "build" +] + +[project.scripts] +foo = "proj_name.module:foo" + +[build-system] +requires = ["setuptools>=75.8"] +build-backend = "setuptools.build_meta" + +[tool.ruff] +line-length = 80 +preview = true + +[tool.ruff.lint] +select = [ + "YTT", + "ANN", + "ASYNC", + "B", + "A", + "COM", + "C4", + "DTZ", + "T10", + "FIX", + "FA", + "ISC", + "PIE", + "PYI", + "PT", + "RET", + "SIM", + "TC", + "I", + "C90", + "DOC", + "D", + "F", + "PL", + "UP", + "RUF" +] +ignore = [ + "A001", + "D101", + "D202", + "D203", + "D212", + "D301", + "D413", + "TC006", + "COM812" +] + +[tool.pyrefly] +use_untyped_imports = true diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index 1af46e2..0000000 --- a/ruff.toml +++ /dev/null @@ -1,42 +0,0 @@ -line-length = 80 -target-version = "py313" -preview = true - -[lint] -select = [ - "YTT", - "ANN", - "ASYNC", - "B", - "A", - "COM", - "C4", - "DTZ", - "T10", - "FIX", - "FA", - "ISC", - "PIE", - "PYI", - "PT", - "RET", - "SIM", - "TC", - "I", - "C90", - "DOC", - "D", - "F", - "PL", - "UP", - "RUF" -] -ignore = [ - "D203", - "D301", - "D101", - "D202", - "TC006", - "COM812" -] -