Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 798afdd512 | |||
| 196cc04df7 | |||
| d6cb1fda63 | |||
| 9556588d9d | |||
| 14ec61d209 | |||
|
|
cb470c2850 | ||
| 4eb3856c36 | |||
|
|
c8b3590355 | ||
| cf8ec8b07e | |||
|
|
2d08c2959a | ||
| 5da3050da6 | |||
|
|
e681c8ba92 | ||
| 3a6da75c8f | |||
|
|
80d2b9bda1 | ||
| 765c7ada8c | |||
| c66bbbe8ce | |||
| b90b3ab122 | |||
| e3d6039d11 | |||
| 6602200f4c | |||
| 7337e0297e | |||
|
|
25237a1812 | ||
| e713803b2e | |||
| 78483cfebb |
48
.drone.yml
Normal file
48
.drone.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: python-ci
|
||||
|
||||
trigger:
|
||||
event: [ push, pull_request ]
|
||||
|
||||
steps:
|
||||
- name: setup+deps
|
||||
image: python:3.12-slim
|
||||
environment:
|
||||
UV_NO_SYNC_PROGRESS: "1"
|
||||
commands:
|
||||
- python -V
|
||||
- apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||
- curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- export PATH="$HOME/.local/bin:$PATH"
|
||||
# pick python version (use .python-version if present, else 3.12)
|
||||
- PYVER="$( [ -f .python-version ] && cat .python-version || echo 3.12 )"
|
||||
- uv python install "$PYVER"
|
||||
- uv venv .venv
|
||||
- . .venv/bin/activate
|
||||
# install project + dev tools
|
||||
- |
|
||||
if [ -f pyproject.toml ] && grep -q "\[tool\.uv\]" pyproject.toml; then
|
||||
uv sync --all-extras --dev
|
||||
else
|
||||
uv pip install -e ".[dev]" || true
|
||||
if [ -f requirements.txt ]; then uv pip install -r requirements.txt; fi
|
||||
fi
|
||||
- uv pip install pytest pytest-cov mypy ruff
|
||||
|
||||
- name: lint-typecheck
|
||||
image: python:3.12-slim
|
||||
commands:
|
||||
- export PATH="$HOME/.local/bin:$PATH"
|
||||
- . .venv/bin/activate
|
||||
- ruff check .
|
||||
- mypy --ignore-missing-imports .
|
||||
|
||||
- name: test
|
||||
image: python:3.12-slim
|
||||
commands:
|
||||
- export PATH="$HOME/.local/bin:$PATH"
|
||||
- . .venv/bin/activate
|
||||
- pytest -q --maxfail=1 --disable-warnings --cov --cov-report=term-missing
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
[](https://drone.theprivateserver.de/PHB/BibAPI)
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "bibapi"
|
||||
version = "0.1.0"
|
||||
version = "0.0.6"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "WorldTeacher", email = "coding_contact@pm.me" }]
|
||||
@@ -27,7 +27,7 @@ requires = ["uv_build >= 0.9.5, <0.10.0"]
|
||||
build-backend = "uv_build"
|
||||
|
||||
[tool.bumpversion]
|
||||
current_version = "0.0.0"
|
||||
current_version = "0.0.6"
|
||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||
serialize = ["{major}.{minor}.{patch}"]
|
||||
search = "{current_version}"
|
||||
|
||||
3
renovate.json
Normal file
3
renovate.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
||||
Reference in New Issue
Block a user