Go to file
Benjamin Dauvergne 5d3e537c26
gitea/ants-hub/pipeline/head This commit looks good Details
initial commit
2023-04-03 18:03:30 +02:00
debian initial commit 2023-04-03 18:03:30 +02:00
fixtures initial commit 2023-04-03 18:03:30 +02:00
scripts initial commit 2023-04-03 18:03:30 +02:00
src/ants_hub initial commit 2023-04-03 18:03:30 +02:00
tests initial commit 2023-04-03 18:03:30 +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 initial commit 2023-04-03 18:03:30 +02:00
test-requirements.txt initial commit 2023-04-03 18:03:30 +02:00
tox.ini initial commit 2023-04-03 18:03:30 +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.)