Skip to content

Commit

Permalink
fixup! 🚧 (dashboard) add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorin committed Nov 7, 2024
1 parent 037a847 commit 45d04da
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ test-prefect: ## run prefect tests

test-dashboard: ## run dashboard tests
@echo "Run dashboard tests…"
@bin/manage test
SERVICE=dashboard bin/pytest
.PHONY: test-dashboard

# -- Misc
Expand Down
4 changes: 3 additions & 1 deletion src/dashboard/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"

[packages]
django = "5.1.2"
django = "5.1.3"
psycopg = {extras = ["pool", "binary"], version = "==3.2.3"}
django-environ = "0.11.2"
whitenoise = "6.8.2"
Expand All @@ -19,6 +19,8 @@ pre-commit = "==4.0.1"
django-stubs = {extras = ["compatible-mypy"], version = "5.1.1"}
pytest = "==8.3.3"
pytest-django = "==4.9.0"
pytest-cov = "==6.0.0"
pytest-httpx = "==0.33.0"

[requires]
python_version = "3.12"
159 changes: 152 additions & 7 deletions src/dashboard/Pipfile.lock

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

15 changes: 15 additions & 0 deletions src/dashboard/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ name = "qualicharge-dashboard"
version = "0.0.1"

# Third party packages configuration
[tool.coverage.run]
omit = [
"migrations"
]

[tool.pytest.ini_options]
addopts = "-v --cov-report term-missing --cov=qualicharge"
python_files = [
"test_*.py",
"tests.py",
]
testpaths = [
"tests",
]

[tool.ruff]
line-length = 120
indent-width = 4
Expand Down

0 comments on commit 45d04da

Please sign in to comment.