-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathpyproject.toml
161 lines (144 loc) · 3.63 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[tool.poetry]
name = "libtmux"
version = "0.22.2"
description = "Typed scripting library / ORM / API wrapper for tmux"
license = "MIT"
authors = ["Tony Narlock <[email protected]>"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Environment :: Web Environment",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Topic :: System :: Shells",
"Typing :: Typed",
]
keywords = ["tmux", "session manager", "terminal", "ncurses"]
homepage = "http://github.com/tmux-python/libtmux/"
readme = "README.md"
packages = [
{ include = "*", from = "src" },
]
include = [
{ path = "CHANGES", format = "sdist" },
{ path = ".tmuxp.yaml", format = "sdist" },
{ path = "tests", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "conftest.py", format = "sdist" },
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/tmux-python/libtmux/issues"
Documentation = "https://libtmux.git-pull.com"
Repository = "https://github.com/tmux-python/libtmux"
Changes = "https://github.com/tmux-python/libtmux/blob/master/CHANGES"
[tool.poetry.dependencies]
python = "^3.7"
[tool.poetry.group.dev.dependencies]
### Docs ###
sphinx = "*"
furo = "*"
gp-libs = "*"
sphinx-autobuild = "*"
sphinx-autodoc-typehints = "*"
sphinx-inline-tabs = "<2023.4.21" # For Python 3.7 support
sphinxext-opengraph = "<0.8" # https://github.com/wpilibsuite/sphinxext-opengraph/issues/100
sphinx-copybutton = "*"
sphinxext-rediraffe = "*"
myst_parser = ">=0.18.1"
docutils = "*"
### Testing ###
pytest = "*"
pytest-rerunfailures = "*"
pytest-mock = "*"
pytest-watcher = "*"
### Coverage ###
codecov = "*"
coverage = "*"
pytest-cov = "*"
### Format ###
black = "*"
ruff = "*"
mypy = "*"
[tool.poetry.extras]
docs = [
"docutils",
"sphinx",
"sphinx-autodoc-typehints",
"sphinx-autobuild",
"sphinx-copybutton",
"sphinxext-opengraph",
"sphinx-inline-tabs",
"sphinxext-rediraffe",
"myst_parser",
"furo",
"gp-libs",
]
test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"]
coverage = ["codecov", "coverage", "pytest-cov"]
lint = ["black", "ruff", "mypy"]
[tool.poetry.plugins.pytest11]
libtmux = "libtmux.pytest_plugin"
[tool.mypy]
strict = true
files = [
"src",
"tests"
]
[tool.coverage.run]
branch = true
parallel = true
omit = [
"*/_compat.py",
"docs/conf.py",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"return NotImplemented",
"def parse_args",
"if TYPE_CHECKING:",
"if t.TYPE_CHECKING:",
"@overload( |$)",
]
[tool.ruff]
target-version = "py37"
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"Q", # flake8-quotes
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"SIM", # flake8-simplify
"TRY", # Trycertatops
"PERF", # Perflint
"RUF" # Ruff-specific rules
]
[tool.ruff.isort]
known-first-party = [
"libtmux"
]
combine-as-imports = true
[tool.ruff.per-file-ignores]
"*/__init__.py" = ["F401"]
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"