👋 Welcome to Open Source Calendar built with Python. 🐍
- Develop open source calendar tool using new technics while trying new things.
- Using Python as main programming language and plain HTML/JS for GUI.
- Create bonding in our community.
- Windows or Linux based system - either WSL on windows or full blown linux.
- Python
- Install python's requirements:
pip install -r requirements.txt- Install pre-commit hooks:
pre-commit installvirtualenv env
.\env\Scripts\activate.bat
pip install -r requirements.txt
# Copy app\config.py.example to app\config.py.
# Edit the variables' values.
# Rendering JWT_KEY:
python -c "import secrets; from pathlib import Path; f = Path('app/config.py'); f.write_text(f.read_text().replace('JWT_KEY_PLACEHOLDER', secrets.token_hex(32), 1));"
uvicorn app.main:app --reloadpython -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp app/config.py.example app/config.py
# Edit the variables' values.
uvicorn app.main:app --reloadFront end testing tool.
Every test created with testLevel configuration, the defualt level we run our test is 5. Basic tests will spicified with lower testLevel than advanced tests.
#To run Cypress:
- Make sure you already installed npm (run npm --version to check).
- Run the server
- Nevigate to 'test-ui' folder: calendar/tests/test-ui
- Run with Test Runner:
- Run on terminal:
npx cypress open - Test Runner will open: choose test and click it to execute
- Run on terminal:
- Run all test without watching:
- Run on terminal:
npx cypress run
- Run on terminal:
- Run a specific test file without watching:
- Run on terminal:
npx cypress run --spec cypress/integration/path/to/file
- Run on terminal:
- Run tests with change level env config to 10:
npx cypress run --env level=10
- Run with Test Runner:
python -c "import secrets; from pathlib import Path; f = Path('app/config.py'); f.write_text(f.read_text().replace('JWT_KEY_PLACEHOLDER', secrets.token_hex(32), 1));"
# Standard tests: 'coverage' and 'flake8'
tox
# Only flake8 tests
tox -e flake8
# Coverage with html reports
tox -e repView contributing guidelines.