-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (104 loc) · 3.13 KB
/
Copy pathpyproject.toml
File metadata and controls
119 lines (104 loc) · 3.13 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "it2"
version = "0.2.3"
description = "A powerful command-line interface for controlling iTerm2"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{ name = "Your Name", email = "your.email@example.com" }
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: MacOS :: MacOS X",
]
dependencies = [
"iterm2>=2.13",
"click>=8.3.1",
"PyYAML>=6.0.3",
"rich>=14.3.2",
]
keywords = [
"iterm2",
"terminal",
"cli",
"automation",
"macos",
]
[project.urls]
Homepage = "https://github.com/mkusaka/it2"
"Bug Tracker" = "https://github.com/mkusaka/it2/issues"
Documentation = "https://github.com/mkusaka/it2#readme"
"Source Code" = "https://github.com/mkusaka/it2"
PyPI = "https://pypi.org/project/it2/"
[project.scripts]
it2 = "it2.cli:main"
[project.optional-dependencies]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-timeout>=2.4.0",
"black>=26.1.0",
"ruff>=0.15.0",
"mypy>=1.19.1",
"types-PyYAML>=6.0.12.20250915",
"twine==6.2.0", # Pin to 6.0.1 to avoid license-file validation issues
"build>=1.4.0",
]
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "S", "B", "A", "C4", "PIE", "PT", "RET", "SIM", "TID"]
ignore = [
"E501", # line too long
"S101", # use of assert (allowed in tests)
"TID252", # relative imports (we use relative imports within package)
"FBT001", # boolean positional arg in function definition
"FBT002", # boolean default value in function definition
"UP007", # use Optional[X] instead of Union[X, None] (we prefer Union syntax)
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["S101"] # assert is allowed in tests
"scripts/*.py" = ["S603"] # subprocess is allowed in scripts
"src/it2/commands/session.py" = ["S603"] # subprocess with hardcoded /usr/bin/pbcopy
[tool.black]
line-length = 100
target-version = ['py310']
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
timeout = 60
addopts = "-v"
[tool.hatch.build.targets.wheel]
packages = ["src/it2"]
core-metadata-version = "2.3" # twine 6.x does not fully support metadata 2.4 (license-file validation fails)
[tool.hatch.build.targets.sdist]
include = [
"/src",
]
core-metadata-version = "2.3" # twine 6.x does not fully support metadata 2.4 (license-file validation fails)
[tool.hatch.metadata]
allow-direct-references = true
[dependency-groups]
dev = [
"build>=1.5.0",
"pytest-timeout>=2.4.0",
]