tukuroi 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tukuroi-3.0.0/.editorconfig +10 -0
- tukuroi-3.0.0/.git-blame-ignore-revs +5 -0
- tukuroi-3.0.0/.gitignore +109 -0
- tukuroi-3.0.0/.mailmap +1 -0
- tukuroi-3.0.0/.pre-commit-hooks.yaml +12 -0
- tukuroi-3.0.0/.python-version +1 -0
- tukuroi-3.0.0/.watchmanconfig +1 -0
- tukuroi-3.0.0/CHANGELOG.md +278 -0
- tukuroi-3.0.0/CONTRIBUTING.md +443 -0
- tukuroi-3.0.0/LICENSE +77 -0
- tukuroi-3.0.0/PKG-INFO +218 -0
- tukuroi-3.0.0/README.rst +107 -0
- tukuroi-3.0.0/SECURITY.md +30 -0
- tukuroi-3.0.0/build-constraints.in +4 -0
- tukuroi-3.0.0/build-constraints.txt +47 -0
- tukuroi-3.0.0/docs/_static/custom.css +8 -0
- tukuroi-3.0.0/docs/api.rst +79 -0
- tukuroi-3.0.0/docs/changelog.rst +5 -0
- tukuroi-3.0.0/docs/conf.py +141 -0
- tukuroi-3.0.0/docs/contributing.rst +5 -0
- tukuroi-3.0.0/docs/guide/builtins.rst +467 -0
- tukuroi-3.0.0/docs/guide/commands.rst +230 -0
- tukuroi-3.0.0/docs/guide/configuration.rst +380 -0
- tukuroi-3.0.0/docs/guide/integrations.rst +179 -0
- tukuroi-3.0.0/docs/guide/plugins.rst +117 -0
- tukuroi-3.0.0/docs/guide/quickstart.rst +145 -0
- tukuroi-3.0.0/docs/guide/ruff.rst +97 -0
- tukuroi-3.0.0/docs/guide/rules.rst +205 -0
- tukuroi-3.0.0/docs/guide.rst +16 -0
- tukuroi-3.0.0/docs/index.rst +36 -0
- tukuroi-3.0.0/docs/why.rst +59 -0
- tukuroi-3.0.0/makefile +78 -0
- tukuroi-3.0.0/prek.toml +82 -0
- tukuroi-3.0.0/pyproject.toml +267 -0
- tukuroi-3.0.0/scripts/check_copyright.py +48 -0
- tukuroi-3.0.0/scripts/document_rules.py +135 -0
- tukuroi-3.0.0/scripts/release_notes.py +55 -0
- tukuroi-3.0.0/scripts/repository_settings.py +581 -0
- tukuroi-3.0.0/scripts/tests/__init__.py +6 -0
- tukuroi-3.0.0/scripts/tests/test_release_notes.py +106 -0
- tukuroi-3.0.0/scripts/tests/test_repository_settings.py +841 -0
- tukuroi-3.0.0/src/tukuroi/__init__.py +55 -0
- tukuroi-3.0.0/src/tukuroi/__main__.py +19 -0
- tukuroi-3.0.0/src/tukuroi/__version__.py +24 -0
- tukuroi-3.0.0/src/tukuroi/api.py +459 -0
- tukuroi-3.0.0/src/tukuroi/cli.py +535 -0
- tukuroi-3.0.0/src/tukuroi/config.py +705 -0
- tukuroi-3.0.0/src/tukuroi/config_values.py +249 -0
- tukuroi-3.0.0/src/tukuroi/core/__init__.py +9 -0
- tukuroi-3.0.0/src/tukuroi/core/directives.py +76 -0
- tukuroi-3.0.0/src/tukuroi/core/edits.py +111 -0
- tukuroi-3.0.0/src/tukuroi/core/engine.py +228 -0
- tukuroi-3.0.0/src/tukuroi/core/format.py +93 -0
- tukuroi-3.0.0/src/tukuroi/core/imports.py +261 -0
- tukuroi-3.0.0/src/tukuroi/core/loader.py +372 -0
- tukuroi-3.0.0/src/tukuroi/core/names.py +332 -0
- tukuroi-3.0.0/src/tukuroi/core/rule.py +152 -0
- tukuroi-3.0.0/src/tukuroi/core/source.py +198 -0
- tukuroi-3.0.0/src/tukuroi/core/suppression.py +469 -0
- tukuroi-3.0.0/src/tukuroi/core/testing.py +93 -0
- tukuroi-3.0.0/src/tukuroi/core/text.py +127 -0
- tukuroi-3.0.0/src/tukuroi/documents.py +243 -0
- tukuroi-3.0.0/src/tukuroi/ftypes.py +194 -0
- tukuroi-3.0.0/src/tukuroi/lsp.py +277 -0
- tukuroi-3.0.0/src/tukuroi/output.py +120 -0
- tukuroi-3.0.0/src/tukuroi/plugins.py +138 -0
- tukuroi-3.0.0/src/tukuroi/pool.py +305 -0
- tukuroi-3.0.0/src/tukuroi/py.typed +0 -0
- tukuroi-3.0.0/src/tukuroi/rules/__init__.py +9 -0
- tukuroi-3.0.0/src/tukuroi/rules/_asserts.py +69 -0
- tukuroi-3.0.0/src/tukuroi/rules/no_assert_true_for_comparison.py +100 -0
- tukuroi-3.0.0/src/tukuroi/rules/no_namedtuple.py +299 -0
- tukuroi-3.0.0/src/tukuroi/rules/no_static_if_condition.py +152 -0
- tukuroi-3.0.0/src/tukuroi/rules/sorted_attributes_rule.py +279 -0
- tukuroi-3.0.0/src/tukuroi/rules/strict/__init__.py +10 -0
- tukuroi-3.0.0/src/tukuroi/rules/strict/no_value_object_default.py +453 -0
- tukuroi-3.0.0/src/tukuroi/rules/use_assert_in.py +111 -0
- tukuroi-3.0.0/src/tukuroi/rules/use_assert_is_not_none.py +89 -0
- tukuroi-3.0.0/src/tukuroi/rules/variadic_callable_syntax.py +179 -0
- tukuroi-3.0.0/src/tukuroi/template.py +68 -0
- tukuroi-3.0.0/src/tukuroi/testing.py +14 -0
- tukuroi-3.0.0/src/tukuroi/tests/__init__.py +81 -0
- tukuroi-3.0.0/src/tukuroi/tests/__main__.py +9 -0
- tukuroi-3.0.0/src/tukuroi/tests/api.py +814 -0
- tukuroi-3.0.0/src/tukuroi/tests/characterization_cli.py +851 -0
- tukuroi-3.0.0/src/tukuroi/tests/characterization_config.py +833 -0
- tukuroi-3.0.0/src/tukuroi/tests/characterization_custom_rules.py +777 -0
- tukuroi-3.0.0/src/tukuroi/tests/characterization_fix.py +794 -0
- tukuroi-3.0.0/src/tukuroi/tests/characterization_lsp.py +665 -0
- tukuroi-3.0.0/src/tukuroi/tests/characterization_suppression.py +575 -0
- tukuroi-3.0.0/src/tukuroi/tests/config.py +750 -0
- tukuroi-3.0.0/src/tukuroi/tests/config_fixit.py +233 -0
- tukuroi-3.0.0/src/tukuroi/tests/config_load_rules.py +142 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_directives.py +135 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_edits.py +148 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_engine.py +179 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_fix.py +321 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_imports.py +184 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_loader.py +494 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_names.py +220 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_rule.py +234 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_source.py +254 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_suppression.py +472 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_testing.py +157 -0
- tukuroi-3.0.0/src/tukuroi/tests/core_text.py +265 -0
- tukuroi-3.0.0/src/tukuroi/tests/custom_rules_switch.py +317 -0
- tukuroi-3.0.0/src/tukuroi/tests/documents.py +355 -0
- tukuroi-3.0.0/src/tukuroi/tests/examples.py +78 -0
- tukuroi-3.0.0/src/tukuroi/tests/ftypes.py +65 -0
- tukuroi-3.0.0/src/tukuroi/tests/lsp.py +37 -0
- tukuroi-3.0.0/src/tukuroi/tests/plugins.py +350 -0
- tukuroi-3.0.0/src/tukuroi/tests/pool.py +367 -0
- tukuroi-3.0.0/src/tukuroi/tests/rules_strict.py +90 -0
- tukuroi-3.0.0/src/tukuroi/tests/smoke.py +305 -0
- tukuroi-3.0.0/src/tukuroi/tests/template.py +92 -0
- tukuroi-3.0.0/src/tukuroi/tests/util.py +35 -0
- tukuroi-3.0.0/src/tukuroi/tests/walk.py +139 -0
- tukuroi-3.0.0/src/tukuroi/util.py +75 -0
- tukuroi-3.0.0/src/tukuroi/walk.py +73 -0
- tukuroi-3.0.0/uv.lock +1035 -0
tukuroi-3.0.0/.gitignore
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
src/tukuroi/__version__.py
|
|
2
|
+
html/
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
# C extensions
|
|
10
|
+
*.so
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
*.egg-info/
|
|
27
|
+
.installed.cfg
|
|
28
|
+
*.egg
|
|
29
|
+
MANIFEST
|
|
30
|
+
|
|
31
|
+
# PyInstaller
|
|
32
|
+
# Usually these files are written by a python script from a template
|
|
33
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
34
|
+
*.manifest
|
|
35
|
+
*.spec
|
|
36
|
+
|
|
37
|
+
# Installer logs
|
|
38
|
+
pip-log.txt
|
|
39
|
+
pip-delete-this-directory.txt
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
|
|
53
|
+
# Translations
|
|
54
|
+
*.mo
|
|
55
|
+
*.pot
|
|
56
|
+
|
|
57
|
+
# Django stuff:
|
|
58
|
+
*.log
|
|
59
|
+
local_settings.py
|
|
60
|
+
db.sqlite3
|
|
61
|
+
|
|
62
|
+
# Flask stuff:
|
|
63
|
+
instance/
|
|
64
|
+
.webassets-cache
|
|
65
|
+
|
|
66
|
+
# Scrapy stuff:
|
|
67
|
+
.scrapy
|
|
68
|
+
|
|
69
|
+
# Sphinx documentation
|
|
70
|
+
docs/_build/
|
|
71
|
+
|
|
72
|
+
# PyBuilder
|
|
73
|
+
target/
|
|
74
|
+
|
|
75
|
+
# Jupyter Notebook
|
|
76
|
+
.ipynb_checkpoints
|
|
77
|
+
|
|
78
|
+
# .python-version is committed: uv develops tukuroi on that version (#8).
|
|
79
|
+
|
|
80
|
+
# celery beat schedule file
|
|
81
|
+
celerybeat-schedule
|
|
82
|
+
|
|
83
|
+
# SageMath parsed files
|
|
84
|
+
*.sage.py
|
|
85
|
+
|
|
86
|
+
# Environments
|
|
87
|
+
.env
|
|
88
|
+
.venv
|
|
89
|
+
env/
|
|
90
|
+
venv/
|
|
91
|
+
ENV/
|
|
92
|
+
env.bak/
|
|
93
|
+
venv.bak/
|
|
94
|
+
|
|
95
|
+
# Spyder project settings
|
|
96
|
+
.spyderproject
|
|
97
|
+
.spyproject
|
|
98
|
+
|
|
99
|
+
# Rope project settings
|
|
100
|
+
.ropeproject
|
|
101
|
+
|
|
102
|
+
# mkdocs documentation
|
|
103
|
+
/site
|
|
104
|
+
|
|
105
|
+
# mypy
|
|
106
|
+
.mypy_cache/
|
|
107
|
+
|
|
108
|
+
# Visual Studio Code
|
|
109
|
+
.vscode/
|
tukuroi-3.0.0/.mailmap
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Amethyst Reese <amy@n7.gg> <john@noswap.com>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
- id: tukuroi-lint
|
|
2
|
+
name: tukuroi - lint
|
|
3
|
+
description: This hook shows tukuroi lints and suggested changes without applying autofixes.
|
|
4
|
+
entry: tukuroi lint --diff
|
|
5
|
+
language: python
|
|
6
|
+
types: [python]
|
|
7
|
+
- id: tukuroi-fix
|
|
8
|
+
name: tukuroi - lint and apply autofixes
|
|
9
|
+
description: This hook shows tukuroi lints and applies suggested changes.
|
|
10
|
+
entry: tukuroi fix --automatic
|
|
11
|
+
language: python
|
|
12
|
+
types: [python]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v3.0.0 (2026-11-16)
|
|
4
|
+
|
|
5
|
+
The first release of tukuroi, an unofficial fork of `Instagram/Fixit` after its
|
|
6
|
+
version 2.2.1. To move from Fixit, see [Coming from Fixit] in the README.
|
|
7
|
+
|
|
8
|
+
### BREAKING CHANGE
|
|
9
|
+
|
|
10
|
+
- **names**: the package, the command, the configuration (`[tool.tukuroi]`,
|
|
11
|
+
`tukuroi.toml`, `.tukuroi.toml`), the environment variable
|
|
12
|
+
`TUKUROI_CUSTOM_RULES`, the built-in rules (`tukuroi.rules`), the pre-commit
|
|
13
|
+
hooks, the functions (`tukuroi_paths`, `tukuroi_file`, `tukuroi_bytes`), the
|
|
14
|
+
default output format (`tukuroi`), and the LSP server (`tukuroi-lsp`, with the
|
|
15
|
+
source `tukuroi`) are named tukuroi. The names of Fixit are not read.
|
|
16
|
+
- **engine**: the rules run on `tukuroi.core`, built on Python's `ast`, in place
|
|
17
|
+
of LibCST. A rule is a subclass of `tukuroi.Rule`: the rules of Fixit need to
|
|
18
|
+
be ported.
|
|
19
|
+
- **python**: CPython 3.14 and 3.15 only, with their free-threaded builds.
|
|
20
|
+
- **rules**: fewer built-in rules: ruff has the others.
|
|
21
|
+
- **config**: an unknown key, a value of the wrong type, and a rule that cannot
|
|
22
|
+
be loaded are errors, with exit status 2. `python-version`, `options` and
|
|
23
|
+
`tags` are no longer supported.
|
|
24
|
+
- **format**: the fixed files are formatted only with `formatter = "ruff"`
|
|
25
|
+
(`pip install "tukuroi[ruff]"`); `black` and `ufmt` are gone.
|
|
26
|
+
- **output**: `output-template` takes the names of its fields only.
|
|
27
|
+
- **lsp**: the server talks over stdio only.
|
|
28
|
+
- **api**: `print_result()` takes an output format as `output=`, and
|
|
29
|
+
`Config.formatter` and `Config.output_format` are names.
|
|
30
|
+
|
|
31
|
+
### Feat
|
|
32
|
+
|
|
33
|
+
- **security**: `--no-custom-rules` (or `TUKUROI_CUSTOM_RULES`) loads only the
|
|
34
|
+
built-in rules, for a repository that you do not trust, and the search for
|
|
35
|
+
configurations stops at the root of the repository.
|
|
36
|
+
- **plugins**: other packages add formatters and output formats through entry
|
|
37
|
+
points.
|
|
38
|
+
- **output**: the output formats `json`, one JSON document of the results, and
|
|
39
|
+
`sarif`, a log of SARIF 2.1.0 for GitHub code scanning. They print nothing
|
|
40
|
+
else on stdout: the errors and the diffs go to stderr.
|
|
41
|
+
- **rules**: `report()` takes the span to report (`span=`) and the imports that
|
|
42
|
+
its fix leaves unused (`unused_imports=`), which tukuroi takes out;
|
|
43
|
+
`add_import()` and `remove_import()`; the names of imports follow the scopes
|
|
44
|
+
of Python. The types that a rule uses (`Source`, `ImportTable`, `Token`,
|
|
45
|
+
`Comment`) come from `tukuroi`.
|
|
46
|
+
- **fix**: a fix that would break the code is not applied, with a warning.
|
|
47
|
+
- **rules**: `tukuroi.rules.strict`, rules that are not enabled with
|
|
48
|
+
`tukuroi.rules`: `NoValueObjectDefault` reports the defaults of the fields of
|
|
49
|
+
value objects, those of dataclasses and of attrs.
|
|
50
|
+
- **cli**: `validate-config` loads the rules and the plugins that a config names.
|
|
51
|
+
- **config**: a config of Fixit (`[tool.fixit]`, `fixit.toml`, `.fixit.toml`) in
|
|
52
|
+
a directory with no config of tukuroi is a warning: tukuroi does not read it.
|
|
53
|
+
|
|
54
|
+
### Fix
|
|
55
|
+
|
|
56
|
+
- **lint**: a rule that ends its process (a crash, `os._exit`) gives that file
|
|
57
|
+
an error, and the other files their results.
|
|
58
|
+
- **lint**: a symbolic link to a directory out of the project no longer stops
|
|
59
|
+
`lint` and `fix`: a link to a directory is not walked, as git keeps the link.
|
|
60
|
+
The files of a directory are found by name, with `pathspec` alone, which reads
|
|
61
|
+
`.gitignore` as git does: `trailrunner` is no longer a dependency.
|
|
62
|
+
- **lsp**: the server reads the configuration again for each change.
|
|
63
|
+
- **config**: a module of rules that cannot be imported says why, and a package
|
|
64
|
+
that is not found at all, with no `enable-root-import`, hints at it.
|
|
65
|
+
- **lint**: the logs of the processes that lint files in parallel follow those
|
|
66
|
+
of tukuroi (`--debug`, `--quiet`, their format), and a warning given once is
|
|
67
|
+
given once, not once in each process.
|
|
68
|
+
- **fix**: with `fix -`, `--print-metrics` prints on stderr: stdout is the fixed
|
|
69
|
+
source alone.
|
|
70
|
+
|
|
71
|
+
[Coming from Fixit]: https://github.com/Fkinds/tukuroi#coming-from-fixit
|
|
72
|
+
|
|
73
|
+
## Fixit
|
|
74
|
+
|
|
75
|
+
The versions below are those of `Instagram/Fixit`, with the numbers of its
|
|
76
|
+
issues and pull requests.
|
|
77
|
+
|
|
78
|
+
## 2.2.0 - 2025-11-04
|
|
79
|
+
|
|
80
|
+
New:
|
|
81
|
+
|
|
82
|
+
- Add `fixit lsp` subcommands for LSP support by @llllvvuu (`Instagram/Fixit#390`)
|
|
83
|
+
- Add `fixit validate-config` command by @surge119 (`Instagram/Fixit#480`)
|
|
84
|
+
- Make format of fixit's terminal output configurable by @jvllmr (`Instagram/Fixit#437`)
|
|
85
|
+
- Allow a targeted (named rule) enable to override a module disable by @amyreese (`Instagram/Fixit#464`)
|
|
86
|
+
- Lintrule collections abc by @surge119 (`Instagram/Fixit#460`)
|
|
87
|
+
- Add fixit rule for variadic callable syntax by @yangdanny97 (`Instagram/Fixit#501`)
|
|
88
|
+
|
|
89
|
+
Fixed:
|
|
90
|
+
|
|
91
|
+
- Fix Minor Typo in the Docs by @max-muoto (`Instagram/Fixit#407`)
|
|
92
|
+
- Add Logging for Timing Metrics by @surge119 (`Instagram/Fixit#473`)
|
|
93
|
+
- Update DeprecatedABCImport Rule by @surge119 (`Instagram/Fixit#474`)
|
|
94
|
+
- Add More Metrics to be Logged by LoggerHook by @surge119 (`Instagram/Fixit#475`)
|
|
95
|
+
- Improved the Handling of Errors in Rule Collection by @surge119 (`Instagram/Fixit#479`)
|
|
96
|
+
- Fix validate config by @surge119 (`Instagram/Fixit#481`)
|
|
97
|
+
- Allow dash in rule names by @zsol (`Instagram/Fixit#503`)
|
|
98
|
+
- Add basic pyrefly configuration by @maggiemoss (`Instagram/Fixit#505`)
|
|
99
|
+
- Update pyrefly configuration. by @rchen152 (`Instagram/Fixit#507`)
|
|
100
|
+
- Make 3.9 minimum supported Python by @amyreese (`Instagram/Fixit#510`)
|
|
101
|
+
- Replace hatch with make+uv, separate docs builds by @amyreese (`Instagram/Fixit#511`)
|
|
102
|
+
- Fix version specifier matching for prerelease versions by @amyreese (`Instagram/Fixit#515`)
|
|
103
|
+
- Enable testing on 3.14/3.14t by @amyreese (`Instagram/Fixit#516`)
|
|
104
|
+
- Better generated docs, add no-index by @amyreese (`Instagram/Fixit#517`)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## 2.1.0 - 2023-10-25
|
|
108
|
+
|
|
109
|
+
Minor feature release
|
|
110
|
+
|
|
111
|
+
New:
|
|
112
|
+
|
|
113
|
+
- Lint and fix via STDIN by passing `-` as path (`Instagram/Fixit#388`)
|
|
114
|
+
- Skip linting files when no rules enabled (`Instagram/Fixit#379`)
|
|
115
|
+
|
|
116
|
+
Fixed:
|
|
117
|
+
|
|
118
|
+
- Reporting violations on `Module` nodes (`Instagram/Fixit#368`, `Instagram/Fixit#367`)
|
|
119
|
+
- Incorrect auto-fixes from `CompareSingletonPrimitivesByIs` (`Instagram/Fixit#391`, `Instagram/Fixit#378`, `Instagram/Fixit#375`)
|
|
120
|
+
- Parsing error for `typing.Literal` in `NoStringTypeAnnotation` rule (`Instagram/Fixit#400`, `Instagram/Fixit#377`)
|
|
121
|
+
- Error handling when rules fail to import in child processes (`Instagram/Fixit#401`, `Instagram/Fixit#381`)
|
|
122
|
+
|
|
123
|
+
Thanks:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
$ git shortlog -sn v2.0.0.post1...
|
|
127
|
+
8 Amethyst Reese
|
|
128
|
+
2 LW
|
|
129
|
+
1 Dave Turner
|
|
130
|
+
1 Uzumaki
|
|
131
|
+
1 Yajus Gakhar
|
|
132
|
+
1 rembridge
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## 2.0.0 - 2023-07-17
|
|
136
|
+
|
|
137
|
+
This is the first stable release with the major rework of Fixit. There are many
|
|
138
|
+
breaking changes since the `0.1.4` release, including configuration formats,
|
|
139
|
+
CLI commands, and lint rule APIs. Existing users should look at the
|
|
140
|
+
[Upgrade Guide][] for help migrating to the latest version.
|
|
141
|
+
|
|
142
|
+
[Upgrade Guide]: https://fixit.rtfd.io/en/latest/upgrade.html
|
|
143
|
+
|
|
144
|
+
### Major Changes
|
|
145
|
+
|
|
146
|
+
- Hierarchical configuration via TOML format
|
|
147
|
+
- Support for in-repo custom lint rules relative to project configuration
|
|
148
|
+
- Simplified CLI binary with subcommands to check for errors and apply fixes
|
|
149
|
+
- Interactive review and application of autofixes
|
|
150
|
+
- Dedicated API for integration with alternate frontends
|
|
151
|
+
- Overhauled documentation, with quick start guide
|
|
152
|
+
- Integration with pre-commit
|
|
153
|
+
- Support for configurable target version and selection of applicable rules
|
|
154
|
+
- Support for selecting and filtering rules by tags at runtime
|
|
155
|
+
|
|
156
|
+
### New Rules
|
|
157
|
+
|
|
158
|
+
- Added `UseAsyncSleepInAsyncDef` (`Instagram/Fixit#297`)
|
|
159
|
+
- Added `DeprecatedUnittestAsserts` (`Instagram/Fixit#314`)
|
|
160
|
+
|
|
161
|
+
## 2.0.0b1 - 2023-06-26
|
|
162
|
+
|
|
163
|
+
### Beta Release
|
|
164
|
+
|
|
165
|
+
This is a beta release of a major rework of Fixit. There are many breaking
|
|
166
|
+
API changes since the `0.1.4` release – existing users should wait for a stable
|
|
167
|
+
release before upgrading.
|
|
168
|
+
|
|
169
|
+
Please see the new [User Guide][] for an overview of the new version.
|
|
170
|
+
A migration guide is planned, but not yet available.
|
|
171
|
+
|
|
172
|
+
[User Guide]: https://fixit.rtfd.io/en/latest/guide.html
|
|
173
|
+
|
|
174
|
+
### Major Changes
|
|
175
|
+
|
|
176
|
+
- New `test` command for validating local lint rules (`Instagram/Fixit#300`)
|
|
177
|
+
- Support for configurable target version and selection of applicable rules (`Instagram/Fixit#332`)
|
|
178
|
+
- Support for selecting and filtering rules by tags at runtime (`Instagram/Fixit#333`)
|
|
179
|
+
- Support for `# lint-ignore` and `# lint-fixme` directives (`Instagram/Fixit#334`)
|
|
180
|
+
|
|
181
|
+
### New Rules
|
|
182
|
+
|
|
183
|
+
- Added `UseAsyncSleepInAsyncDefRule` (`Instagram/Fixit#297`)
|
|
184
|
+
- Added `DeprecatedUnittestAssertsRule` (`Instagram/Fixit#314`)
|
|
185
|
+
|
|
186
|
+
## 2.0.0a1 - 2023-04-07
|
|
187
|
+
|
|
188
|
+
### Alpha Release
|
|
189
|
+
|
|
190
|
+
This is an alpha release of a major rework of Fixit. There are many breaking
|
|
191
|
+
API changes since the `0.1.4` release – existing users should wait for a stable
|
|
192
|
+
release before upgrading.
|
|
193
|
+
|
|
194
|
+
Please see the new [User Guide][] for an overview of the new version.
|
|
195
|
+
A migration guide is planned, but not yet available.
|
|
196
|
+
|
|
197
|
+
[User Guide]: https://fixit.rtfd.io/en/latest/guide.html
|
|
198
|
+
|
|
199
|
+
### Major Changes
|
|
200
|
+
|
|
201
|
+
- Hierarchical configuration via TOML format
|
|
202
|
+
- Support for in-repo custom lint rules relative to project configuration
|
|
203
|
+
- Simplified CLI binary with subcommands to check for errors and apply fixes
|
|
204
|
+
- Interactive review and application of autofixes
|
|
205
|
+
- Dedicated API for integration with alternate frontends
|
|
206
|
+
- Overhauled documentation, with quick start guide
|
|
207
|
+
- Integration with pre-commit
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## 0.1.4 - 2021-07-30
|
|
211
|
+
### Updated
|
|
212
|
+
- Fix typo [#163](https://github.com/Instagram/Fixit/pull/163)
|
|
213
|
+
- Refactor ipc_main [#175](https://github.com/Instagram/Fixit/pull/175)
|
|
214
|
+
- Refactor search yaml [#172](https://github.com/Instagram/Fixit/pull/172)
|
|
215
|
+
- Bug fix for UseTypesFromTypingRule [#178](https://github.com/Instagram/Fixit/pull/178)
|
|
216
|
+
- Fix sentinel type error [#187](https://github.com/Instagram/Fixit/pull/187)
|
|
217
|
+
- Autofix docstrings [#190](https://github.com/Instagram/Fixit/pull/190)
|
|
218
|
+
- Fix pyre type-check errors [#196](https://github.com/Instagram/Fixit/pull/196)
|
|
219
|
+
- Add JSON Schema for Fixit configs [#188](https://github.com/Instagram/Fixit/pull/188)
|
|
220
|
+
- Adds allow_list_rules setting for configs [#184](https://github.com/Instagram/Fixit/pull/184)
|
|
221
|
+
- Adds allow_list_rules to schema [#197](https://github.com/Instagram/Fixit/pull/197)
|
|
222
|
+
- Fix run_rules bug [#200](https://github.com/Instagram/Fixit/pull/200)
|
|
223
|
+
|
|
224
|
+
## 0.1.3 - 2020-12-09
|
|
225
|
+
|
|
226
|
+
### New Rules
|
|
227
|
+
- Add NoRedundantArgumentsSuperRule [#154](https://github.com/Instagram/Fixit/pull/154)
|
|
228
|
+
- Add ExplicitFrozenDataclassRule [#158](https://github.com/Instagram/Fixit/pull/158)
|
|
229
|
+
- Add UseLintFixmeCommentRule [#161](https://github.com/Instagram/Fixit/pull/161)
|
|
230
|
+
- Add UseAssertInRule [#159](https://github.com/Instagram/Fixit/pull/159)
|
|
231
|
+
|
|
232
|
+
### Updated
|
|
233
|
+
- await async rule does not account for decorators [#150](https://github.com/Instagram/Fixit/pull/150)
|
|
234
|
+
- Allow glob patterns instead of parent dirs for matching configs [#156](https://github.com/Instagram/Fixit/pull/156)
|
|
235
|
+
|
|
236
|
+
## 0.1.2 - 2020-10-29
|
|
237
|
+
|
|
238
|
+
### New Rules
|
|
239
|
+
- Add SortedAttributesRule [#149](https://github.com/Instagram/Fixit/pull/149)
|
|
240
|
+
|
|
241
|
+
### Added
|
|
242
|
+
- New unified `fixit` CLI [#148](https://github.com/Instagram/Fixit/pull/148)
|
|
243
|
+
|
|
244
|
+
### Updated
|
|
245
|
+
- Add `use_noqa` configuration to control support of the `noqa` Flake8 suppression comment. Defaults to `False` [#151](https://github.com/Instagram/Fixit/pull/151)
|
|
246
|
+
|
|
247
|
+
## 0.1.1 - 2020-10-08
|
|
248
|
+
|
|
249
|
+
### New Rules
|
|
250
|
+
- Add UseAssertIsNotNoneRule [#144](https://github.com/Instagram/Fixit/pull/144)
|
|
251
|
+
- Add MissingHeaderRule to check copyright header comments [#142](https://github.com/Instagram/Fixit/pull/142)
|
|
252
|
+
- Add NoStringTypeAnnotationRule [#140](https://github.com/Instagram/Fixit/pull/140)
|
|
253
|
+
- Add NoNamedTupleRule [#136](https://github.com/Instagram/Fixit/pull/136)
|
|
254
|
+
- Add NoAssertTrueForComparisonsRule to catch some incorrect uses of assertTrue() [#135](https://github.com/Instagram/Fixit/pull/135)
|
|
255
|
+
- Add CollapseIsinstanceChecksRule [#116](https://github.com/Instagram/Fixit/pull/116)
|
|
256
|
+
- Add NoUnnecessaryFormatStringRule and UseFstringRule [#101](https://github.com/Instagram/Fixit/pull/101)
|
|
257
|
+
- Add NoRedundantLambdaRule. [#112](https://github.com/Instagram/Fixit/pull/112)
|
|
258
|
+
|
|
259
|
+
### Added
|
|
260
|
+
- add_new_rule CLI for adding new rule file [#123](https://github.com/Instagram/Fixit/pull/123), [#131](https://github.com/Instagram/Fixit/pull/131)
|
|
261
|
+
|
|
262
|
+
### Updated
|
|
263
|
+
- Ensure first lines remain intact with AddMissingHeaderRule [#143](https://github.com/Instagram/Fixit/pull/143)
|
|
264
|
+
- Documentation improvements: [#113](https://github.com/Instagram/Fixit/pull/113), [#117](https://github.com/Instagram/Fixit/pull/117),
|
|
265
|
+
[#118](https://github.com/Instagram/Fixit/pull/118), [#120](https://github.com/Instagram/Fixit/pull/120)
|
|
266
|
+
[#133](https://github.com/Instagram/Fixit/pull/133), [#138](https://github.com/Instagram/Fixit/pull/138)
|
|
267
|
+
- Improve test message [#137](https://github.com/Instagram/Fixit/pull/137)
|
|
268
|
+
|
|
269
|
+
## 0.1.0 - 2020-09-02
|
|
270
|
+
|
|
271
|
+
### Added
|
|
272
|
+
|
|
273
|
+
- First public release of Fixit.
|
|
274
|
+
- Python Lint Framework based on LibCST with autofix functionality.
|
|
275
|
+
- Comes pre-packaged with a set of built-in lint rules.
|
|
276
|
+
- Provides scripts for linting, autofixing and inserting lint suppressions into source code.
|
|
277
|
+
- Provides development kit to build and enforce custom lint rules.
|
|
278
|
+
- Full suite of unit tests.
|