-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (81 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
96 lines (81 loc) · 2.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "n8n-cli"
version = "0.1.0"
description = "CLI for managing n8n Cloud workflows"
readme = "README.md"
requires-python = ">=3.12"
authors = [
{name = "Dan"}
]
dependencies = [
"typer>=0.13.0",
"pydantic>=2.0",
"pydantic-settings>=2.0",
"httpx>=0.27.0",
"python-dotenv>=1.0",
"tenacity>=9.0",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.12",
"ruff>=0.8.0",
"pre-commit>=4.0",
"mypy>=1.13.0",
"types-requests>=2.31.0",
"pytest-httpx>=0.36.0",
"poethepoet>=0.31.0",
]
[project.scripts]
n8n = "n8n_cli.cli:app"
[tool.hatch.build.targets.wheel]
packages = ["src/n8n_cli"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--strict-markers"
[tool.coverage.run]
source = ["src/n8n_cli"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == \"__main__\":",
"if TYPE_CHECKING:",
]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # Pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade (Python version upgrades)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
]
ignore = [
"B008", # Do not perform function calls in argument defaults (false positive for Typer)
]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Start lenient, tighten later
[tool.poe.tasks]
# Install the tool globally (forces rebuild from source)
install = { shell = "uv tool uninstall n8n-cli 2>/dev/null; uv tool install --reinstall ." }
# Clean install (only if you have cache issues)
clean-install = { shell = "uv cache clean n8n-cli && uv tool uninstall n8n-cli 2>/dev/null; uv tool install ." }
# Run tests with coverage
test = "pytest --cov=n8n_cli --cov-report=term-missing"
# Run code quality checks
lint = "ruff check src/n8n_cli/"
format = "ruff format src/n8n_cli/"
typecheck = "mypy src/n8n_cli/"
# Run all quality checks
check = ["lint", "typecheck", "test"]