A new version of cattrs22.2.0 was just published to PyPi.
As a result, new installations of reformat-gherkin, will fail to parse tables in feature files with errors such as:
ClassValidationError: While structuring GherkinDocument (1 sub-exception)
and sometimes even go as far as to reformat the file but without the tables. This happens for both step data tables and example tables in scenario outlines.
Describe the bug
A new version of
cattrs
22.2.0
was just published to PyPi.As a result, new installations of
reformat-gherkin
, will fail to parse tables in feature files with errors such as:ClassValidationError: While structuring GherkinDocument (1 sub-exception)
and sometimes even go as far as to reformat the file but without the tables. This happens for both step data tables and example tables in scenario outlines.
We are using v3.0.0.
Config file:
To Reproduce
Steps to reproduce the behaviour
reformat-gherkin
Expected behaviour
Successfully reformat Gherkin feature files containing tables
Actual behaviour
Gherkin feature files containing tables either:
Environment
Additional context
Seems like a breaking change in the latest cattrs
reformat-gherkin was working fine before this morning