Mvdef

Latest version: v0.9.4

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

Scan your dependencies

Page 1 of 2

0.8.0

🎶 *(To the tune of "Rudolph the red nosed reindeer")* 🎶

- :santa: 4 entrypoints: `mvdef`, `mvcls`, `cpdef`, `cpcls` to move/copy functions/classes https://github.com/lmmx/mvdef/commit/defe684c7fbd75d027d5fc402d52c43e6a2ec4b7
- :gift: (all now documented) https://github.com/lmmx/mvdef/commit/8fc5cf8dfca7038c0a70908d775eca578c876a8d
- :snowman_with_snow: paths can now be specified to any depth after switching to a recursive path retrieval https://github.com/lmmx/mvdef/commit/3c4c52452da19a42e036790dd0833dc307e7f0a6
- :christmas_tree: big refactor of the `ast_util` module to support classes as well as functions https://github.com/lmmx/mvdef/commit/3a381758fbaad6e791f66a704bc2569a0e24cf21

- [Full changelog](https://github.com/lmmx/mvdef/compare/v0.6.2...v0.8.0)

- :package: PyPi [v0.8.0](https://pypi.org/project/mvdef/0.5.14/)

0.6.0

- :new: Added ability to move methods with a specified `into_path` using the `-i`/`--into` flag, optionally, once following each `-m`/`--mv` flag (see 22)
- Flags are validated to ensure if `-i`/`--into` is specified it comes immediately after `-m`/`--mv`
- Initial support is for the `into_path` to specify at most 2 levels (a method of a top-level class/inner function of a top-level funcdef)

- [Full changelog](https://github.com/lmmx/mvdef/compare/v0.5.14...v0.6.0)

- :package: PyPi [v0.6.0](https://pypi.org/project/mvdef/0.5.14/)

0.5.14

- :new: Added ability to move methods ([compare](https://github.com/lmmx/mvdef/compare/v0.5.13...v0.5.14)), see #20
- Methods to move may now be specified in the `-m` argument with the `.` separator, interpreted as "is a class which contains a method" (e.g. `Foo.bar` looks for the inner function `bar` within global scope classdef `Foo`)

- :bug: Fixed 21 in which single-method classdefs had their only AST body item excised, leaving an invalid program (raising an "expected indented block" error) by replacing with a `pass` statement (https://github.com/lmmx/mvdef/commit/f704b58d6d70e8f36301e7b41657891839cbc85b)

- :package: PyPi [v0.5.14](https://pypi.org/project/mvdef/0.5.14/)

0.5.13

- :next_track_button: Replace trivial list expansions followed by 0-indexing with `next(GeneratorExpr)` (19: https://github.com/lmmx/mvdef/commit/97108a9b13ed1b970b11ae8e3e957ae21384504c, https://github.com/lmmx/mvdef/commit/8f1289f0eabeb623de7fc33d9538a0a1dd32b1fe, https://github.com/lmmx/mvdef/commit/406ea854a5ddf06123fa34a18b6365abd2d6a03f)

- :inbox_tray: Refactor dict merges for the edit agenda into a neat shared method [`get_merged_dicts`](https://github.com/lmmx/mvdef/blob/406ea854a5ddf06123fa34a18b6365abd2d6a03f/src/mvdef/transfer.py#L192-L202) (https://github.com/lmmx/mvdef/commit/406ea854a5ddf06123fa34a18b6365abd2d6a03f)

- :new: Basically all the rest of the changes ([compare](https://github.com/lmmx/mvdef/compare/v0.5.12...v0.5.13)) were on #18, adding the ability to move inner functions
- Functions to move may now be specified in the `-m` argument with the `:` separator, interpreted as "contains an inner function" (e.g. `foo:bar` looks for the inner function `bar` within global scope function `foo`)

- :package: PyPi [v0.5.13](https://pypi.org/project/mvdef/0.5.13/)

0.5.12

- First few passes at refactoring AST utility module (continuing from 15):
- Add an `EditAgenda` class [`fd0ba02`](https://github.com/lmmx/mvdef/commit/fd0ba0211882c75ee5b3485f605a76087c595aaf)
- Refactoring AST imp_def_subsets dicts into classes [`3f130af`](https://github.com/lmmx/mvdef/commit/3f130af51b520ad74ba175f718be96e39c4be151)
- Adding imports to agenda [`5c06815`](https://github.com/lmmx/mvdef/commit/5c06815fbcb89534fbc6d52ed11f3d4573ee3398)
- No bugfixes :innocent:
- PyPi [v0.5.12](https://pypi.org/project/mvdef/0.5.12/)

0.5.10

- Major refactoring of AST parsing transfer logic (15) [`ce8e863`](https://github.com/lmmx/mvdef/commit/ce8e86381761878cbfa007de7e97cbe55a19ec72)
- Linted with black [`911ffeb`](https://github.com/lmmx/mvdef/commit/911ffeb9ec40e50eb139a7c1e9febabcd159fa52)
- Minor bugfix picked up during the refactoring (17)
- PyPi [v0.5.10](https://pypi.org/project/mvdef/0.5.10/)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.