Index
core
Core audit functionality.
audit_project(project_path, category=None, quick=False)
Audit a project against Python 2026 standards.
Rules execute in parallel via ThreadPoolExecutor for speed.
Each rule is isolated — one failure does not prevent others.
An ASTCache is shared across rules to avoid redundant parsing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_path
|
Path
|
Root directory of the project to audit. |
required |
category
|
str | None
|
Optional category filter. |
None
|
quick
|
bool
|
If True, run only lint + type checks. |
False
|
Returns:
| Type | Description |
|---|---|
AuditResult
|
AuditResult containing all check results. |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If project_path does not exist. |
Source code in packages/axm-audit/src/axm_audit/core/auditor.py
get_rules_for_category(category, quick=False)
Get rules for a specific category or all rules.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
category
|
str | None
|
Filter to specific category, or None for all. |
required |
quick
|
bool
|
If True, only lint + type checks. |
False
|
Returns:
| Type | Description |
|---|---|
list[ProjectRule]
|
List of rule instances to run. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If category is not valid. |