Skip to content

Migrate to qlty #282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 21, 2025
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
21 changes: 0 additions & 21 deletions .codeclimate.yml

This file was deleted.

15 changes: 7 additions & 8 deletions .github/workflows/python-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ jobs:
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: make dev-dependencies
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }}
- name: Install dependencies
run: make dev-dependencies
- name: Run coverage
run: make ci-coverage
- uses: qltysh/qlty-action/coverage@v1
with:
coverageCommand: make ci-coverage
coverageLocations: |
${{github.workspace}}/coverage.lcov:lcov
debug: true
token: ${{secrets.QLTY_COVERAGE_TOKEN}}
files: ${{github.workspace}}/coverage.lcov
7 changes: 7 additions & 0 deletions .qlty/qlty.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
config_version = "0"
exclude_patterns = []
test_patterns = ["**/tests/**"]

[[source]]
name = "default"
default = true
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: docs docs-build adr
.PHONY: docs docs-build adr qlty

containers:
docker compose build --build-arg UID=`id -u`
Expand Down Expand Up @@ -48,6 +48,9 @@ fix:
uv run ruff check . --fix
uv run ruff format .

qlty:
qlty smells --all

check: lint format typing test

docs:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Bootstrap python service
[![CI Pipeline](https://github.com/febus982/bootstrap-python-fastapi/actions/workflows/ci-pipeline.yml/badge.svg)](https://github.com/febus982/bootstrap-python-fastapi/actions/workflows/ci-pipeline.yml)
[![Python tests](https://github.com/febus982/bootstrap-python-fastapi/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-fastapi/actions/workflows/python-tests.yml)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a2ab183e64778e21ae14/test_coverage)](https://codeclimate.com/github/febus982/bootstrap-python-fastapi/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/a2ab183e64778e21ae14/maintainability)](https://codeclimate.com/github/febus982/bootstrap-python-fastapi/maintainability)
[![Code Coverage](https://qlty.sh/badges/8b83a4d5-bb29-402c-828b-7e6bb5fffde7/test_coverage.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-fastapi)
[![Maintainability](https://qlty.sh/badges/8b83a4d5-bb29-402c-828b-7e6bb5fffde7/maintainability.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-fastapi)

[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
Expand Down
Loading