Skip to content

Python coding style

Antonio Valentino edited this page Dec 28, 2024 · 3 revisions

The PyTables code base is now PEP8 compliant and regularly checked with black, flake8 and isort. The configuration for the previously mentioned linting tools is provided in the git repository.

It is required that all new contributions follow this style guideline in any *.py files, and where appropriate, is recommended for *.pxd and *.pyx files. The following are known exceptions to these rules:

  • For natural naming to work, _v_xxx, _g_xxx and _f_xxx attributes & methods are not considered private.

Also note that the tables/tests/*.py files may require some additional clean-up.

It is also recommended for all developers and contributor to setup the pre-commit tool to check the correctness of the coding style at each commit.

Clone this wiki locally