-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
144 lines (132 loc) · 2.87 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools==71.1.0",
"setuptools-scm==8.1.0",
]
[project]
name = "wanot"
description = "Wait and notify conveniently"
readme = "README.md"
keywords = [
"copier-template",
"full-development-lifecycle",
"project-template",
"serious-scaffold",
]
license = { text = "MIT" }
authors = [
{ email = "afe.young@gmail.com", name = "Xiao Yang" },
{ email = "zplongr@hotmail.com", name = "zhupr" },
{ email = "v-gazh@hotmail.com", name = "gazh" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = [
"version",
]
dependencies = [
"pydantic-settings",
"typer[all]",
"loguru",
"notifiers",
"fire",
"psutil",
"iterfzf",
"PyYAML",
"watchdog",
]
urls.documentation = "https://you-n-g.github.io/wan"
urls.issue = "https://github.com/you-n-g/wan/issues"
urls.repository = "https://github.com/you-n-g/wan"
# scripts.wan-cli = "wan.cli:app"
scripts.wan = "wan:run"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
doc = [
"Sphinx",
"autodoc-pydantic",
"coverage",
"furo",
"mypy[reports]",
"myst-parser",
"pytest",
"sphinx-click",
"sphinx-design",
]
lint = [
"mypy",
]
test = [
"coverage",
"pytest",
]
[tool.setuptools_scm]
fallback_version = "0.0.0"
[tool.ruff]
src = [
"src",
]
fix = true
lint.select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"RUF100", # Unused noqa directive
"S", # flake8-bandit
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warning
]
lint.per-file-ignores."tests/*" = [
"S101",
]
lint.pydocstyle.convention = "google"
[tool.codespell]
write-changes = true
check-filenames = true
[tool.pyproject-fmt]
indent = 4
keep_full_version = true
max_supported_python = "3.12"
[tool.pytest.ini_options]
addopts = "-l -s --durations=0"
log_cli = true
log_cli_level = "info"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_format = "%(asctime)s %(levelname)s %(message)s"
minversion = "6.0"
[tool.coverage.report]
fail_under = 100
[tool.coverage.run]
source = [
"wan",
]
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
enable_error_code = [
"ignore-without-code",
]
exclude = [
"build",
"doc",
]
no_implicit_optional = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true