mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
Compare commits
No commits in common. "1bb3dd046116972219fdf1d07828b3561ff0d667" and "3bca080e4dfe012eaf298dad11941df951d765f0" have entirely different histories.
1bb3dd0461
...
3bca080e4d
2
.github/workflows/check-lint.yml
vendored
2
.github/workflows/check-lint.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
#----------------------------------------------
|
||||
- name: Install poetry
|
||||
env: # Keep in sync with `POETRY_VERSION` in `Dockerfile`
|
||||
POETRY_VERSION: "1.3.1"
|
||||
POETRY_VERSION: "1.2.0"
|
||||
run: |
|
||||
curl -sSL "https://install.python-poetry.org" | python -
|
||||
# Adding `poetry` to `$PATH`:
|
||||
|
2
.github/workflows/poetry-test.yml
vendored
2
.github/workflows/poetry-test.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
#----------------------------------------------
|
||||
- name: Install poetry
|
||||
env: # Keep in sync with `POETRY_VERSION` in `Dockerfile`
|
||||
POETRY_VERSION: "1.3.1"
|
||||
POETRY_VERSION: "1.2.0"
|
||||
run: |
|
||||
curl -sSL "https://install.python-poetry.org" | python -
|
||||
# Adding `poetry` to `$PATH`:
|
||||
|
@ -13,7 +13,7 @@ env_path = BASE_DIR.joinpath('config')
|
||||
config = AutoConfig(search_path=env_path)
|
||||
|
||||
|
||||
GECKO_DRIVER_VERSION = config('GECKO_DRIVER_VERSION', default='0.32.0')
|
||||
GECKO_DRIVER_VERSION = config('GECKO_DRIVER_VERSION', default='0.31.0')
|
||||
|
||||
TELEGRAM_API_TOKEN = config(
|
||||
'TELEGRAM_API_TOKEN', default='123456789:AABBCCDDEEFFaabbccddeeff-1234567890'
|
||||
|
@ -13,10 +13,7 @@ ENV USER=${USER} \
|
||||
PIP_DEFAULT_TIMEOUT=100 \
|
||||
POETRY_VIRTUALENVS_CREATE=false \
|
||||
POETRY_CACHE_DIR='/var/cache/pypoetry' \
|
||||
PATH="$PATH:/root/.poetry/bin" \
|
||||
DOCKER_CONTAINER=1 \
|
||||
POETRY_VERSION=1.3.1
|
||||
|
||||
PATH="$PATH:/root/.poetry/bin"
|
||||
|
||||
RUN printf "================\n\nStart build app. USER is: "${USER}"\n\n===============\n" \
|
||||
&& apt-get update \
|
||||
@ -33,7 +30,7 @@ RUN printf "================\n\nStart build app. USER is: "${USER}"\n\n=========
|
||||
sshpass \
|
||||
&& pip install --upgrade pip \
|
||||
# Installing `poetry` package manager:
|
||||
&& pip install poetry==$POETRY_VERSION wheel \
|
||||
&& pip install poetry wheel\
|
||||
# Cleaning cache:
|
||||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
||||
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
||||
@ -53,7 +50,7 @@ COPY --chown="$USER":"$USER" ./poetry.lock ./pyproject.toml /app/
|
||||
RUN poetry --version \
|
||||
&& poetry run pip install -U pip \
|
||||
&& poetry install \
|
||||
$(if [ "$USER" != 'root' ]; then echo '--only main'; fi) \
|
||||
$(if [ "$USER" != 'root' ]; then echo '--no-dev'; fi) \
|
||||
--no-interaction --no-ansi \
|
||||
# Cleaning poetry installation's cache for production:
|
||||
&& if [ "$USER" != 'root' ]; then rm -rf "$POETRY_CACHE_DIR"; fi
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM selenoid/firefox:108.0 as builder
|
||||
FROM selenoid/firefox:104.0 as builder
|
||||
|
||||
FROM aerokube/selenoid:latest-release
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"firefox": {
|
||||
"default": "108.0",
|
||||
"default": "104.0",
|
||||
"versions": {
|
||||
"108.0": {
|
||||
"image": "selenoid/firefox:108.0",
|
||||
"104.0": {
|
||||
"image": "selenoid/firefox:104.0",
|
||||
"port": "4444",
|
||||
"path": "/wd/hub"
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ services:
|
||||
|
||||
|
||||
caddy:
|
||||
image: "caddy:2.6.2"
|
||||
image: "caddy:2.5.2"
|
||||
container_name: transport_bot_caddy
|
||||
hostname: transport_bot_caddy
|
||||
restart: unless-stopped
|
||||
|
4425
poetry.lock
generated
4425
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -13,30 +13,32 @@ wget = "^3.2"
|
||||
loguru = "^0.6.0"
|
||||
python-decouple = "^3.6"
|
||||
apscheduler = "^3.9.1"
|
||||
SQLAlchemy = {version = "^1.4", extras = ["mypy", "asyncio"]}
|
||||
gunicorn = "^20.1.0"
|
||||
|
||||
factory-boy = "^3.2.1"
|
||||
Faker = "^15.0.0"
|
||||
Faker = "^14.0.0"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
ipython = "^8.2.0"
|
||||
pre-commit = "^2.21.0"
|
||||
safety = "^2.3.4"
|
||||
pre-commit = "^2.14.0"
|
||||
safety = "^1.10.3"
|
||||
yamllint = "^1.26.3"
|
||||
tomlkit = "^0.7.2"
|
||||
bandit = "1.7.4"
|
||||
requests = "^2.28.0"
|
||||
requests = "^2.26.0"
|
||||
SQLAlchemy = {version = "^1.4", extras = ["mypy"]}
|
||||
aresponses = "^2.1"
|
||||
|
||||
pyupgrade = "^2.24.0"
|
||||
isort = "^5.11.4"
|
||||
black = "^22.12.0"
|
||||
isort = "^5.9.3"
|
||||
black = "^22.3.0"
|
||||
|
||||
mypy = "^0.991"
|
||||
mypy = "^0.961"
|
||||
types-PyMySQL = "^1.0.11"
|
||||
types-python-dateutil = "^2.8.4"
|
||||
|
||||
pytest = "^7.2.0"
|
||||
pytest = "^6.2.4"
|
||||
pytest-asyncio = "^0.15.1"
|
||||
pytest-deadfixtures = "^2.2.1"
|
||||
pytest-testmon = "^1.1.2"
|
||||
@ -48,21 +50,21 @@ pytest-clarity = "^1.0.1"
|
||||
pytest-env = "^0.6.2"
|
||||
nest-asyncio = "^1.5.1"
|
||||
|
||||
autoflake = "^1.7.8"
|
||||
flake8 = "^5.0.4"
|
||||
flake8-logging-format = "^0.9.0"
|
||||
flake8-comprehensions = "^3.10.1"
|
||||
flake8-eradicate = "^1.4.0"
|
||||
flake8-pytest-style = "^1.6.0"
|
||||
autoflake = "^1.4"
|
||||
flake8 = "^3.9"
|
||||
flake8-logging-format = "^0.6.0"
|
||||
flake8-comprehensions = "^3.6.1"
|
||||
flake8-eradicate = "^1.1.0"
|
||||
flake8-pytest-style = "^1.5.0"
|
||||
flake8-aaa = "^0.12.0"
|
||||
flake8-bugbear = "^22.12.6"
|
||||
flake8-debugger = "^4.1.2"
|
||||
flake8-bugbear = "^21.4.3"
|
||||
flake8-debugger = "^4.0.0"
|
||||
flake8-expression-complexity = "^0.0.11"
|
||||
flake8-fixme = "^1.1.1"
|
||||
flake8-simplify = "^0.19.3"
|
||||
flake8-variables-names = "^0.0.5"
|
||||
flake8-bandit = "4.1.1"
|
||||
flake8-tidy-imports = "^4.8.0"
|
||||
flake8-simplify = "^0.18.2"
|
||||
flake8-variables-names = "^0.0.4"
|
||||
flake8-bandit = "3.0.0"
|
||||
flake8-tidy-imports = "^4.4.1"
|
||||
|
||||
|
||||
[tool.isort]
|
||||
@ -81,6 +83,7 @@ show_error_codes = true
|
||||
implicit_reexport = true
|
||||
allow_untyped_decorators = true
|
||||
warn_return_any = false
|
||||
plugins = ["sqlalchemy.ext.mypy.plugin"]
|
||||
|
||||
|
||||
[tool.coverage.run]
|
||||
|
Loading…
x
Reference in New Issue
Block a user