-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (115 loc) · 3.89 KB
/
pyproject.toml
File metadata and controls
139 lines (115 loc) · 3.89 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
[tool.poetry]
name = "slcli"
version = "0.42.0"
description = "SystemLink Integrator CLI - cross-platform CLI for SystemLink workflows and templates."
authors = ["Fred Visser <fred.visser@emerson.com>"]
include = ["dff-editor/**/*"]
[tool.poetry.scripts]
slcli = "slcli.__main__:cli"
slcli-mcp = "slcli.mcp_server:main"
build-pyinstaller = "scripts.build_pyinstaller:main"
update-version = "scripts.update_version:main"
lint = "scripts.lint:main"
[tool.poetry.group.mcp]
optional = true
[tool.poetry.group.mcp.dependencies]
mcp = ">=1.0"
[tool.poetry.dependencies]
python = ">=3.11.1,<3.14"
# cli
click = ">=7.1.2"
keyring = "^25.6.0"
requests = "^2.32.4"
tabulate = "^0.9.0"
truststore = ">=0.9,<0.11"
watchdog = "^6.0.0"
pyyaml = "^6.0.3"
[tool.poetry.group.dev.dependencies]
# Lint
ni-python-styleguide = ">=0.4.3"
cyclonedx-bom = "^5.0.0"
setuptools = "<81" # pin to retain pkg_resources used by flake8-import-order
# Type checking
mypy = ">=1.0"
# Test
pytest = ">=7.0"
pytest-cov = ">=3.0"
pytest-timeout = ">=2.1.0"
pyinstaller = "^6.14.2"
# Typed stubs for third-party libraries used by mypy in CI
types-requests = "*"
types-tabulate = "*"
# Semantic Release
python-semantic-release = "^9.0.0"
pytest-xdist = "^3.8.0"
# Excel file generation
openpyxl = "^3.1.5"
# MCP server (optional feature, also needed for type checking)
mcp = ">=1.0"
[tool.pytest.ini_options]
addopts = "--cov slcli --strict-markers --doctest-modules --ignore=tests/e2e"
testpaths = ["tests/unit"]
filterwarnings = [
# E2E tests invoke slcli as a subprocess so no in-process Python code runs;
# coverage collects nothing and emits this warning. It is expected and safe
# to suppress it here — the warning is also harmless for regular unit runs
# because unit tests always produce coverage data.
"ignore:No data was collected:Warning",
]
markers = [
"e2e: marks tests as end-to-end tests (not run by default)",
"slow: marks tests as slow running",
"notebook: marks tests as notebook-related",
"dff: marks tests as dynamic form fields related",
"workspace: marks tests as workspace-related",
"user: marks tests as user management related",
"sls: marks tests as SystemLink Server specific",
"sle: marks tests as SystemLink Enterprise specific",
"file: marks tests as file service related",
"comment: marks tests as comment management related"
]
[tool.black]
line-length = 100
[tool.ni-python-styleguide]
# D301 ("Use r""" if any backslashes in a docstring") is suppressed because
# Click uses \b (backspace chr(8)) as a paragraph-formatting marker in docstrings
# to prevent line-wrapping in --help output. This requires a regular """ string;
# using r""" passes the literal two-char sequence \b which Click does not recognise.
[tool.ni-python-styleguide.lint]
extend_ignore = "D301"
[tool.mypy]
python_version = "3.13"
files = "**/*.py"
disallow_untyped_defs = true
warn_unused_configs = true
namespace_packages = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unreachable = true
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = ["slcli/_version.py:__version__"]
build_command = "python scripts/update_version.py"
major_on_zero = false
branch = "main"
upload_to_pypi = false
upload_to_release = true
hvcs = "github"
commit_message = "chore(release): {version}"
tag_format = "v{version}"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.changelog]
template_dir = "templates"
exclude_commit_patterns = []
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease_token = "rc"
prerelease = false
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"