Pybetter

Latest version: v0.4.1

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

Scan your dependencies

Page 2 of 3

0.3.4

Bugfixes:

* (B001) Fix issue with trying to convert multiple consecutive comparisons.
* (B002) Properly process nested functions.
* (B002) Ensure that order of arguments is preserved during iteration.
* (B003) Fix unnecessary elimination of parens inside returned expression.

Misc:

* `--diff` option behaviour has changed:
* Output is now being printed on `sys.stderr` instead if `sys.stdout`.
* Source lines are no longer highlighted if `sys.stderr` is redirected away from TTY.

0.3.3

Bugfixes:

* Fix issue with `noqa` directive with one argument being treated as `noqa` without any arguments.
* (B001) Fix arrangement of parentheses on transformed comparisons.

Misc:

* Use `pygments` for highlighting of diffs.
* Output time taken to apply selected transformations.
* Output total time taken to process all files in provided paths.
* Now we use Travis CI to run tests on each commit.

Features:

* New "improvements" added:
* **B008: Replace nested 'with' statements with a compound one.**
* **B009: Replace unhashable list literals in set constructors**

0.3.2

Bugfixes:

* (B002) Fix issue when new inits were added before docstrings.
* (B002) Remove unneeded indent after generated initializations.

Misc:

* Nothing is displayed if no changes were made to the file.

0.3.1

Bugfixes:

* (B003) No longer remove parentheses from multi-line return statements.

* (B004) `a == False` is now correctly reduced to `not a`.

0.3.0

Features:

* Now we will recurse over every path provided and process all `*.py` files found.
* Added support for `--select`/`--ignore` options for fine-tuning set of checks being run.
* Added support for per-line disabling of specific checks using `noqa` comments.

Bugfixes:

* Variable names and constants are now properly added to `__all__` attribute.

* Small fixes in README.

0.2.1

Features:

* New "improvements" added:
* **B007: Convert f-strings without expressions into regular strings.**

Misc:

* Fix some typing violations.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.