Skip to content

Update vulture to 2.14#458

Open
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-vulture-0.26-to-2.14
Open

Update vulture to 2.14#458
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-vulture-0.26-to-2.14

Conversation

@pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Dec 8, 2024

This PR updates vulture from 0.26 to 2.14.

Changelog

2.14

* Improve reachability analysis (kreathon, 270, 302).
* Add type hints for `get_unused_code` and the fields of the `Item` class (John Doknjas, 361).

2.13

* Add support for Python 3.13 (Jendrik Seipp, 369).
* Add PyPI and conda-forge badges to README file (Trevor James Smith, 356).
* Include `tests/**/*.toml` in sdist (Colin Watson).

2.12

* Use `ruff` for linting and formatting (Anh Trinh, 347, 349).
* Replace `tox` by `pre-commit` for linting and formatting (Anh Trinh, 349).
* Add `--config` flag to specify path to pyproject.toml configuration file (Glen Robertson, 352).

2.11

* Switch to tomllib/tomli to support heterogeneous arrays (Sebastian Csar, 340).
* Bump flake8, flake8-comprehensions and flake8-bugbear (Sebastian Csar, 341).
* Provide whitelist parity for `MagicMock` and `Mock` (maxrake, 342).

2.10

* Drop support for Python 3.7 (Jendrik Seipp, 323).
* Add support for Python 3.12 (Jendrik Seipp, 332).
* Use `end_lineno` AST attribute to obtain more accurate line counts (Jendrik Seipp).

2.9.1

* Use exit code 0 for `--help` and `--version` again (Jendrik Seipp, 321).

2.9

* Use exit code 3 when dead code is found (whosayn, 319).
* Treat non-supported decorator names as "" instead of crashing (Llandy3d and Jendrik Seipp, 284).
* Drop support for Python 3.6 (Jendrik Seipp).

2.8

* Add `UnicodeEncodeError` exception handling to `core.py` (milanbalazs, 299).
* Add whitelist for `Enum` attributes `_name_` and `_value_` (Eugene Toder, 305).
* Run tests and add PyPI trove for Python 3.11 (Jendrik Seipp).

2.7

* Ignore `setup_module()`, `teardown_module()`, etc. in pytest `test_*.py` files (Jendrik Seipp).
* Add whitelist for `socketserver.TCPServer.allow_reuse_address` (Ben Elliston).
* Clarify that `--exclude` patterns are matched against absolute paths (Jendrik Seipp, 260).
* Fix example in README file (Jendrik Seipp, 272).

2.6

* Add basic `match` statement support (kreathon, 276, 291).

2.5

* Mark imports in `__all__` as used (kreathon, 172, 282).
* Add whitelist for `pint.UnitRegistry.default_formatter` (Ben Elliston, 258).

2.4

* Print absolute filepaths as relative again (as in version 2.1 and before)
if they are below the current directory (The-Compiler, 246).
* Run tests and add PyPI trove for Python 3.10 (chayim, 266).
* Allow using the `del` keyword to mark unused variables (sshishov, 279).

2.3

* Add [pre-commit](https://pre-commit.com) hook (Clément Robert, #244).

2.2

* Only parse format strings when being used with `locals()` (jingw, 225).
* Don't override paths in pyproject.toml with empty CLI paths (bcbnz, 228).
* Run continuous integration tests for Python 3.9 (ju-sh, 232).
* Use pathlib internally (ju-sh, 226).

2.1

* Treat `getattr/hasattr(obj, "constant_string", ...)` as a reference to
`obj.constant_string` (jingw, 219).
* Fix false positives when assigning to `x.some_name` but reading via
`some_name`, at the cost of potential false negatives (jingw, 221).
* Allow reading options from `pyproject.toml` (Michel Albert, 164, 215).

2.0

* Parse ` type: ...` comments if on Python 3.8+ (jingw, 220).
* Bump minimum Python version to 3.6 (Jendrik Seipp, 218). The last
Vulture release that supports Python 2.7 and Python 3.5 is version 1.6.
* Consider all files under `test` or `tests` directories test files
(Jendrik Seipp).
* Ignore `logging.Logger.propagate` attribute (Jendrik Seipp).

1.6

* Differentiate between functions and methods (Jendrik Seipp, 112, 209).
* Move from Travis to GitHub actions (RJ722, 211).

1.5

* Support flake8 "noqa" error codes F401 (unused import) and F841 (unused
local variable) (RJ722, 195).
* Detect unreachable code in conditional expressions
(Agathiyan Bragadeesh, 178).

1.4

* Ignore unused import statements in `__init__.py` (RJ722, 192).
* Report first decorator's line number for unused decorated objects on
Python 3.8+ (RJ722, 200).
* Check code with black and pyupgrade.

1.3

* Detect redundant 'if' conditions without 'else' blocks.
* Add whitelist for `string.Formatter` (Joseph Bylund, 183).

1.2

* Fix tests for Python 3.8 (166).
* Use new `Constant` AST node under Python 3.8+ (175).
* Add test for f-strings (177).
* Add whitelist for `logging` module.

1.1

* Add `sys.excepthook` to `sys` whitelist.
* Add whitelist for `ctypes` module.
* Check that type annotations are parsed and type comments are ignored
(thanks kx-chen).
* Support checking files with BOM under Python 2.7 (170).

1.0

* Add `--ignore-decorators` flag (thanks RJ722).
* Add whitelist for `threading` module (thanks andrewhalle).

0.29

* Add `--ignore-names` flag for ignoring names matching the given glob
patterns (thanks RJ722).

0.28

* Add `--make-whitelist` flag for reporting output in whitelist format
(thanks RJ722).
* Ignore case of `--exclude` arguments on Windows.
* Add `*-test.py` to recognized test file patterns.
* Add `failureException`, `longMessage` and `maxDiff` to `unittest`
whitelist.
* Refer to actual objects rather than their mocks in default
whitelists (thanks RJ722).
* Don't import any Vulture modules in setup.py (thanks RJ722).

0.27

* Report `while (True): ... else: ...` as unreachable (thanks RJ722).
* Use `argparse` instead of `optparse`.
* Whitelist Mock.return\_value and Mock.side\_effect in unittest.mock
module.
* Drop support for Python 2.6 and 3.3.
* Improve documentation and test coverage (thanks RJ722).
Links

@pyup-bot pyup-bot mentioned this pull request Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant