Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = true

[paths]
source =
src/app

[report]
exclude_lines =
pragma: not covered
85 changes: 1 addition & 84 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]

[project]
name = "land-sight-backend"
version = "0.1.0"
description = "LandSight backend."
readme = "README.md"
license = "MIT"
Expand All @@ -13,7 +10,6 @@ authors = [
]
requires-python = ">=3.14"
classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.14" ]
dynamic = [ "version" ]
dependencies = [
"pydantic-settings>=2.12",
]
Expand Down Expand Up @@ -45,82 +41,3 @@ pre-commit = [
changelog = [
"towncrier>=25.8",
]

[tool.hatch.version]
source = "code"
path = "src/app/__meta__.py"
attribute = "__version__"

[tool.hatch.build.targets.wheel]
packages = [ "src/app" ]

[tool.pytest.ini_options]
cache_dir = ".cache/pytest"
pythonpath = [ "src" ]
testpaths = [ "tests" ]
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--disable-warnings",
]
xfail_strict = true
log_cli = true
log_cli_level = "INFO"
filterwarnings = [
"error",
]

[tool.coverage.run]
source = [ "src/app" ]
branch = true

[tool.coverage.report]
exclude_lines = [
"pragma: not covered",
]

[tool.towncrier]
directory = "changelog.d"
filename = "docs/changelog.md"
title_format = "## [{version}](https://github.com/LandSight/backend/releases/tag/{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/LandSight/backend/issues/{issue})"

[[tool.towncrier.type]]
name = "Feature"
directory = "feat"
showcontent = true

[[tool.towncrier.type]]
name = "Bugfix"
directory = "bugfix"
showcontent = true

[[tool.towncrier.type]]
name = "Security"
directory = "security"
showcontent = true

[[tool.towncrier.type]]
name = "Deprecation"
directory = "deprecation"
showcontent = true

[[tool.towncrier.type]]
name = "Removal"
directory = "removal"
showcontent = true

[[tool.towncrier.type]]
name = "Docs"
directory = "docs"
showcontent = true

[[tool.towncrier.type]]
name = "Ops"
directory = "ops"
showcontent = true

[tool.ty.environment]
root = [ "src", "tests" ]
python-version = "3.14"
18 changes: 18 additions & 0 deletions pytest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[pytest]
minversion = "9"
cache_dir = ".cache/pytest"
pythonpath = ["src",]
testpaths = ["tests",]
python_files = ["test_*.py",]
python_classes = ["Test*",]
python_functions = ["test_*",]
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--disable-warnings",
"--cov",
]
xfail_strict = true
log_cli = true
log_cli_level = "INFO"
4 changes: 0 additions & 4 deletions src/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
from .__meta__ import __version__


__all__ = ("__version__",)
1 change: 0 additions & 1 deletion src/app/__meta__.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/test_version.py

This file was deleted.

40 changes: 40 additions & 0 deletions towncrier.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[tool.towncrier]
directory = "changelog.d"
filename = "docs/changelog.md"
title_format = "## [{version}](https://github.com/LandSight/backend/releases/tag/{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/LandSight/backend/issues/{issue})"

[[tool.towncrier.type]]
name = "Feature"
directory = "feat"
showcontent = true

[[tool.towncrier.type]]
name = "Bugfix"
directory = "bugfix"
showcontent = true

[[tool.towncrier.type]]
name = "Security"
directory = "security"
showcontent = true

[[tool.towncrier.type]]
name = "Deprecation"
directory = "deprecation"
showcontent = true

[[tool.towncrier.type]]
name = "Removal"
directory = "removal"
showcontent = true

[[tool.towncrier.type]]
name = "Docs"
directory = "docs"
showcontent = true

[[tool.towncrier.type]]
name = "Ops"
directory = "ops"
showcontent = true
5 changes: 5 additions & 0 deletions ty.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[src]
include = [
"src",
"tests",
]
3 changes: 2 additions & 1 deletion uv.lock

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