slap check
Check your project configuration for errors, warnings or recommendations.
Configuration
Option scope: [tool.slap.check]
or [check]
Option | Type | Default | Description |
---|---|---|---|
plugins |
list[str] |
["changelog", "general", "poetry", "release"] |
A list of check plugins to use. Note that the Poetry plugin only fire checks if your project appears to be using Poetry, so there is no harm in leaving it enabled even if you don't it. Additional plugins can be registered via an ApplicationPlugin under the CheckPlugin group. |
Built-in check plugins
slap.ext.checks.changelog.ChangelogValidationCheckPlugin
dataclass
Bases: CheckPlugin
This check plugin validates the structured changelog files, if any.
Plugin ID: changelog
Source code in slap/ext/checks/changelog.py
slap.ext.checks.general.GeneralChecksPlugin
Bases: CheckPlugin
This plugin provides general checks applicable to all types of projects managed with Slap.
Plugin ID: general
.
Source code in slap/ext/checks/general.py
slap.ext.checks.poetry.PoetryChecksPlugin
Bases: CheckPlugin
Check plugin to validate the Poetry configuration and compare it with Slap's expectations.
Plugin ID: poetry
Source code in slap/ext/checks/poetry.py
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
get_classifiers_check
Checks if all Python package classifiers are valid and recommends to configure them if none are set.
Source code in slap/ext/checks/poetry.py
get_license_check
Checks if package license is a valid SPDX license identifier and recommends to configure a license if none is set.
Source code in slap/ext/checks/poetry.py
get_readme_check
Checks if Poetry will be able to pick up the right readme file.
Source code in slap/ext/checks/poetry.py
get_urls_check
Checks if URLs are configured in the Poetry configuration and recommends to configure the Homepage
,
Repository
, Documentation
and Bug Tracker
URLs under [tool.poetry.urls]
.
Source code in slap/ext/checks/poetry.py
slap.ext.checks.release.ReleaseChecksPlugin
Bases: CheckPlugin
Performs some checks relevant for the slap release
command.
Source code in slap/ext/checks/release.py
check_packages_have_source_code_version
Checks if all Python packages in the project have a version defined in the source code.
Source code in slap/ext/checks/release.py
check_version_number_consistency
check_version_number_consistency(app: Application) -> tuple[CheckResult, str]
Checks if the version numbers in the project source code, project configuration and any other instances
that are detected by release plugins or in the [tool.slap.release].references
option are consistent.