-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (81 loc) · 2.39 KB
/
pyproject.toml
File metadata and controls
104 lines (81 loc) · 2.39 KB
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
[build-system]
requires = ["hatchling", "hatch_vcs"]
build-backend = "hatchling.build"
[project]
name = "pytask_stata"
description = "Execute do-files with Stata and pytask."
authors = [{ name = "Tobias Raabe", email = "raabe@posteo.de" }]
license = { text = "MIT" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
requires-python = ">=3.10"
dependencies = ["click>=8.1.8,!=8.2.0", "pytask>=0.5.2"]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/pytask-dev/pytask-stata"
Documentation = "https://github.com/pytask-dev/pytask-stata"
Github = "https://github.com/pytask-dev/pytask-stata"
Tracker = "https://github.com/pytask-dev/pytask-stata/issues"
Changelog = "https://github.com/pytask-dev/pytask-stata/blob/main/CHANGES.md"
[project.entry-points]
pytask = { pytask_stata = "pytask_stata.plugin" }
[dependency-groups]
test = [
"pytest>=8.4.0",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.6.1",
]
typing = ["pytask-parallel>=0.5.1", "ty>=0.0.8"]
[tool.hatch.build.hooks.vcs]
version-file = "src/pytask_stata/_version.py"
[tool.hatch.build.targets.sdist]
exclude = ["tests"]
only-packages = true
[tool.hatch.build.targets.wheel]
exclude = ["tests"]
only-packages = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
fix = true
unsafe-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401", # flake8-annotate typing.Any
"COM812", # Comply with ruff-format.
"ISC001", # Comply with ruff-format.
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "ANN", "S101"]
"__init__.py" = ["D104"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ty.rules]
unused-ignore-comment = "error"
[tool.ty.terminal]
error-on-warning = true
[[tool.ty.overrides]]
include = ["src/**/_version.py"]
[tool.ty.overrides.rules]
invalid-type-form = "ignore"
[[tool.ty.overrides]]
include = ["src/**/__init__.py"]
[tool.ty.overrides.rules]
unused-ignore-comment = "ignore"
[tool.pytest.ini_options]
# Do not add src since it messes with the loading of pytask-parallel as a plugin.
testpaths = ["tests"]
norecursedirs = [".idea", ".tox"]