Skip to content

Commit

Permalink
Release 0.3 (#28)
Browse files Browse the repository at this point in the history
* add swagger static

* refactor Azamat's docker-compose.yaml

* add static for swagger

* add API event_black for searching without creds in modeus.py

* add search Modeus API
Complete #6 tasks

* Fix bug with empty list

* add get course, rewrite from requests to httpx

* mypy fixes

* add route get calendar #20

* rewrite from black sheep to fast api, add Netology routes.

* delete black-sheep

* add routes for modeus

* remove sg_reg_date from NetologyCookies

* linter fixes

* Add design pages home and login, redirect from home to login

* Fix Azamat's docker-compose.yaml

* rewrite exceptions

* Fastapi init (#22)

* add swagger static

* refactor Azamat's docker-compose.yaml

* add static for swagger

* add API event_black for searching without creds in modeus.py

* add search Modeus API
Complete #6 tasks

* Fix bug with empty list

* add get course, rewrite from requests to httpx

* mypy fixes

* add route get calendar #20

* rewrite from black sheep to fast api, add Netology routes.

* delete black-sheep

* add routes for modeus

* remove sg_reg_date from NetologyCookies

* linter fixes

* Fix Azamat's docker-compose.yaml

* rewrite exceptions

* fix import error

* Add validator for time_min, time_max

* Refactor validators

* Mypy refactor

* Fix review

* Fastapi init (#21)

* Update README.md

* rewrite from black sheep to fast api, add Netology routes.

* delete black-sheep

* add routes for modeus

* remove sg_reg_date from NetologyCookies

* linter fixes

* Add design pages home and login, redirect from home to login

* Fix Azamat's docker-compose.yaml

* rewrite exceptions

* fix import error

* Add validator for time_min, time_max

* Refactor validators

* Mypy refactor

* Fix review

---------

Co-authored-by: KytakBR <gusmanov2006@gmail.com>

* Fix cors problem

* delete reload setting

* Co-authored-by: Ivan <depocoder@users.noreply.github.com>

* Add redis cache for JWT tokens

* Refactor query parameters

* redis cache with decorator

* fix some issues

* Fix merge conflict

* Compiled a schedule table

* Сompiled a schedule table

* redis add clear cache

* add volume for frontend service, add run-dev target in Dockerfile

* Big update Netology API

* add pre-commit

* bump python version, remove pre-commit

* add lint.yaml workflow

* close part of #8

* fix Azamat's code

* fix Azamat's code

* fix Ivan's code

---------

Co-authored-by: Ivan Popov <ma1n.py@yandex.ru>
Co-authored-by: KytakBR <gusmanov2006@gmail.com>
Co-authored-by: Ivan <60302361+depocoder@users.noreply.github.com>
  • Loading branch information
4 people authored Oct 3, 2024
1 parent f4e996c commit 6c07118
Show file tree
Hide file tree
Showing 24 changed files with 576 additions and 335 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Configure Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install -C ./backend

- name: Run linters
run: |
cd backend
ruff check yet_another_calendar
mypy yet_another_calendar
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.4-slim-bullseye as prod
FROM python:3.12.5-slim-bullseye as prod


RUN pip install poetry==1.8.2
Expand Down
159 changes: 2 additions & 157 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ maintainers = [
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.12"
fastapi = "^0.111.0"
uvicorn = { version = "^0.30.1", extras = ["standard"] }
pydantic = "^2"
Expand All @@ -37,7 +37,6 @@ fastapi-cache2 = "^0.2.2"
pytest = "^8"
ruff = "^0.5.0"
mypy = "^1.10.1"
pre-commit = "^3.7.1"
black = "^24.4.2"
pytest-cov = "^5"
anyio = "^4"
Expand Down
Loading

0 comments on commit 6c07118

Please sign in to comment.