-
Notifications
You must be signed in to change notification settings - Fork 689
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (140 loc) · 4.02 KB
/
pyproject.toml
File metadata and controls
160 lines (140 loc) · 4.02 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
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
[project]
name = "mycli"
dynamic = ["version"]
description = "CLI for MySQL Database. With auto-completion and syntax highlighting."
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
authors = [{ name = "Mycli Core Team" }]
dependencies = [
"click ~= 8.3.1",
"clickdc ~= 0.1.1",
"cryptography ~= 46.0.5",
"Pygments ~= 2.19.2",
"prompt_toolkit>=3.0.6,<4.0.0",
"PyMySQL ~= 1.1.2",
"sqlparse>=0.3.0,<0.6.0",
"sqlglot[c] ~= 30.4.3",
"configobj ~= 5.0.9",
"cli_helpers[styles] ~= 2.12.0",
"wcwidth ~= 0.6.0",
"pyperclip ~= 1.11.0",
"pycryptodomex ~= 3.23.0",
"pyfzf ~= 0.3.1",
"rapidfuzz ~= 3.14.3",
"keyring ~= 25.7.0",
]
[project.urls]
Homepage = 'https://mycli.net'
Documentation = 'https://mycli.net/docs'
Source = 'https://github.com/dbcli/mycli'
Issues = 'https://github.com/dbcli/mycli/issues'
Changelog = 'https://github.com/dbcli/mycli/blob/main/changelog.md'
[build-system]
requires = ["setuptools>=64.0", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[project.optional-dependencies]
ssh = [
"paramiko ~= 3.5.1",
"sshtunnel ~= 0.4.0",
]
llm = [
"llm ~= 0.30.0",
"pydantic_core ~= 2.41.5", # Required by llm; force a newer version
"setuptools == 82.*", # Required by llm commands to install models
"pip == 26.*",
]
all = [
"mycli[ssh]",
"mycli[llm]",
]
dev = [
"behave ~= 1.3.3",
"coverage ~= 7.13.4",
"mypy ~= 1.19.1",
"pexpect ~= 4.9.0",
"pytest ~= 9.0.2",
"pytest-cov ~= 7.0.0",
"pytest-random-order ~= 1.2.0",
"tox ~= 4.35.0",
"pdbpp ~= 0.11.7",
"paramiko ~= 3.5.1",
"sshtunnel ~= 0.4.0",
"llm ~= 0.30.0",
"pydantic_core ~= 2.41.5", # Required by llm; force a newer version
"setuptools == 82.*", # Required by llm commands to install models
"pip == 26.*",
"ruff ~= 0.15.0",
]
[project.scripts]
mycli = "mycli.main:main"
[tool.setuptools.package-data]
mycli = ["myclirc", "AUTHORS", "SPONSORS", "TIPS"]
[tool.setuptools.packages.find]
include = ["mycli*"]
[tool.ruff]
target-version = 'py310'
line-length = 140
[tool.ruff.lint]
select = ['A', 'B', 'I', 'E', 'W', 'F', 'C4', 'PIE', 'TID']
ignore = [
'B005', # Multi-character strip()
'E401', # Multiple imports on one line
'E402', # Module level import not at top of file
'PIE808', # range() starting with 0
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
'E111', # indentation-with-invalid-multiple
'E114', # indentation-with-invalid-multiple-comment
'E117', # over-indented
'W191', # tab-indentation
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = ['mycli', 'test', 'steps']
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = 'all'
[tool.ruff.format]
preview = true
quote-style = 'preserve'
exclude = ['build', 'mycli_dev']
[tool.mypy]
pretty = true
strict_equality = true
ignore_missing_imports = true
warn_unreachable = true
warn_redundant_casts = true
warn_no_return = true
warn_unused_configs = true
show_column_numbers = true
exclude = ['^build/', '^dist/']
[tool.tox]
env_list = ['python']
requires = ['tox>=4.20']
[tool.tox.env_run_base]
skip_install = true
deps = ['uv']
passenv = ['PYTEST_HOST',
'PYTEST_USER',
'PYTEST_PASSWORD',
'PYTEST_PORT',
'PYTEST_CHARSET']
commands = [['uv', 'pip', 'install', '-e', '.[dev,ssh,llm]'],
['coverage', 'run', '-m', 'pytest', '-v', 'test'],
['coverage', 'report', '-m', '--sort=Miss'],
['behave', 'test/features']]
commands_post = [['rm', '-f', '--', './.myclirc']]
allowlist_externals = ['rm']
[tool.tox.env.style]
skip_install = true
deps = ['ruff']
commands = [['ruff', 'check'],
['ruff', 'format', '--diff']]
[tool.pytest]
addopts = ['--ignore=mycli/packages/paramiko_stub/__init__.py', '--random-order']
[tool.coverage.run]
source = ['mycli']
omit = [
# deprecated
'mycli/packages/paramiko_stub/__init__.py',
]