Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: black is black

+10 -4
+4 -3
.travis.yml
··· 18 18 - pip install poetry 19 19 - poetry config virtualenvs.create false && poetry install -n --no-ansi 20 20 script: 21 - - black --check app 22 - - isort app --profile black --check 23 - - mypy --ignore-missing-imports app 21 + - black --check kefi 22 + - isort kefi --profile black --check 23 + - mypy --ignore-missing-imports kefi 24 + - pytest kefi 24 25 - stage: build and push 25 26 if: branch IN (main, develop) 26 27 services:
+1 -1
kefi/routers/commands.py
··· 4 4 5 5 from kefi.dependencies import SlashCommandParams 6 6 from kefi.templates import template_command_not_found, template_command_wallet 7 + 7 8 router = APIRouter() 8 9 9 10 ··· 17 18 amount = random.randint(1, 100) 18 19 return template_command_wallet(command.user_name, amount) 19 20 return template_command_not_found() 20 -
+1
kefi/tests/test_commands.py
··· 1 1 from fastapi.testclient import TestClient 2 + 2 3 from kefi.main import app 3 4 4 5 client = TestClient(app)
+4
pyproject.toml
··· 26 26 pylint = "^2.11.1" 27 27 pytest-env = "^0.6.2" 28 28 29 + [tool.mypy] 30 + python_version = "3.9" 31 + ignore_missing_imports = true 32 + 29 33 [build-system] 30 34 requires = ["poetry-core>=1.0.0"] 31 35 build-backend = "poetry.core.masonry.api"