Gestion de prise de rendez-vous
Go to file
Valentin Deniaud be975cfa29
gitea/chrono/pipeline/head This commit looks good Details
ci: do not run tests in parallel by default (#88626)
2024-03-25 14:13:08 +01:00
chrono manager: improve html & CSS of partial booking month view (#79863) 2024-03-22 09:40:49 +01:00
debian misc: add pyquery in dependencies (#88222) 2024-03-15 12:11:59 +01:00
tests misc: fix failing test due to dst change (#88568) 2024-03-23 10:30:24 +01:00
.coveragerc jenkins: show execution context in coverage reports (#60446) 2022-01-11 15:51:21 +01:00
.git-blame-ignore-revs misc: update git-blame-ignore-revs to ignore quote changes (#79866) 2023-08-02 12:18:24 +02:00
.gitignore manager: timesheet to PDF (#61070) 2022-03-03 08:20:32 +01:00
.pre-commit-config.yaml misc: add pre commit hook to force single quotes (#79866) 2023-08-02 12:17:51 +02:00
COPYING include a copy of the AGPL 2016-02-13 09:17:15 +01:00
Jenkinsfile ci: do not run tests in parallel by default (#88626) 2024-03-25 14:13:08 +01:00
MANIFEST.in packaging: include chrono/apps/ants_hub/templates (#78239) 2023-06-07 15:25:46 +02:00
README misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 12:08:30 +02:00
getlasso.sh jenkins: switch to tox for running tests (#15974) 2017-05-23 13:28:45 +02:00
getlasso3.sh python3: fix getlasso3.sh to get module regardless of version 2018-05-13 16:06:01 +02:00
jenkins.sh jenkins: get lasso symlinks in jenkins virtual env 2018-02-15 14:37:39 +01:00
manage.py misc: apply double-quote-string-fixer (#79866) 2023-08-02 12:17:51 +02:00
pylint.rc snapshots: compare inspect (#87751) 2024-03-11 16:15:34 +01:00
pylint.sh ci: speed up CI using multiple processes with pylint (#67056) 2022-07-07 18:17:33 +02:00
requirements.txt misc: remove jsonfield requirement (#53289) 2021-04-29 10:17:20 +02:00
setup.py misc: add pyquery in dependencies (#88222) 2024-03-15 12:11:59 +01:00
tox.ini ci: do not run tests in parallel by default (#88626) 2024-03-25 14:13:08 +01:00

README

Chrono
======

Chrono provides a set of management interfaces and web services to register
for activities and stuff.


Installation
------------

Dependencies can be installed with pip,

 $ pip install -r requirements.txt

It's then required to get the database configured (./manage.py migrate); by
default it will create a postgresqsl DB.

You can then run the Django test server for a quick try (you should refer to
the Django documentation for production deployments).

 $ ./manage.py runserver


Settings
--------

Default settings are loaded from settings.py, they can be overloaded by a
local_settings.py file set in the same directory, or by a file referenced
in the CHRONO_SETTINGS_FILE environment variable.


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

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

    black --target-version py35 --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

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

    django-upgrade --target-version 3.2

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

    djhtml --tabwidth 2

There is .pre-commit-config.yaml to use pre-commit to automatically run black,
isort, pyupgrade, django-upgrade and djhtml before commits. (execute
`pre-commit install` to install the git hook.)


Tests
-----

    pip install pytest pytest-django pytest-mock
    DJANGO_SETTINGS_MODULE=welco.settings py.test tests/

License
-------

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.