Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

digital-gachilib/meadow

Repository files navigation

Meadow

Python application Quality Gate Status

Best digital library ever. Uses black and isort with seed-isort-config for code-formatting, and flake8 for linting. Pre-commit hooks are installed for every tool.

How to develop?

Commit messages' style

The project follows conventional commits style for commit messages. This naming isn't mandatory for regular commits but very appreciated among team members. However, for Pull Request's titles this style is very-very recommended.

Tests

Simply tests

python meadow/manage.py test -v=3 meadow

With coverage: firsly, the following command, then coverage html, and then open the file htmlcov/index.html in your browser

coverage run meadow/manage.py test -v=3 meadow && coverage html

Project first setup

All commands should be runned inside project's directory

  1. Create virtual environment python3 -m venv .venv
  2. Activate venv . .venv/bin/activate
  3. Install all libraries pip install -r requirements.txt
  4. Install pre-commit hooks pre-commit install
  5. Everything is installed! Run python meadow/manage.py migrate to apply migrations and python meadow/manage.py runserver to run server locally. (the database should listen on port ('localhost', 5432), you can run it using run_postgres.sh script.

New dependency?

  1. Add it to requirements.txt with pip freeze > requirements.txt
  2. Add it to stage in git git add requirements.txt
  3. Commit git commit -m "feat: add *library_name* to requirements.txt"
  4. Push git push --set-upstream origin $(git_current_branch)
  5. Open pull-request. You can use a web GUI of github, or with hub with command hub pull-request -op -m "New cool PR!"

Some Q&A

  • How to update locally project? git pull --rebase --autostash

About

Best digital library ever.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors