Configuration
tryke is configured via pyproject.toml under the [tool.tryke] table.
pyproject.toml
exclude
A list of file paths or directory patterns to exclude from test discovery:
Excluded paths are skipped during both test collection and import graph construction.
CLI overrides
--exclude / -e
Override the pyproject.toml exclude list from the command line:
Note: --exclude replaces the config file setting, it does not extend it.
--include / -i
Include files or directories that would otherwise be excluded by pyproject.toml:
This is useful for one-off runs against normally excluded paths without editing the config file.
--root
Override the project root (where tryke looks for pyproject.toml and test files):
Example
A typical configuration for a project with benchmarks and generated code: