Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: Install slopometry from checkout
run: uv tool install .
run: uv tool install . --find-links "https://github.com/Droidcraft/rust-code-analysis/releases/expanded_assets/python-2026.1.31"

- name: Run QPE check
id: qpe
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ A tool that lurks in the shadows, tracks and analyzes Claude Code sessions provi

**NEWS:**

**January 2026: BREAKING CHANGE - replaced `radon`, which is abandoned for 5+ years with `rust-code-analysis` that is only abandoned for 3+ years.
This allows us to support various unserious languages for analysis in the future (like c++ and typescript) but requires installation from wheels due to rust bindings.
Bindings are pre-built for MacOS and Linux with Python 3.13, 3.14 and the free-threaded variants with a `t`.

**December 2025: for microsoft employees we now support the Galen metric (Python only for now).**

Set `SLOPOMETRY_ENABLE_WORKING_AT_MICROSOFT=true slopometry latest` or edit your .env to get encouraging messages approved by HR!
Expand Down Expand Up @@ -111,8 +115,9 @@ curl -fsSL http://claude.ai/install.sh | bash
### Install slopometry as a uv tool

```bash
# Install as a global tool
uv tool install git+https://github.com/TensorTemplar/slopometry.git
# Install as a global tool (requires find-links for rust-code-analysis dependency)
uv tool install git+https://github.com/TensorTemplar/slopometry.git \
--find-links "https://github.com/Droidcraft/rust-code-analysis/releases/expanded_assets/python-2026.1.31"

# Add tool directory to PATH (required on macOS, may be needed on Linux)
uv tool update-shell
Expand All @@ -124,10 +129,10 @@ source ~/.zshrc # for zsh
# Or install from a local directory
git clone https://github.com/TensorTemplar/slopometry
cd slopometry
uv tool install .
uv tool install . --find-links "https://github.com/Droidcraft/rust-code-analysis/releases/expanded_assets/python-2026.1.31"

# After making code changes, reinstall to update the global tool
uv tool install . --reinstall
uv tool install . --reinstall --find-links "https://github.com/Droidcraft/rust-code-analysis/releases/expanded_assets/python-2026.1.31"
```

## Quick Start
Expand Down Expand Up @@ -177,12 +182,13 @@ The command will show you the exact instructions to add to your shell configurat

```bash
# Upgrade from git
uv tool install --reinstall git+https://github.com/TensorTemplar/slopometry.git
uv tool install --reinstall git+https://github.com/TensorTemplar/slopometry.git \
--find-links "https://github.com/Droidcraft/rust-code-analysis/releases/expanded_assets/python-2026.1.31"

# Or if installed from local directory
cd slopometry
git pull
uv tool install . --reinstall
uv tool install . --reinstall --find-links "https://github.com/Droidcraft/rust-code-analysis/releases/expanded_assets/python-2026.1.31"

# Note: After upgrading, you may need to reinstall hooks if the default config changed
slopometry install
Expand Down
32 changes: 32 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Third Party Notices

This project includes or depends on the following third-party software:

## rust-code-analysis

**Source:** https://github.com/mozilla/rust-code-analysis

**License:** Mozilla Public License 2.0 (MPL-2.0)

**Copyright:** Mozilla Corporation and contributors

rust-code-analysis is a Rust library to analyze and extract maintainability
information from source codes, developed by Mozilla.

### Citation

If you use rust-code-analysis in academic or research work, please cite:

```bibtex
@article{ARDITO2020100635,
title = {rust-code-analysis: A Rust library to analyze and extract maintainability information from source codes},
journal = {SoftwareX},
volume = {12},
pages = {100635},
year = {2020},
issn = {2352-7110},
doi = {https://doi.org/10.1016/j.softx.2020.100635},
url = {https://www.sciencedirect.com/science/article/pii/S2352711020303484},
author = {Luca Ardito and Luca Barbato and Marco Castelluccio and Riccardo Coppola and Calixte Denizet and Sylvestre Ledru and Michele Valsesia},
}
```
Loading