--- pyproject.toml 1970-01-01 08:00:00.000000000 +0800 +++ pyproject.toml 2024-01-25 18:44:52.000000000 +0800 @@ -1,43 +1,31 @@ -[project] -name = "editor" -version = "1.7.0" -description = "🖋 Open the default text editor 🖋" -authors = [{ name = "Tom Ritchford", email = "tom@swirly.com" }] -requires-python = ">=3.10" -readme = "README.md" -license = "MIT" -classifiers = ["Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14"] -dependencies = [ - "runs", - "xmod", -] - -[project.urls] -Homepage = "https://github.com/rec/editor" -Repository = "https://github.com/rec/editor" -Documentation = "https://rec.github.io/editor" - [tool.doks] auto = true -[dependency-groups] -dev = [ - "coverage", - "pytest", - "pyupgrade>=3.21.2", - "ruff", - "tdir", - "ty>=0.0.14", -] - -[tool.uv] - -[tool.uv.build-backend] -module-root = "" - -[build-system] -requires = ["uv_build>=0.9.0,<0.10.0"] -build-backend = "uv_build" +[tool.poetry] +name = "editor" +version = "1.7.0" +description = "🖋 Open the default text editor 🖋" +authors = ["Tom Ritchford "] +license = "MIT" +readme = "README.md" +repository = "https://github.com/rec/editor" +homepage = "https://github.com/rec/editor" +documentation = "https://rec.github.io/editor" + +[tool.poetry.dependencies] +python = ">=3.10" +runs = "*" +xmod = "*" + +[tool.poetry.group.dev.dependencies] +black = "*" +coverage = "*" +flake8 = "*" +isort = "*" +mypy = "*" +pytest = "*" +ruff = "*" +tdir = "*" [tool.coverage.run] branch = true @@ -46,7 +34,12 @@ [tool.coverage.report] fail_under = 95 skip_covered = true -exclude_lines = ["pragma: no cover", "if False:", "if __name__ == .__main__.:", "raise NotImplementedError"] +exclude_lines = [ + "pragma: no cover", + "if False:", + "if __name__ == .__main__.:", + "raise NotImplementedError" +] [tool.ruff] line-length = 88 @@ -54,3 +47,8 @@ [tool.ruff.format] quote-style = "single" +[tool.mypy] +strict = true +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api"