-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (87 loc) · 3.35 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (87 loc) · 3.35 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
# Explicit build backend so `pip install -e .[test]` is deterministic across
# pip/setuptools versions and honors the [tool.setuptools] config below.
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ess-maker-kit-tests"
version = "0.0.0"
description = "Internal test suite for the ESS Maker Kit. Not packaged for distribution."
requires-python = ">=3.11"
# Runtime deps live in solutions/ess-maker-skills/scripts/requirements.txt and
# solutions/ess-maker-skills/src/mcp/{workday,servicenow}/requirements.txt.
# This file declares only the *test* dependencies needed by the suite under
# tests/. Install with: pip install -e .[test]
[project.optional-dependencies]
test = [
"pytest>=8.0,<9.0",
"pytest-cov>=5.0,<7.0",
"vcrpy>=6.0,<8.0",
"responses>=0.25,<1.0",
"respx>=0.21,<1.0", # for httpx-based code (src/mcp/workday/client.py)
"PyYAML>=6.0,<7.0",
"jsonschema>=4.0,<5.0",
]
# This project is a *test harness*, not a distributable package: it ships no
# importable package of its own (the code under test is put on sys.path via
# [tool.pytest.ini_options].pythonpath below). Without this, `pip install -e .`
# triggers setuptools flat-layout auto-discovery, which errors with "Multiple
# top-level packages discovered" on the repo's top-level dirs (setup/, samples/,
# solutions/, ...). Declaring an empty module list makes the editable install a
# deps-only no-op, which is exactly what `pip install -e .[test]` needs.
[tool.setuptools]
py-modules = []
# Ruff configuration for the repo-root Python sources (solutions/ess-maker-skills/
# scripts + src/mcp, and tests/). The ESS NextGen Migration Toolkit under
# tools/ess-nextgen-migration-toolkit/ has its OWN [tool.ruff] in its own
# pyproject.toml and is unaffected (ruff uses the nearest config).
#
# The rule set is pinned to Ruff's classic default (pycodestyle E4/E7/E9 + Pyflakes
# F) ON PURPOSE: an unpinned `pip install ruff` in CI once picked up a newer Ruff
# whose broadened default rule set flagged 200+ pre-existing issues and failed
# *every* PR. Selecting rules explicitly makes lint deterministic across Ruff
# versions. Grow this list intentionally (with the fixes), never implicitly.
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
# pyproject.toml is configured to add solutions/ess-maker-skills/scripts to
# pythonpath so tests can `from auth import ...` and `from flightcheck import ...`.
pythonpath = [
"solutions/ess-maker-skills/scripts",
]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--showlocals",
]
markers = [
"vcr: tests that replay a VCR.py cassette (cassette path resolved from test name)",
"live: tests that make real network calls (skipped by default; opt in with --run-live)",
]
filterwarnings = [
"error",
# MSAL emits a DeprecationWarning when running under recent Python; not actionable here.
"ignore::DeprecationWarning:msal.*",
]
[tool.coverage.run]
source = [
"solutions/ess-maker-skills/scripts",
"solutions/ess-maker-skills/src/mcp",
]
omit = [
"*/__pycache__/*",
"tests/*",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]