Go to file
Benjamin Dauvergne 222760ced3
gitea/ants-hub/pipeline/head This commit looks good Details
misc: add missing __init__.py for sdist to work (#89314)
2024-04-15 19:25:44 +02:00
debian misc: use BEGIN IMMEDIATE to start transactions (#89314) 2024-04-15 10:56:13 +02:00
fixtures ants: normalize and check identifiant_predemande on push (#83552) 2023-11-15 17:58:07 +01:00
scripts misc: apply double-quote-string-fixer (#79788) 2023-08-16 11:52:13 +02:00
src/ants_hub misc: add missing __init__.py for sdist to work (#89314) 2024-04-15 19:25:44 +02:00
tests api: send a correct management_url to /api/appointments (#89529) 2024-04-14 12:58:35 +02:00
.git-blame-ignore-revs misc: update git-blame-ignore-revs to ignore quote changes (#79788) 2023-08-16 11:52:13 +02:00
.gitignore initial commit 2023-04-03 18:03:30 +02:00
.pre-commit-config.yaml misc: add pre commit hook to force single quotes (#79788) 2023-08-16 11:52:13 +02:00
COPYING initial commit 2023-04-03 18:03:30 +02:00
Jenkinsfile ci: build deb package for bookworm (#78968) 2023-06-23 18:13:34 +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 misc: apply double-quote-string-fixer (#79788) 2023-08-16 11:52:13 +02:00
setup.py setup.py: relax constraint on jsonschema (#84952) 2023-12-21 10:48:17 +01:00
test-requirements.txt tests: add more 2023-04-12 11:54:40 +02:00
tox.ini tox.ini: add allowlist_externals for local scripts (#76412) 2023-11-15 12:22:09 +01: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.)