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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
François Voisard b358f5f0a8
Merge pull request #211 from voisardf/bbox_refactoring
modified map bbox evaluation and did some related refactoring/cleaning
2021-01-26 12:01:58 +01:00
crdppf modified map bbox evaluation and did some related refactoring/cleaning 2021-01-08 11:49:25 +01:00
jsbuild Add OL dependencies to avoid browserNotSupported error 2018-08-19 12:08:46 +02:00
print removed comments on error message 2020-11-30 19:19:10 +01:00
wheels changed requirements for version 1.7.3 of pyramid_oereb 2020-04-29 14:16:14 +02:00
.gitignore added print\tmp to gitignore 2018-06-04 10:03:25 +02:00
.gitmodules Update submodule URL for OL 2017-04-26 14:15:49 +02:00
CHANGES.txt initial version of core 2014-07-14 14:34:53 +02:00
CONST_Makefile removed unused parameter 2020-05-13 13:35:34 +02:00
CONST_requirements.txt Make it work on Linux 2019-01-17 09:11:30 +01:00
CONST_requirements_windows.txt new shapely versions and some other config changes 2018-11-02 12:23:09 +01:00
CONST_vars.yaml added new render engine variable and conditional route 2020-04-08 16:20:25 +02:00
CONST_versions.txt removed unused library 2020-05-20 12:32:42 +02:00
LICENSE Initial commit 2014-06-24 15:41:58 +02:00
README.md Make it work on Linux 2019-01-17 09:11:30 +01:00
setup.py fixed version number 2020-12-07 14:43:17 +01:00

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
...