ComputationalRadiationPhysics / contributing

:books: guidelines and styles to contribute to our projects
Creative Commons Attribution 4.0 International
6 stars 10 forks source link

Python #27

Open ax3l opened 6 years ago

ax3l commented 6 years ago

For Python scripts, PIConGPU currently enforces:

Versions

Both support for Python 2.7+ and Python 3

Style (PEP8 conformance)

pip install -U flake8
flake8 .

in both Python 2 & Python 3 variants of the flake8 script. (Note: Recognizes only python scripts ending on *.py, unfortunately.)

Style (Comments)

propose: numpy style tool: ...?

Static Code Analysis (Warnings, unused code, etc.)

pip install -U pyflakes
pyflakes .

in both Python 2 & Python 3 variants of the flake8 script. (Note: Recognizes all python scripts.)

ax3l commented 6 years ago

I would also be personally be a big fan of dropping Python 2 support altogether. Anyone against this?