imbal / safeyaml

SafeYAML: A linter for YAML-favoured JSON (& autoformatting too!)
240 stars 11 forks source link

Auto-format code #9

Open aanand opened 6 years ago

aanand commented 6 years ago

Used yapf to auto-format the code and performed a couple of manual fixes.

tox now runs pipenv check --style and complains if it fails. A couple of style rules have been disabled, because yapf seems to apply pep8 a little loosely.

You can auto-format the code with tox -e format.

marksutherland commented 6 years ago

Should yapf be added to the Pipfile's dev requirements?

tef commented 6 years ago

I'm cool with any autoreformatting, I used autopep8 before

aanand commented 6 years ago

Tried out autopep8 in #12, I think I might prefer it