-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
86 lines (76 loc) · 1.8 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pyodide-lock"
authors = [
{ name="Pyodide developers" },
]
description = "Tooling to manage the `pyodide-lock.json` file"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
# compatible with pyodide-build and the as-shipped wheel in the pyodide distribution
"pydantic>=2",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dynamic = ["version"]
[project.optional-dependencies]
cli = [
"typer",
]
wheel = [
"pkginfo",
"packaging",
]
dev = [
"pytest",
"pytest-cov",
"build",
"typer",
# from wheel
"pkginfo",
"packaging",
"wheel"
]
[project.urls]
"Homepage" = "https://github.com/pyodide/pyodide-lock"
"Bug Tracker" = "https://github.com/pyodide/pyodide-lock/issues"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.hatch.version]
source = "vcs"
[tool.mypy]
python_version = "3.10"
mypy_path = ["pyodide_lock", "tests"]
show_error_codes = true
warn_unreachable = true
plugins = ["pydantic.mypy"]
check_untyped_defs = true
ignore_missing_imports = true
[tool.ruff]
select = [
"B904", # bugbear (Within an except clause, raise exceptions with raise ... from err)
"B905", # bugbear (zip() without an explicit strict= parameter set.)
"C9", # mccabe complexity
"E", # pycodestyles
"W", # pycodestyles
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"PLC", # pylint conventions
"PLE", # pylint errors
"UP", # pyupgrade
]
[tool.pytest.ini_options]
addopts = '''
--doctest-modules'''
[project.entry-points."pyodide.cli"]
lockfile = "pyodide_lock.cli:main"