|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling>=1.27.0"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "python-template" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "A modern Python template for robotics and ML projects." |
| 9 | +readme = "README.md" |
| 10 | +requires-python = ">=3.11" |
| 11 | +license = { text = "MIT" } |
| 12 | +authors = [ |
| 13 | + { name = "Yujeong" }, |
| 14 | +] |
| 15 | +keywords = ["python", "template", "ml", "robotics", "uv", "github-actions"] |
| 16 | +classifiers = [ |
| 17 | + "Development Status :: 3 - Alpha", |
| 18 | + "Intended Audience :: Developers", |
| 19 | + "License :: OSI Approved :: MIT License", |
| 20 | + "Programming Language :: Python :: 3", |
| 21 | + "Programming Language :: Python :: 3.11", |
| 22 | + "Programming Language :: Python :: 3.12", |
| 23 | + "Programming Language :: Python :: 3.13", |
| 24 | + "Topic :: Software Development :: Build Tools", |
| 25 | +] |
| 26 | +dependencies = [] |
| 27 | + |
| 28 | +[project.optional-dependencies] |
| 29 | +ml = [ |
| 30 | + "numpy>=2.3.0", |
| 31 | + "pandas>=2.3.0", |
| 32 | + "scikit-learn>=1.7.0", |
| 33 | +] |
| 34 | +robotics = [ |
| 35 | + "numpy>=2.3.0", |
| 36 | + "pyyaml>=6.0.2", |
| 37 | + "typing-extensions>=4.14.0; python_version < '3.13'", |
| 38 | +] |
| 39 | +viz = [ |
| 40 | + "matplotlib>=3.10.0", |
| 41 | + "rich>=14.0.0", |
| 42 | +] |
| 43 | + |
| 44 | +[project.urls] |
| 45 | +Homepage = "https://github.com/techhouse-looper/python-template" |
| 46 | +Repository = "https://github.com/techhouse-looper/python-template" |
| 47 | +Issues = "https://github.com/techhouse-looper/python-template/issues" |
| 48 | + |
| 49 | +[dependency-groups] |
| 50 | +dev = [ |
| 51 | + "build>=1.3.0", |
| 52 | + "pip-audit>=2.9.0", |
| 53 | + "pre-commit>=4.3.0", |
| 54 | + "pyright>=1.1.405", |
| 55 | + "pytest>=8.4.0", |
| 56 | + "pytest-cov>=7.0.0", |
| 57 | + "ruff>=0.12.0", |
| 58 | +] |
| 59 | + |
| 60 | +[tool.hatch.version] |
| 61 | +path = "src/python_template/__about__.py" |
| 62 | + |
| 63 | +[tool.hatch.build.targets.wheel] |
| 64 | +packages = ["src/python_template"] |
| 65 | + |
| 66 | +[tool.pytest.ini_options] |
| 67 | +addopts = "-ra --strict-config --strict-markers" |
| 68 | +testpaths = ["tests"] |
| 69 | + |
| 70 | +[tool.ruff] |
| 71 | +line-length = 100 |
| 72 | +target-version = "py311" |
| 73 | + |
| 74 | +[tool.ruff.lint] |
| 75 | +select = ["E", "F", "I", "B", "UP", "SIM", "C4", "PIE"] |
| 76 | + |
| 77 | +[tool.ruff.format] |
| 78 | +docstring-code-format = true |
| 79 | + |
| 80 | +[tool.pyright] |
| 81 | +pythonVersion = "3.11" |
| 82 | +include = ["src", "tests", "examples"] |
| 83 | +typeCheckingMode = "strict" |
| 84 | +venvPath = "." |
| 85 | +venv = ".venv" |
| 86 | + |
| 87 | +[tool.coverage.run] |
| 88 | +source = ["python_template"] |
| 89 | +branch = true |
| 90 | + |
| 91 | +[tool.coverage.report] |
| 92 | +show_missing = true |
| 93 | +skip_covered = true |
0 commit comments