diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ce6429b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[build-system] +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" + +[project] +name = "kostky" +dynamic = ["version"] +description = "Textová hra v kostky." +readme = "README.md" +requires-python = ">=3.9" +license = "GPL-3.0-or-later" +license-files = ["LICENSE"] +authors = [{ name = "David Spáčil" }] +keywords = ["hra", "kostky", "cli"] +classifiers = [ + "Programming Language :: Python :: 3", + "Environment :: Console", + "Operating System :: OS Independent", + "Topic :: Games/Entertainment", +] +dependencies = [ + "tabulate", +] + +[project.optional-dependencies] +dev = ["mypy", "ruff", "types-tabulate"] + +[project.urls] +Repository = "https://gitea.spacilovi.eu/david/kostky" + +[project.scripts] +kostky = "kostky.kostky:main" + +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build.targets.wheel] +packages = ["kostky"] + +[tool.mypy] +python_version = "3.9" +strict = true +files = ["kostky"] + +[tool.ruff] +target-version = "py39" +line-length = 100 + +[tool.ruff.lint] +select = ["E", "F", "I", "UP", "B", "SIM"] \ No newline at end of file