scopio
Code metrics auditor with SQLite history, diffs and quality gates.
Install
pip install scopio
Quick Start
scopio --config scopio.toml run
Usage
Run audit
scopio --config scopio.toml run
scopio --config scopio.toml run --verbose
scopio --config scopio.toml run --incremental
Report history
scopio report --project wrong-web --limit 10
Diff between audits
scopio diff --project wrong-web
Diff report with file-level detail
scopio diff-report --project wrong-web --files --threshold-ccn 6
CI integration
scopio ci --project wrong-web --fail-on-regression
Clean old audits
scopio clean --keep 50
Archive old data
scopio archive --older-than 2026-01-01 --format csv
Initialize config
scopio init
Configuration
[discovery]
ignore_hidden = true
projects = ["my-project"]
[filters]
global_dirs = ["node_modules", "target", "dist", "build"]
minified_files = ["*.min.js", "*.min.css"]
ignored_langs = ["JSON", "Markdown", "TOML"]
[quality_gates]
max_ccn = 10.0
max_warnings = 10
max_ccn_trend_increase = 0.2
trend_sensitive_projects = []
[quality_gates.per_project]
# "my-project" = { max_ccn = 12.0, max_warnings = 15 }
[quality_gates.per_language]
# Python = { max_ccn = 12.0, max_warnings = 20 }
GitHub Actions
name: Scopio
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
scopio:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install scopio
run: pip install scopio
- name: Run scopio
run: scopio ci --project my-project --fail-on-regression
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scopio-0.1.1.tar.gz
(16.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
scopio-0.1.1-py3-none-any.whl
(17.5 kB
view details)
File details
Details for the file scopio-0.1.1.tar.gz.
File metadata
- Download URL: scopio-0.1.1.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0e7b89720f15a1b8d3e4465e0c6960aef00c6cfc4c2080be9b930244a420236
|
|
| MD5 |
d8c9dbee06a877491ccf8aa2ac106507
|
|
| BLAKE2b-256 |
14ce5ae752d7ea7c5f733d28ca11b8fe0da5c945cabc10970c1d7b79e3fb5a6e
|
File details
Details for the file scopio-0.1.1-py3-none-any.whl.
File metadata
- Download URL: scopio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acd30a26a8388945b744ec1da71ab03c1e07b64cdcdb1e80766fa30883c024ca
|
|
| MD5 |
89db909a94e0c75731bbe540f30692e9
|
|
| BLAKE2b-256 |
bb404d292ffa522ab4aa399f9b7a940fe98178e1a86c0842cae99975dad9fa37
|