{"action":"created","issue":{"url":"https://api.github.com/repos/LabPy/lantz_core/issues/9","labels_url":"https://api.github.com/repos/LabPy/lantz_core/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/LabPy/lantz_core/issues/9/comments","events_url":"https://api.github.com/repos/LabPy/lantz_core/issues/9/events","html_url":"https://github.com/LabPy/lantz_core/pull/9","id":73126372,"number":9,"title":"Add the Action decorator class.","user":{"login":"MatthieuDartiailh","id":4481740,"avatar_url":"https://avatars.githubusercontent.com/u/4481740?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthieuDartiailh","html_url":"https://github.com/MatthieuDartiailh","followers_url":"https://api.github.com/users/MatthieuDartiailh/followers","following_url":"https://api.github.com/users/MatthieuDartiailh/following{/other_user}","gists_url":"https://api.github.com/users/MatthieuDartiailh/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthieuDartiailh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthieuDartiailh/subscriptions","organizations_url":"https://api.github.com/users/MatthieuDartiailh/orgs","repos_url":"https://api.github.com/users/MatthieuDartiailh/repos","events_url":"https://api.github.com/users/MatthieuDartiailh/events{/privacy}","received_events_url":"https://api.github.com/users/MatthieuDartiailh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-04T20:57:26Z","updated_at":"2015-05-08T23:49:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/LabPy/lantz_core/pulls/9","html_url":"https://github.com/LabPy/lantz_core/pull/9","diff_url":"https://github.com/LabPy/lantz_core/pull/9.diff","patch_url":"https://github.com/LabPy/lantz_core/pull/9.patch"},"body":"Add the Action class to use as a decorator. The class can be easily customized by overriding the decorate method. By default only the units keywords is used and can be specified to use wraps from pint.UnitRegistry if pint is available.\r\nThe class must always be instantiate before using it as a decorator ie : \r\n``` python\r\n@Action()\r\ndef test(self):\r\n    pass\r\n```\r\nnot \r\n``` python\r\n@Action\r\ndef test(self):\r\n    pass\r\n```"},"comment":{"url":"https://api.github.com/repos/LabPy/lantz_core/issues/comments/100395342","html_url":"https://github.com/LabPy/lantz_core/pull/9#issuecomment-100395342","issue_url":"https://api.github.com/repos/LabPy/lantz_core/issues/9","id":100395342,"user":{"login":"MatthieuDartiailh","id":4481740,"avatar_url":"https://avatars.githubusercontent.com/u/4481740?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthieuDartiailh","html_url":"https://github.com/MatthieuDartiailh","followers_url":"https://api.github.com/users/MatthieuDartiailh/followers","following_url":"https://api.github.com/users/MatthieuDartiailh/following{/other_user}","gists_url":"https://api.github.com/users/MatthieuDartiailh/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthieuDartiailh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthieuDartiailh/subscriptions","organizations_url":"https://api.github.com/users/MatthieuDartiailh/orgs","repos_url":"https://api.github.com/users/MatthieuDartiailh/repos","events_url":"https://api.github.com/users/MatthieuDartiailh/events{/privacy}","received_events_url":"https://api.github.com/users/MatthieuDartiailh/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T23:49:06Z","updated_at":"2015-05-08T23:49:06Z","body":"I looked a bit more at the check enhancement. So either we go the hard way and we do another ast transformer but it will take some time to figure out or we consider pytest an optional dependency and if present we use it to do the job. I am not sure it is worth reinventing the wheel."}}