-
Notifications
You must be signed in to change notification settings - Fork 168
/
Copy pathpyproject.toml
85 lines (76 loc) · 2.04 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
[build-system]
requires = ["setuptools>=70.1", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "constructor"
description = "create installer from conda packages"
readme = "README.md"
license = {text = "BSD-3-Clause"}
requires-python = ">=3.8"
dynamic = [
"version",
]
dependencies = [
"conda >=4.6",
"ruamel.yaml >=0.11.14,<0.19",
"pillow >=3.1 ; platform_system=='Windows' or platform_system=='Darwin'",
"jinja2",
]
[project.scripts]
constructor = "constructor.main:main"
[project.urls]
repository = "https://github.com/conda/constructor"
[tool.setuptools_scm]
write_to = "constructor/_version.py"
[tool.setuptools.packages.find]
where = ["."]
include = ["constructor*"]
namespaces = true
[tool.setuptools.package-data]
constructor = [
"header.sh",
"nsis/*",
"osx/*",
"ttf/*",
]
[tool.ruff]
line-length = 100
target-version = "py39"
exclude = [
"constructor/nsis/*.py",
]
[tool.ruff.lint]
extend-per-file-ignores = {"docs/*" = ["D1"], "tests/*" = ["D1"]}
flake8-type-checking = {exempt-modules = [], strict = true}
ignore = [
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"E402", # module level import not at top of file
"E501", # line too long
"E722", # do not use bare 'except'
"E731", # do not assign a lambda expression, use a def
"UP031", # do not fix printf-style string formatting
]
pydocstyle = {convention = "pep257"}
# see https://docs.astral.sh/ruff/rules/
select = [
"D1", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"FA", # flake8-future-annotations
"I", # isort
"ISC", # flake8-implicit-str-concat
"RUF100", # Unused noqa directive
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.pytest.ini_options]
markers = [
"examples",
]