forked from canonical/mysql-shell-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (86 loc) · 2.38 KB
/
pyproject.toml
File metadata and controls
100 lines (86 loc) · 2.38 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[project]
name = "mysql-shell-client"
description = "Python client for MySQL Shell"
requires-python = ">=3.10"
license = "Apache-2.0"
readme = "README.md"
version = "0.9.0"
authors = [
{ name = "Sinclert Perez", email = "sinclert.perez@canonical.com" }
]
maintainers = [
{ name = "Canonical Data Platform", email = "data-platform@lists.launchpad.net" },
]
dependencies = []
[project.optional-dependencies]
format = [
"ruff~=0.15",
]
lint = [
"codespell~=2.4",
"ruff~=0.15",
]
test = [
"coverage~=7.13",
"pytest~=8.4",
]
[project.urls]
Homepage = "https://github.com/canonical/mysql-shell-client"
Issues = "https://github.com/canonical/mysql-shell-client/issues"
Changelog = "https://github.com/canonical/mysql-shell-client/blob/main/CHANGELOG.md"
# Testing tools configuration
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
log_cli_level = "INFO"
markers = ["unit", "integration"]
# Dependency tools configuration
[tool.poetry]
requires-poetry = ">=2.0.0"
package-mode = true
packages = [
{ include = "mysql_shell", from = "src" },
]
# Linting tools configuration
[tool.ruff]
preview = true
target-version = "py310"
src = ["src", "tests"]
line-length = 99
[tool.ruff.lint]
explicit-preview-rules = true
select = [
"A", # Activate flake8-builtins
"C", # Acticate mccabe
"D", # Activate pydocstyle
"E", # Activate pycodestyle errors
"W", # Activate pycodestyle warnings
"F", # Acticate pyflakes
"I", # Activate isort
"N", # Activate PEP8 naming
"S608", # Acticate flake8-bandit query injection
"CPY001", # Activate copyright notice check
]
ignore = [
"D100", # Ignore D100 Missing docstring in public module
"D104", # Ignore D104 Missing docstring in __init__
"E731", # Ignore E731 Do not assign a `lambda` expression
"F541", # Ignore F541 F-strings without and placeholders
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # Ignore F401 Imported but unused
"F403", # Ignore F403 Unable to detect undefined names
]
[tool.ruff.lint.flake8-copyright]
author = "Canonical Ltd."
notice-rgx = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"