checkOwners
checkOwners infers who knows each part of a repository from its git history, then compares that with the CODEOWNERS file you committed.
It reads git locally, sends nothing anywhere without a token, and --offline opens no network connection.
This is a knowledge-risk tool, not a performance-measurement tool. Using it for individual evaluation is unsupported and harmful.
Install
Needs Python 3.11 to 3.15 and Git 2.23.0 or newer, on Linux, macOS, and Windows.
pip install checkowners
The optional graph extra adds the graph, topology, and onboarding commands:
pip install "checkowners[graph]"
Commands
Audit the committed CODEOWNERS against inferred ownership:
checkowners audit
Report where the file and the history disagree:
checkowners drift
Write a CODEOWNERS file from the history:
checkowners generate
Rank paths by knowledge risk:
checkowners risk
Ask who should review a change:
checkowners suggest --diff main...HEAD
Commands, flags, configuration, and exit codes are in the usage guide.
In CI
name: checkowners
on: [pull_request]
jobs:
drift:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: smusali/checkowners@v0
A pull-request comment also needs pull-requests: write, and a code scanning
upload needs security-events: write with upload_sarif: true.
Stability
Before 1.0.0, an incompatible change bumps the minor version and is listed in the changelog.
More
License
MIT
Metadata
Release files for checkowners 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| checkowners-0.7.0.tar.gz | 454.9 kB | With provenance | Details for checkowners-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| checkowners-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for checkowners-0.7.0-py3-none-any.whl |
Total release size: 692.1 kB
Release files / checkowners-0.7.0.tar.gz
| Download URL | checkowners-0.7.0.tar.gz |
|---|---|
| Size | 454.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5ba2c971da23fb9e9eddc623dced5b62dcee6b275827194e53db5284de218d9
|
|
BLAKE2b-256 checksum How to use checksums |
c45477af603591327c18f7331b92f5bfa099e60f0c0d372095304a28ade39b0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logRelease files / checkowners-0.7.0-py3-none-any.whl
| Download URL | checkowners-0.7.0-py3-none-any.whl |
|---|---|
| Size | 237.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
645c909fb11cf370c1612dc83da902f73eb962676fba584396ddff5a495c79ab
|
|
BLAKE2b-256 checksum How to use checksums |
d41d922a68a6a26b43526316cdecffe1e44d6db63ae79df65e071b0d96c1733a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logSecurity for checkowners 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for checkowners-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.