sdv-dev / TGAN

Generative adversarial training for generating synthetic tabular data.
MIT License
281 stars 91 forks source link

Increase code style lint #64

Open pvk-developer opened 3 years ago

pvk-developer commented 3 years ago

Problem Description

Currently our code is being validated only by flake8 'vanilla' and just a few plugins. We would like to increase the code style checks by adding more add-on's that follow our code style and our standards.

Also we would like to ensure that our docstrings are properly written and follow the rest of our format.

Additional context

We have performed this task already on RDT , more precisely on the following issue: https://github.com/sdv-dev/RDT/issues/248#issuecomment-932085083

Docstring plugin

We need to add pydocstyle plugin with the following lines on our setup.cfg file as we are following the google convention.

[pydocstyle]
convention = google
add-ignore = D107, D407, D417

Flake8 plugins to be added

Flake8 comes with a lot of different addons that we can use to adapt it to our codestyle and checking, here is a list of plugins that I found to be interesting for us: