Project

General

Profile

Actions

OpenAtlas is developed with some standards in mind.

Open Source

Only open source libraries (e.g. jQuery) and open source software requirements (e.g. a PostgreSQL database) are used.
All non-code files (e.g. logo) should be open too (CC BY-SA 4.0).
This guaranties that the application can be shared as open source (GPL 2) e.g. on GitHub.

If 3rd party software or media is used it is important to:
  • Check the license for compatibility
  • Store them in openatlas/static/vendor
  • Add a license file if available

Python

Tests

Python code should be covered by tests with assertions. We aim for 100% code coverage although some parts (e.g. mail functions) may be excluded with the # pragma: no cover option.

Mypy

Mypy is an optional static type checker for Python that aims to combine the benefits of dynamic (or "duck") typing and static typing. Available as plugin for PyCharm where we use it with

--ignore-missing-imports --allow-untyped-decorators --no-warn-return-any --strict

PEP8

We are using PEP 8 Style Guide for Python Code with the exception of allowing a line length of 100 characters. Available as plugin for PyCharm.

In evaluation

These tools look interesting and we will take a closer a look at some point.
  • Pylint, available Debian package and PyCharm plugin
  • tabnanny run python -m tabnanny . in the root of your project
  • coala, sadly no Debian package or PyCharm plugin seems to be available (2020)

HTML

We are using HTML 5 and the site should be validating correctly.
Exceptions may be acceptable if (harmless) non valid HTML 5 is produced by 3rd party libraries.

Bugs

Of course we do our best to avoid them in the first place but if bugs in already released versions get apparent they always have the highest priority.

Updated by Alexander Watzinger 3 months ago · 19 revisions

Also available in: PDF HTML TXT