Skip to content

trojsten/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

be03a5a · Feb 18, 2025
Feb 1, 2024
Aug 13, 2022
Mar 7, 2020
May 7, 2023
Nov 2, 2019
Feb 18, 2025
Apr 10, 2016
Jan 3, 2020
Apr 10, 2016
Jan 4, 2020
Apr 10, 2016
Apr 10, 2016
Oct 31, 2020
Feb 16, 2019
Jan 24, 2021
Aug 30, 2020
Apr 12, 2018
Nov 15, 2019
Jan 22, 2019
Jun 17, 2020
Apr 20, 2020
Jan 4, 2020
Dec 8, 2021
Oct 26, 2019
Oct 1, 2021
Jan 4, 2020
Feb 1, 2024
Jul 19, 2016
Feb 1, 2024

Repository files navigation

Trojsten web

Trojstenovy web

CircleCI codecov Code style: black

Getting started

This project uses pre-commit. You can install it using pip install pre-commit and it's also included in the project requirements.

Activate it with

pre-commit install --allow-missing-config

For dependency management we use Poetry. See https://poetry.eustace.io/docs/#installation for installation manual.

Running locally

Please follow the installation manual here: https://github.com/trojsten/web/wiki/Návod-na-inštaláciu

Committing code

Please send a pull request with a descriptive title and all necessary information in the description. Preferably all in English. The pull request needs to pass automatic checks and have at least one approval from the project maintainers.

We currently check the following things:

  • code style
    • the code must follow black codestyle. The easiest way to achieve this is to automatically format the code with the black tool. This is also enforced by the pre-commit check. Note that black is currently not included in the project requirements, because it requires Python 3.6+.
    • imports must be sorted alphabetically (within import categories). You can use isort to automatically sort imports the correct way. This is also enforced by the pre-commit check.
    • the code must also pass flake8 lint check.
  • tests
    • the PR must pass all tests
    • the PR should also have sufficient code coverage.
  • migrations
    • the PR must include all necessary migrations. Note that Django localizes migrations, so make sure your translations are up to date (./manage.py compilemessages) before generating migrations.

Sites running on this:

Related projects