mirror of
https://github.com/sitn/crdppf_core.git
synced 2026-08-26 07:04:31 +00:00
Core / generic parts of the CRDPPF project | Read-only mirror of https://github.com/sitn/crdppf_core — Canton de Neuchâtel. Issues & pull requests at the source.
- JavaScript 74.5%
- HTML 20.3%
- CSS 4.1%
- Python 0.8%
- PHP 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| crdppf | ||
| jsbuild | ||
| wheels | ||
| .gitignore | ||
| .gitmodules | ||
| CHANGES.txt | ||
| CONST_Makefile | ||
| CONST_requirements.txt | ||
| CONST_requirements_windows.txt | ||
| CONST_vars.yaml | ||
| CONST_versions.txt | ||
| LICENSE | ||
| README.md | ||
| setup.py | ||
crdppf_core
Core / generic parts of the CRDPPF project
This has to be used as a submodule in your own CRDPPF project.
See https://github.com/sitn/crdppf
Requirements for Linux
For Linux, you will need python-dev and python-venv, which can be installed with:
sudo apt-get install python3-dev
sudo apt-get install python3-venv
In your Makfile, you should also overwrite the following variables:
VENV_BIN ?= .build/venv/bin
PYTHON_EXE ?= python3
Development
Python code
When developping some Python code, you should run Flake8 on it, to be sure that your code follows pep8
buildout\bin\flake8 crdppf_core\crdppf\util
buildout\bin\flake8 crdppf_core\crdppf\views
buildout\bin\flake8 crdppf_core\crdppf\models.py
buildout\bin\flake8 crdppf_core\crdppf\__init__.py
...
(Do not run it on the whole package, because it contains a lot of external libs).
It might also be good to check the McCabe complexity from time to time.
buildout\bin\flake8 --max-complexity 10 crdppf_core\crdppf\util
buildout\bin\flake8 --max-complexity 10 crdppf_core\crdppf\views
buildout\bin\flake8 --max-complexity 10 crdppf_core\crdppf\models.py
buildout\bin\flake8 --max-complexity 10 crdppf_core\crdppf\__init__.py
...