editors

A set of tools to automate clients code upgrade as much as possible.


License
BSD-2-Clause
Install
pip install editors==1.0.1

Documentation

logo

azure-pipeline codecov docs gitter pypi black


A set of tools to automate clients' code upgrade as much as possible.

Installation

pip install editors[stories]

Stories Upgrade

Upgrade usage of stories DSL to a newer versions.

stories-upgrade $(git ls-files '*.py')
--- a/bookshelf/usecases/buy_subscription.py
+++ b/bookshelf/usecases/buy_subscription.py
@@ -45,17 +45,20 @@ class BuySubscription:
     def find_category(self, ctx):

         category = self.load_category(ctx.category_id)
-        return Success(category=category)
+        ctx.category = category
+        return Success()