Install the studio standard's tooling files
Add .ruff.toml, ty.toml, .coveragerc, .pytest.ini and .pre-commit-config.yaml, take .editorconfig, .gitignore and the CI workflow from the standard (keeping the repository's own CI steps, the byte-exact fixture attributes and the fixture ignore exceptions), and reduce pyproject.toml to metadata plus the setuptools build mapping. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B8cL4zN4XpaQF5cBtASzfq
This commit is contained in:
11 files changed
+368
-105
No files matched your search
+51
@@ -0,0 +1,51 @@
|
||||
[pytest]
|
||||
minversion = 8.4
|
||||
required_plugins = pytest-cov hypothesis
|
||||
testpaths =
|
||||
tests
|
||||
src
|
||||
# Lets tests import shared helpers (conftest constants, fakes) directly.
|
||||
pythonpath = tests
|
||||
norecursedirs =
|
||||
*.egg
|
||||
.eggs
|
||||
dist
|
||||
build
|
||||
docs
|
||||
.tox
|
||||
.git
|
||||
.pixi
|
||||
.venv
|
||||
node_modules
|
||||
__pycache__
|
||||
.hypothesis
|
||||
.pytest_cache
|
||||
.ruff_cache
|
||||
htmlcov
|
||||
python_files = test_*.py
|
||||
doctest_optionflags =
|
||||
NUMBER
|
||||
NORMALIZE_WHITESPACE
|
||||
IGNORE_EXCEPTION_DETAIL
|
||||
ELLIPSIS
|
||||
# The default run skips the slow and networked suites; `-m live` on the
|
||||
# command line replaces this selection.
|
||||
addopts =
|
||||
--strict-markers
|
||||
--strict-config
|
||||
--import-mode=importlib
|
||||
--tb=short
|
||||
--doctest-modules
|
||||
--doctest-continue-on-failure
|
||||
--maxfail=2
|
||||
-ra
|
||||
-m "not live"
|
||||
markers =
|
||||
live: hits real public services; needs network (and any API keys it names)
|
||||
xfail_strict = true
|
||||
empty_parameter_set_mark = fail_at_collect
|
||||
# Turn every warning into an error so deprecations surface immediately.
|
||||
filterwarnings =
|
||||
error
|
||||
# Dump tracebacks of all threads if a single test hangs this long.
|
||||
faulthandler_timeout = 300
|
||||
Reference in new issue
Block a user