11
.flake8
11
.flake8
@ -65,6 +65,11 @@ ignore =
|
||||
; Found function with too much cognitive complexity
|
||||
WPS231,
|
||||
|
||||
per-file-ignores =
|
||||
; all tests
|
||||
test_*.py,tests.py,tests_*.py,*/tests/*:
|
||||
; Use of assert detected
|
||||
S101,
|
||||
; all init files
|
||||
__init__.py:
|
||||
; ignore not used imports
|
||||
@ -74,12 +79,6 @@ ignore =
|
||||
; Found wrong metadata variable
|
||||
WPS410,
|
||||
|
||||
per-file-ignores =
|
||||
; all tests
|
||||
test_*.py,tests.py,tests_*.py,*/tests/*:
|
||||
; Use of assert detected
|
||||
S101,
|
||||
|
||||
exclude =
|
||||
./.git,
|
||||
./venv,
|
||||
|
@ -42,4 +42,3 @@ deploy:
|
||||
--namespace "$NAMESPACE"
|
||||
-f "$HELM_CONFIG"
|
||||
--set "podAnnotations.deployed_at=$(date +%Y.%m.%d-%H:%M)"
|
||||
|
||||
|
@ -12,7 +12,7 @@ repos:
|
||||
- repo: https://github.com/asottile/add-trailing-comma
|
||||
rev: v2.1.0
|
||||
hooks:
|
||||
- id: add-trailing-comma
|
||||
- id: add-trailing-comma
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
@ -26,38 +26,46 @@ repos:
|
||||
name: autoflake
|
||||
entry: autoflake
|
||||
language: system
|
||||
types: [ python ]
|
||||
args: [ --in-place, --remove-all-unused-imports, --remove-duplicate-keys ]
|
||||
types: [python]
|
||||
args:
|
||||
[
|
||||
--in-place,
|
||||
--remove-all-unused-imports,
|
||||
--remove-duplicate-keys,
|
||||
--recursive,
|
||||
lenochka,
|
||||
]
|
||||
|
||||
- id: isort
|
||||
name: isort
|
||||
entry: isort
|
||||
language: system
|
||||
types: [ python ]
|
||||
types: [python]
|
||||
|
||||
- id: flake8
|
||||
name: Check with Flake8
|
||||
entry: flake8
|
||||
language: system
|
||||
pass_filenames: false
|
||||
types: [ python ]
|
||||
args: [--count, .]
|
||||
types: [python]
|
||||
args: [--count, lenochka]
|
||||
|
||||
- id: mypy
|
||||
name: Validate types with MyPy
|
||||
entry: mypy
|
||||
language: system
|
||||
types: [ python ]
|
||||
pass_filenames: false
|
||||
args: [lenochka]
|
||||
|
||||
- id: yesqa
|
||||
name: Remove usless noqa
|
||||
entry: yesqa
|
||||
language: system
|
||||
types: [ python ]
|
||||
types: [python]
|
||||
|
||||
- id: pytest
|
||||
name: pytest
|
||||
entry: pytest
|
||||
language: system
|
||||
pass_filenames: false
|
||||
types: [ python ]
|
||||
types: [python]
|
||||
|
@ -1,8 +1,6 @@
|
||||
import re
|
||||
import secrets
|
||||
from typing import Optional
|
||||
|
||||
|
||||
MAX_TRIGGER_WORDS = 3
|
||||
WORD_PATTERN = re.compile(r"(\w+)")
|
||||
|
||||
|
@ -8,7 +8,10 @@ class Memory(BaseSettings):
|
||||
It holds the most important things for lenochka's life.
|
||||
"""
|
||||
|
||||
token: str = Field(env="LENOCHKA_INSTAGRAM_ID", required=True)
|
||||
token: str = Field(..., env="LENOCHKA_INSTAGRAM_ID")
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
memory = Memory()
|
||||
memory = Memory() # type: ignore
|
||||
|
1961
poetry.lock
generated
1961
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -9,21 +9,21 @@ python = "^3.9"
|
||||
aiogram = "^2.13"
|
||||
pydantic = "^1.8.2"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
pytest = "^5.2"
|
||||
black = "^21.5b2"
|
||||
isort = "^5.8.0"
|
||||
wemake-python-styleguide = "^0.15.2"
|
||||
flake8 = "^3.9.2"
|
||||
mypy = "^0.812"
|
||||
yesqa = "^1.2.3"
|
||||
autoflake = "^1.4"
|
||||
pytest-env = "^0.6.2"
|
||||
pytest-cov = "^2.12.1"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
lenochka_wake_up = "lenochka.mouth:talk_to_the_wind"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pytest = "^7.4.2"
|
||||
black = "^23.9.1"
|
||||
isort = "^5.12.0"
|
||||
flake8 = "^6.1.0"
|
||||
mypy = "^1.5.1"
|
||||
yesqa = "^1.5.0"
|
||||
pytest-env = "^1.0.1"
|
||||
pytest-cov = "^4.1.0"
|
||||
autoflake = "^2.2.1"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
Reference in New Issue
Block a user