How to use the yay.ast.bindings function in yay

To help you get started, we’ve selected a few yay examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yaybu / yaybu / yaybu / core / config.py View on Github external
except NoMatching:
            storage_config = {}
            klass = "localfilestatestorage"

        state = StateStorageType.types.get(klass)(**storage_config)

        if self.simulate:
            state = SimulatedStateStorageAdaptor(state)

        return state

    def changed(self, changed=True):
        self._changed = self._changed or changed


ast.bindings.append((lambda v: isinstance(v, YaybuArgv), lambda v: v))