Skip to content

Commit 862eb8d

Browse files
authored
Migrate to qlty (#282)
* Migrate to qlty * Try relative path * Missing $ * Revert "Try relative path" This reverts commit 597d07a * Run coverage command * Basic qlty.toml * Add qlty make command and update badges
1 parent ccd03ac commit 862eb8d

File tree

6 files changed

+733
-713
lines changed

6 files changed

+733
-713
lines changed

.codeclimate.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/python-quality.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ jobs:
2525
uses: astral-sh/setup-uv@v6
2626
- name: Install dependencies
2727
run: make dev-dependencies
28-
- name: Test & publish code coverage
29-
uses: paambaati/[email protected]
30-
env:
31-
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }}
28+
- name: Install dependencies
29+
run: make dev-dependencies
30+
- name: Run coverage
31+
run: make ci-coverage
32+
- uses: qltysh/qlty-action/coverage@v1
3233
with:
33-
coverageCommand: make ci-coverage
34-
coverageLocations: |
35-
${{github.workspace}}/coverage.lcov:lcov
36-
debug: true
34+
token: ${{secrets.QLTY_COVERAGE_TOKEN}}
35+
files: ${{github.workspace}}/coverage.lcov

.qlty/qlty.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
config_version = "0"
2+
exclude_patterns = []
3+
test_patterns = ["**/tests/**"]
4+
5+
[[source]]
6+
name = "default"
7+
default = true

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: docs docs-build adr
1+
.PHONY: docs docs-build adr qlty
22

33
containers:
44
docker compose build --build-arg UID=`id -u`
@@ -48,6 +48,9 @@ fix:
4848
uv run ruff check . --fix
4949
uv run ruff format .
5050

51+
qlty:
52+
qlty smells --all
53+
5154
check: lint format typing test
5255

5356
docs:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Bootstrap python service
22
[![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)
33
[![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)
4-
[![Test Coverage](https://api.codeclimate.com/v1/badges/a2ab183e64778e21ae14/test_coverage)](https://codeclimate.com/github/febus982/bootstrap-python-fastapi/test_coverage)
5-
[![Maintainability](https://api.codeclimate.com/v1/badges/a2ab183e64778e21ae14/maintainability)](https://codeclimate.com/github/febus982/bootstrap-python-fastapi/maintainability)
4+
[![Code Coverage](https://qlty.sh/badges/8b83a4d5-bb29-402c-828b-7e6bb5fffde7/test_coverage.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-fastapi)
5+
[![Maintainability](https://qlty.sh/badges/8b83a4d5-bb29-402c-828b-7e6bb5fffde7/maintainability.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-fastapi)
66

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

0 commit comments

Comments
 (0)