-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
105 lines (93 loc) · 2.29 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[project]
name = "empack"
description = "empack emscripten+boa"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Thorsten Beier", email = "[email protected]" },
]
keywords = [
"empack",
]
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"platformdirs",
"networkx",
"pyyaml",
"requests",
"typer",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pre-commit",
"black",
"ruff==0.0.262",
]
[tool.hatch.version]
path = "empack/version.py"
[project.scripts]
empack = "empack.cli.main:app"
[project.urls]
Homepage = "https://github.com/emscripten-forge/empack"
[tool.hatch.build.targets.wheel.shared-data]
config = "share/empack"
[tool.hatch.build.targets.sdist]
exclude = [
".github",
]
[tool.black]
line-length = 100
target-version = ["py38"]
[tool.ruff]
target-version = "py38"
exclude = [
"*/tests/*",
"docs/source/tools/*",
]
line-length = 100
select = [
"A", "B", "C", "DTZ", "E", "EM", "F", "FBT", "I", "ICN", "ISC", "N",
"PLC", "PLE", "PLR", "PLW", "Q", "RUF", "S", "SIM", "T", "TID", "UP",
"W", "YTT",
]
ignore = [
"D100",
"D104",
# Q000 Single quotes found but double quotes preferred
"Q000",
# FBT001 Boolean positional arg in function definition
"FBT001", "FBT002", "FBT003",
# C408 Unnecessary `dict` call (rewrite as a literal)
"C408", "C416",
# allow for using print()
"T201",
# PLR0913 Too many arguments to function call
"PLR0913",
# extended flake8 ignore
"D104", "D100", "EM101"
]
[tool.ruff.per-file-ignores]
# S101 Use of `assert` detected
# F841 Local variable `foo` is assigned to but never used
# PLR2004 Magic value used in comparison
"tests/*" = ["S101", "F841", "PLR2004"]
# ISC001 Implicitly concatenated string literals on one line
"empack/cli/repodata.py" = ["ISC001"]
# E501 Line too long
# C901 `create_environment` is too complex
"empack/micromamba_wrapper.py" = ["E501", "C901"]
[tool.ruff.isort]
known-third-party = ["pybind11", "conda", "conda_env"]