Hey Joey,

I had similar problems where yapf was reformatting every file until I
explicitly installed yapf==0.29.0, which is what Beam uses
<https://github.com/apache/beam/blob/95af465f0dfaa123364e5880bccc3dff32a19b39/sdks/python/tox.ini#L245>.
Can you check if you have a different version installed?

Best,
Ahmed

On Mon, Oct 2, 2023 at 12:59 PM Joey Tran <joey.t...@schrodinger.com> wrote:

> Does anyone have any recommendations on how to get yapf to play nicely
> with beam workflows? Left to its own, it absolutely destroys the
> readability of a workflow. The solution is simple enough by just adding #
> yapf:disables everywhere but it's not really ideal. Are there any specific
> yapf knobs recommended for mitigating this?
>
> Best,
> Joey
>
> --
>
> Joey Tran | Senior Developer Il | AutoDesigner TL
>
> *he/him*
>
> [image: Schrödinger, Inc.] <https://schrodinger.com/>
>

Reply via email to