Go to file
Benjamin Dauvergne 3a8c844535 misc: optimize use of middlewares
Middleware are useless for the API endpoints, so we only apply them to
views of the admin site.
2023-04-14 01:14:57 +02:00
debian debian: prefer uwsgi's logto2 directive 2023-04-08 01:10:22 +02:00
fixtures tox.ini: add runuwsgi and bench targets 2023-04-14 01:14:52 +02:00
scripts misc: optimize generation of rdv url 2023-04-14 01:14:57 +02:00
src/ants_hub misc: optimize use of middlewares 2023-04-14 01:14:57 +02:00
tests misc: optimize use of middlewares 2023-04-14 01:14:57 +02:00
.gitignore initial commit 2023-04-03 18:03:30 +02:00
.pre-commit-config.yaml initial commit 2023-04-03 18:03:30 +02:00
COPYING initial commit 2023-04-03 18:03:30 +02:00
Jenkinsfile initial commit 2023-04-03 18:03:30 +02:00
MANIFEST.in initial commit 2023-04-03 18:03:30 +02:00
README initial commit 2023-04-03 18:03:30 +02:00
manage.py initial commit 2023-04-03 18:03:30 +02:00
setup.py setup.py: produce PEP440 compatible version when repositoty is dirty 2023-04-07 10:37:08 +02:00
test-requirements.txt tests: add more 2023-04-12 11:54:40 +02:00
tox.ini tox.ini: add runuwsgi and bench targets 2023-04-14 01:14:52 +02:00

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