Skip to content

Commit 561d858

Browse files
author
Nils Bars
committed
Add pyproject.toml with modern Python packaging
Configure hatchling build system, pytest, pyright, and ruff. Add dev dependencies for testing and linting.
1 parent 8338ecc commit 561d858

2 files changed

Lines changed: 378 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[project]
2+
name = "ref-utils"
3+
version = "0.1.8"
4+
description = "A package containing various utility functions for remote-exercise-framework submission process"
5+
authors = [
6+
{name = "Nils Bars", email = "nils.bars@rub.de"},
7+
{name = "Moritz Schloegel", email = "moritz.schloegel@rub.de"},
8+
]
9+
readme = "README.md"
10+
license = {text = "GPL-3.0"}
11+
requires-python = ">=3.10"
12+
classifiers = [
13+
"Programming Language :: Python :: 3",
14+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
15+
"Operating System :: POSIX :: Linux",
16+
]
17+
dependencies = [
18+
"colorama>=0.4.3",
19+
]
20+
21+
[build-system]
22+
requires = ["hatchling"]
23+
build-backend = "hatchling.build"
24+
25+
[tool.hatch.build.targets.wheel]
26+
packages = ["ref_utils"]
27+
28+
[tool.pytest.ini_options]
29+
testpaths = ["tests"]
30+
pythonpath = ["."]
31+
32+
[tool.pyright]
33+
pythonVersion = "3.10"
34+
typeCheckingMode = "basic"
35+
36+
[tool.ruff]
37+
line-length = 120
38+
target-version = "py310"
39+
40+
[tool.ruff.lint]
41+
select = ["E", "F", "W", "I"]
42+
43+
[dependency-groups]
44+
dev = [
45+
"pytest>=8.0",
46+
"pytest-cov>=4.0",
47+
"ruff>=0.8.0",
48+
"pyright>=1.1.0",
49+
]

0 commit comments

Comments
 (0)