Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.14 KB

HACKING.rst

File metadata and controls

27 lines (21 loc) · 1.14 KB

Hacking

Try to be consistent with the PEP8 guidelines. Add unit tests for all non-trivial functionality. Dependency injection is a great pattern to keep modules testable.

Commits should be reversible, independent units if possible. Use descriptive titles and also add an explaining commit message unless the modification is trivial. See also: A Note About Git Commit Messages.

Tests

The Travis CI service is mainly used to check that the unit tests for cpymad itself execute on several python versions. Python{2.7,3.3} are supported. The tests are executed on any update of an upstream branch. The Travis builds use a unofficial precompiled libmadx-dev package to avoid having to rebuild the entire MAD-X library on each invocation.