tukuroi is an unofficial fork of Instagram/Fixit, the linting framework that Meta published. It is not affiliated with Meta, nor endorsed by Meta or by the maintainers of Fixit. Its main differences from upstream:
The rules run on a new engine, tukuroi.core, built on Python’s ast module in place of LibCST.
Safer handling of untrusted repositories: --no-custom-rules keeps tukuroi from importing any rules but its built-in ones, the search for configurations stops at the root of the repository, output templates take only the names of their fields, and the LSP server talks over stdio only.
It supports only the two newest minor versions of CPython: 3.14 and 3.15.
tukuroi provides a highly configurable linting framework with support for auto-fixes, custom “local” lint rules, and hierarchical configuration, built on Python’s ast module. A fix replaces only the code that it fixes; a project can choose to format the fixed files with ruff (pip install "tukuroi[ruff]").
tukuroi makes it quick and easy to write new lint rules and offer suggested changes for any errors found, which can then be accepted automatically, or presented to the user for consideration.
For more details, see the user guide.
Coming from Fixit
tukuroi reads none of the names of Fixit. Rename them:
Fixit |
tukuroi |
|---|---|
pip install fixit |
pip install tukuroi |
fixit lint, python -m fixit |
tukuroi lint, python -m tukuroi |
[tool.fixit], [[tool.fixit.overrides]] |
[tool.tukuroi], [[tool.tukuroi.overrides]] |
fixit.toml, .fixit.toml |
tukuroi.toml, .tukuroi.toml |
FIXIT_CUSTOM_RULES |
TUKUROI_CUSTOM_RULES |
fixit.rules |
tukuroi.rules, with fewer rules: ruff has the others (see the ruff guide) |
the pre-commit hooks fixit-lint and fixit-fix |
tukuroi-lint and tukuroi-fix |
fixit_paths, fixit_file, fixit_bytes |
tukuroi_paths, tukuroi_file, tukuroi_bytes |
output-format = "fixit", --output-format fixit |
output-format = "tukuroi", --output-format tukuroi |
the LSP server fixit-lsp, and the source fixit of its diagnostics |
tukuroi-lsp, and the source tukuroi |
A config of Fixit that tukuroi does not read is a warning: a fixit.toml, a .fixit.toml, or a [tool.fixit] in pyproject.toml, in a directory with no config of tukuroi. To keep one for Fixit and run tukuroi with its defaults, put an empty [tool.tukuroi] (or an empty tukuroi.toml) next to it.
The settings of Fixit that tukuroi does not support (python-version, options, tags) are configuration errors that say so. formatter takes "ruff" or "none" only, not "black" or "ufmt".
The rules of Fixit do not run on tukuroi: they are written for LibCST, and tukuroi uses ast. To port a rule:
Fixit |
tukuroi |
|---|---|
a subclass of fixit.LintRule, visiting LibCST nodes |
a subclass of tukuroi.Rule, with visit_<node> methods named after the classes of ast |
METADATA_DEPENDENCIES and QualifiedNameProvider |
self.imports.qualified_names(node) |
a LibCST node as the replacement |
a string as the replacement, or edits over the original text |
fixit.testing.add_lint_rule_tests_to_module |
tukuroi.testing.add_rule_tests_to_module |
fixit.config.collect_rules(Config(...)) |
tukuroi.config.load_rules(Config(...)); Config has no python_version |
See Writing Rules for the details.
License
tukuroi is MIT licensed, as found in the LICENSE file.
Metadata
Release files for tukuroi 3.0.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 |
|---|---|---|---|---|
| tukuroi-3.0.0.tar.gz | 292.9 kB | With provenance | Details for tukuroi-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tukuroi-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for tukuroi-3.0.0-py3-none-any.whl |
Total release size: 525.8 kB
Release files / tukuroi-3.0.0.tar.gz
| Download URL | tukuroi-3.0.0.tar.gz |
|---|---|
| Size | 292.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
272c65caa21e2eb2e553aefb93c3ee4cbd35b6e8034c04aabe50f48e5d1d0de7
|
|
BLAKE2b-256 checksum How to use checksums |
a643fb8f66e6750b8a0b764a505f1d1bd1e5d3b579be4ff67f1af43468db1853
|
| 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 16, 2026.
Transparency logRelease files / tukuroi-3.0.0-py3-none-any.whl
| Download URL | tukuroi-3.0.0-py3-none-any.whl |
|---|---|
| Size | 232.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adb7f49efbe1c25ced4037daf784928c5e77f7ddcd0dc1b903ceb569b3e7f70d
|
|
BLAKE2b-256 checksum How to use checksums |
08d0cf641b5b4f57dd85d965e52c4b19daf9b57dff478b9e04578aa443e20424
|
| 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 16, 2026.
Transparency logSecurity for tukuroi 3.0.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 tukuroi-3.0.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 16, 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.