themanifold
themanifold
Ah, turns out the support for decorators in pylint is a bit lacking. If you read https://github.com/PyCQA/pylint/issues/259 you'll see that there's a work around. I will test this now.
OK, so following that information, you do something like this in your `.pylintrc`: ``` [TYPECHECK] signature-mutators=pyinfra.api.operation.operation ``` See this: https://github.com/PyCQA/pylint/blob/master/doc/whatsnew/2.4.rst What unfortunately happens is that you will get false negatives...
Yes, I think this is a good idea. You could even make it two completely separate steps: `pyinfra plan` and `pyinfra apply` just like those tools you mentioned.
> This could enable some interesting workflows where the JSON could be used to diff remote hosts and/or plan and apply could be done on a different machines (is that...
> It is possible, however, to get arbitrary information from the target machine during fact gathering using the server.Command fact. Would this satisfy your use-case? Yes, this is actually great...
Here is a workaround: ``` import crypt server.user( "foo", present=True, unique=True, ) crypt_pw = crypt.crypt(PW_FROM_ENV_VAR, crypt.METHOD_SHA512) server.shell( name=f"Add password to foo user", commands=[f"""echo 'foo:{crypt_pw}' | chpasswd -e"""], ) ```
I have need for this use case, also.
We can petition pypi to request a name transfer: https://peps.python.org/pep-0541/#how-to-request-a-name-transfer but we need some one to step up and submit that, and someone to take ownership of the package.
Is there anyone else we could ask?
> First of all, use a boolean value for fail_fast = argument. Not true, as the `parse_bool()` function, given here, only accepts strings: https://github.com/mosquito/aiormq/blob/19d9372b504ce6d40ea4b1004bf62e398fe848a1/aiormq/connection.py#L85 Passing in `"False"` does work.