Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikdoof committed Nov 29, 2023
1 parent de2ca2a commit 397ddaf
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.venv:
python3 -m pip install poetry
python3 -m poetry install

serve:
FLASK_DEBUG=1 FLASK_APP=local_spaces.app:create_app .venv/bin/flask run --reload --debug -p 5001

tests: .venv
python3 -m poetry run pytest || true

lint: .venv
python3 -m poetry run ruff --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
python3 -m poetry run ruff --output-format=github --target-version=py37 .
90 changes: 89 additions & 1 deletion poetry.lock

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

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ prometheus-flask-exporter = "^0.23.0"
cachetools = "^5.3.2"


[tool.poetry.group.test.dependencies]
pytest = "^7.4.3"
ruff = "^0.1.6"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 397ddaf

Please sign in to comment.