Fixit

Latest version: v2.1.0

Safety actively analyzes 621498 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.1.0

Minor feature release

New:

- Lint and fix via STDIN by passing `-` as path (388)
- Skip linting files when no rules enabled (379)

Fixed:

- Reporting violations on `Module` nodes (368, 367)
- Incorrect auto-fixes from `CompareSingletonPrimitivesByIs` (391, 378, 375)
- Parsing error for `typing.Literal` in `NoStringTypeAnnotation` rule (400, 377)
- Error handling when rules fail to import in child processes (401, 381)

Thanks:


$ git shortlog -sn v2.0.0.post1...
8 Amethyst Reese
2 LW
1 Dave Turner
1 Uzumaki
1 Yajus Gakhar
1 rembridge

2.0.0

This is the first stable release with the major rework of Fixit. There are many
breaking changes since the `0.1.4` release, including configuration formats,
CLI commands, and lint rule APIs. Existing users should look at the
[Upgrade Guide][] for help migrating to the latest version.

[Upgrade Guide]: https://fixit.rtfd.io/en/latest/upgrade.html

Major Changes

- Hierarchical configuration via TOML format
- Support for in-repo custom lint rules relative to project configuration
- Simplified CLI binary with subcommands to check for errors and apply fixes
- Interactive review and application of autofixes
- Dedicated API for integration with alternate frontends
- Overhauled documentation, with quick start guide
- Integration with pre-commit
- Support for configurable target version and selection of applicable rules
- Support for selecting and filtering rules by tags at runtime

New Rules

- Added `UseAsyncSleepInAsyncDef` (297)
- Added `DeprecatedUnittestAsserts` (314)

2.0.0b1

Beta Release

This is a beta release of a major rework of Fixit. There are many breaking
API changes since the `0.1.4` release – existing users should wait for a stable
release before upgrading.

Please see the new [User Guide][] for an overview of the new version.
A migration guide is planned, but not yet available.

[User Guide]: https://fixit.rtfd.io/en/latest/guide.html

Major Changes

- New `test` command for validating local lint rules (300)
- Support for configurable target version and selection of applicable rules (332)
- Support for selecting and filtering rules by tags at runtime (333)
- Support for ` lint-ignore` and ` lint-fixme` directives (334)

New Rules

- Added `UseAsyncSleepInAsyncDefRule` (297)
- Added `DeprecatedUnittestAssertsRule` (314)

2.0.0a1

Alpha Release

This is an alpha release of a major rework of Fixit. There are many breaking
API changes since the `0.1.4` release – existing users should wait for a stable
release before upgrading.

Please see the new [User Guide][] for an overview of the new version.
A migration guide is planned, but not yet available.

[User Guide]: https://fixit.rtfd.io/en/latest/guide.html

Major Changes

- Hierarchical configuration via TOML format
- Support for in-repo custom lint rules relative to project configuration
- Simplified CLI binary with subcommands to check for errors and apply fixes
- Interactive review and application of autofixes
- Dedicated API for integration with alternate frontends
- Overhauled documentation, with quick start guide
- Integration with pre-commit

0.1.4

Updated
- Fix typo [163](https://github.com/Instagram/Fixit/pull/163)
- Refactor ipc_main [175](https://github.com/Instagram/Fixit/pull/175)
- Refactor search yaml [172](https://github.com/Instagram/Fixit/pull/172)
- Bug fix for UseTypesFromTypingRule [178](https://github.com/Instagram/Fixit/pull/178)
- Fix sentinel type error [187](https://github.com/Instagram/Fixit/pull/187)
- Autofix docstrings [190](https://github.com/Instagram/Fixit/pull/190)
- Fix pyre type-check errors [196](https://github.com/Instagram/Fixit/pull/196)
- Add JSON Schema for Fixit configs [188](https://github.com/Instagram/Fixit/pull/188)
- Adds allow_list_rules setting for configs [184](https://github.com/Instagram/Fixit/pull/184)
- Adds allow_list_rules to schema [197](https://github.com/Instagram/Fixit/pull/197)
- Fix run_rules bug [200](https://github.com/Instagram/Fixit/pull/200)

0.1.3

New Rules
- Add NoRedundantArgumentsSuperRule [154](https://github.com/Instagram/Fixit/pull/154)
- Add ExplicitFrozenDataclassRule [158](https://github.com/Instagram/Fixit/pull/158)
- Add UseLintFixmeCommentRule [161](https://github.com/Instagram/Fixit/pull/161)
- Add UseAssertInRule [159](https://github.com/Instagram/Fixit/pull/159)

Updated
- await async rule does not account for decorators [150](https://github.com/Instagram/Fixit/pull/150)
- Allow glob patterns instead of parent dirs for matching configs [156](https://github.com/Instagram/Fixit/pull/156)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.