You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Benjamin Dauvergne 807a88c88a
gitea/ants-hub/pipeline/head This commit looks good Details
misc: load middleware in SAML views
2 weeks ago
debian debian: prefer uwsgi's logto2 directive 2 months ago
fixtures tox.ini: add runuwsgi and bench targets 2 months ago
scripts misc: optimize generation of rdv url 2 months ago
src/ants_hub misc: load middleware in SAML views 2 weeks ago
tests misc: optimize use of middlewares 2 months ago
.gitignore initial commit 2 months ago
.pre-commit-config.yaml initial commit 2 months ago
COPYING initial commit 2 months ago
Jenkinsfile initial commit 2 months ago
MANIFEST.in initial commit 2 months ago
README initial commit 2 months ago
manage.py initial commit 2 months ago
setup.py setup.py: produce PEP440 compatible version when repositoty is dirty 2 months ago
test-requirements.txt tests: add more 2 months ago
tox.ini tox.ini: add runuwsgi and bench targets 2 months ago

README

ANTS-Hub
========

Hub pour servir une base de rende-vous CNI/Passeport au service centralisé de prise de rendez-vous de l'ANTS (https://rendez-vous-api.france-identite.fr/docs).

Local server
------------

To run a pre-configured local instances, do:

    tox -e runserver

Login/password are admin/admin.

Tests
-----

Unit tests are written using py.test, and its pytest-django support library. To run them use tox.

  tox


Code Style
----------

black is used to format the code, using thoses parameters:

    black --target-version py37 --skip-string-normalization --line-length 110

isort is used to format the imports, using those parameters:

    isort --profile black --line-length 110

pyupgrade is used to automatically upgrade syntax, using those parameters:

    pyupgrade --keep-percent-format --py37-plus

djhtml is used to automatically indent html files, using those parameters:

    djhtml --tabwidth 2

django-upgrade is used to automatically upgrade Django syntax, using those parameters:

    django-upgrade --target-version 2.2

There is .pre-commit-config.yaml to use pre-commit to automatically run these tools
before commits. (execute `pre-commit install` to install the git hook.)