Configuration
.deepsource.toml
The analysis configuration for a repository on DeepSource is defined in a .deepsource.toml
file in the repository's root. This file must be present at the said location for analysis to be run.
.
├── .deepsource.toml
├── README.md
├── bar
│ └── baz.py
└── foo.py
The configuration is written in the TOML format.
version
version
- Type: Integer
- Presence: mandatory
- Description: The version property is required and must be set to 1, which is the only supported version at the moment.
version = 1
exclude_patterns
exclude_patterns
- Type: Array
- Presence: optional
- Description: List of glob patterns that should be excluded when the analyses are run. These patterns should be relative to the repository's root.
- Example:
exclude_patterns = [
"bin/**",
"**/node_modules/",
"js/**/*.min.js"
]
test_patterns
test_patterns
- Type: Array
- Presence: optional
- Description: List of glob patterns that should be marked as tests or containing test files. These patterns should be relative to the repository's root.
Example:
test_patterns = \[
"tests/\*\*",
"test_\*.py"
]
analyzers
analyzers
- Type: Array of Tables
- Presence: mandatory
- Description: List of analyzers. For each analyzer that has to be enabled for this repo, an entry has to be added to the analyzers table. Refer to analyzer specific configuration docs for available options.
- Example:
[[analyzers]]
name = "python"
enabled = true
dependency_file_paths = [
"requirements.txt",
"Pipfile"
]
The configuration must have at least one valid Analyzer enabled for the analysis to run.
transformers
transformers
- Type: Array of Tables
- Presence: mandatory
- Description: List of transformers. For each transformer that has to be enabled for this repo, an entry has to be added to the transformers table. Refer to transformer-specific configuration docs for available options.
- Example:
[[transformers]]
name = "black"
enabled = true
Updated over 1 year ago
What’s Next