Skip to content

Commit b1bd053

Browse files
authored
Merge branch 'master' into move-backend-tests-outside-app
2 parents 27ea012 + 61174f1 commit b1bd053

5 files changed

Lines changed: 33 additions & 20 deletions

File tree

backend/pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ select = [
5555
"C4", # flake8-comprehensions
5656
"UP", # pyupgrade
5757
"ARG001", # unused arguments in functions
58+
"T201", # print statements are not allowed
5859
]
5960
ignore = [
6061
"E501", # line too long, handled by black
@@ -66,3 +67,14 @@ ignore = [
6667
[tool.ruff.lint.pyupgrade]
6768
# Preserve types, even if a file imports `from __future__ import annotations`.
6869
keep-runtime-typing = true
70+
71+
[tool.coverage.run]
72+
source = ["app"]
73+
dynamic_context = "test_function"
74+
75+
[tool.coverage.report]
76+
show_missing = true
77+
sort = "-Cover"
78+
79+
[tool.coverage.html]
80+
show_contexts = true

backend/scripts/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
set -e
44
set -x
55

6-
coverage run --source=app -m pytest tests/
7-
coverage report --show-missing
6+
coverage run -m pytest tests/
7+
coverage report
88
coverage html --title "${@-coverage}"

frontend/package-lock.json

Lines changed: 15 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@chakra-ui/react": "^3.26.0",
1515
"@emotion/react": "^11.14.0",
1616
"@tanstack/react-query": "^5.87.1",
17-
"@tanstack/react-query-devtools": "^5.87.1",
17+
"@tanstack/react-query-devtools": "^5.87.3",
1818
"@tanstack/react-router": "^1.131.36",
1919
"axios": "1.11.0",
2020
"form-data": "4.0.4",

release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232

3333
### Internal
3434

35+
* 🔧 Update coverage configuration and simplify test script. PR [#1867](https://github.com/fastapi/full-stack-fastapi-template/pull/1867) by [@alejsdev](https://github.com/alejsdev).
36+
* 🔧 Add T201 rule to ruff linting configuration to disallow print statements. PR [#1865](https://github.com/fastapi/full-stack-fastapi-template/pull/1865) by [@alejsdev](https://github.com/alejsdev).
37+
* ⬆ Bump @tanstack/react-query-devtools from 5.87.1 to 5.87.3 in /frontend. PR [#1863](https://github.com/fastapi/full-stack-fastapi-template/pull/1863) by [@dependabot[bot]](https://github.com/apps/dependabot).
3538
* ⬆ Bump vite from 6.3.4 to 7.1.5 in /frontend. PR [#1857](https://github.com/fastapi/full-stack-fastapi-template/pull/1857) by [@dependabot[bot]](https://github.com/apps/dependabot).
3639
* ⬆ Bump @types/node from 22.15.3 to 24.3.1 in /frontend. PR [#1854](https://github.com/fastapi/full-stack-fastapi-template/pull/1854) by [@dependabot[bot]](https://github.com/apps/dependabot).
3740
* ⬆ Bump @vitejs/plugin-react-swc from 3.9.0 to 4.0.1 in /frontend. PR [#1856](https://github.com/fastapi/full-stack-fastapi-template/pull/1856) by [@dependabot[bot]](https://github.com/apps/dependabot).

0 commit comments

Comments
 (0)