Skip to content

Commit

Permalink
fix: remove old path
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Oct 10, 2024
1 parent 4c59173 commit 7d136cb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# --- Project Settings

# --- App settings
LITESTAR_APP=src.app:app
LITESTAR_APP=app:app
SECRET_KEY=ThisIsNotAProductionSecretKey
ENVIRONMENT=dev

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Test with coverage
if: inputs.coverage
run: pdm run pytest tests --cov=src --cov-report=xml
run: pdm run pytest tests --cov=app --cov-report=xml

- uses: actions/upload-artifact@v3
if: inputs.coverage
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test: ## Run the tests
$(PDM_RUN_BIN) pytest tests

coverage: ## Run the tests and generate coverage report
$(PDM_RUN_BIN) pytest tests --cov=src
$(PDM_RUN_BIN) pytest tests --cov=app
$(PDM_RUN_BIN) coverage html
$(PDM_RUN_BIN) coverage xml

Expand All @@ -84,7 +84,7 @@ docs-clean: ## Dump the existing built docs
rm -rf docs/_build

docs-serve: docs-clean ## Serve the docs locally
$(PDM_RUN_BIN) $(SPHINXAUTOBUILD) docs docs/_build/ -j auto --watch src --watch docs --watch tests --watch CONTRIBUTING.rst --port 8002
$(PDM_RUN_BIN) $(SPHINXAUTOBUILD) docs docs/_build/ -j auto --watch app --watch docs --watch tests --watch CONTRIBUTING.rst --port 8002

docs: docs-clean ## Dump the existing built docs and rebuild them
$(PDM_RUN_BIN) $(SPHINXBUILD) docs docs/_build/ -E -a -j auto --keep-going
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ignore = [
"RUF012", # Ruff-specific rule - annotated with classvar
]
line-length = 120
src = ["src", "tests"]
src = ["app", "tests"]
target-version = "py311"

[tool.ruff.pydocstyle]
Expand All @@ -151,7 +151,7 @@ classmethod-decorators = [
]

[tool.ruff.isort]
known-first-party = ["src", "tests"]
known-first-party = ["app", "tests"]

[tool.ruff.per-file-ignores]
"tests/**/*.*" = [
Expand Down
2 changes: 1 addition & 1 deletion railway.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "litestar --app src.app:app run -H 0.0.0.0 -p $PORT"
"startCommand": "litestar --app app:app run -H 0.0.0.0 -p $PORT"
}
}
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ sonar.exclusions=docs/**/*, tests/**/*
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.version=3.11, 3.12
sonar.sourceEncoding=UTF-8
sonar.sources=src
sonar.sources=app
sonar.test.inclusions=tests/test_*.py
2 changes: 1 addition & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from litestar.testing import TestClient

from src.app import app
from app.app import app


def test_sync() -> None:
Expand Down

0 comments on commit 7d136cb

Please sign in to comment.