Skip to content

Commit 616ad0d

Browse files
authored
Migrate to qlty (#39)
1 parent b5be8a4 commit 616ad0d

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.codeclimate.yml

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

.github/workflows/python-quality.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
make dev-dependencies
29-
- name: Test & publish code coverage
30-
uses: paambaati/[email protected]
31-
env:
32-
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }}
29+
- name: Install dependencies
30+
run: make dev-dependencies
31+
- name: Run coverage
32+
run: make ci-coverage
33+
- uses: qltysh/qlty-action/coverage@v1
3334
with:
34-
coverageCommand: make ci-coverage
35-
coverageLocations: |
36-
${{github.workspace}}/coverage.lcov:lcov
37-
debug: true
35+
token: ${{secrets.QLTY_COVERAGE_TOKEN}}
36+
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: dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage
1+
.PHONY: dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage qlty
22

33
#########################
44
###### dev commands #####
@@ -18,6 +18,9 @@ fix:
1818
uv run ruff check . --fix
1919
uv run ruff format .
2020

21+
qlty:
22+
qlty smells --all
23+
2124
check:
2225
uv run tox
2326

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[![stability-beta](https://img.shields.io/badge/stability-beta-33bbff.svg)](https://github.com/mkenney/software-guides/blob/master/STABILITY-BADGES.md#beta)
55

66
[![Python tests](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/febus982/bootstrap-python-package/actions/workflows/python-tests.yml)
7-
[![Maintainability](https://api.codeclimate.com/v1/badges/593e78ec96ed5ebb0dd3/maintainability)](https://codeclimate.com/github/febus982/bootstrap-python-package/maintainability)
8-
[![Test Coverage](https://api.codeclimate.com/v1/badges/593e78ec96ed5ebb0dd3/test_coverage)](https://codeclimate.com/github/febus982/bootstrap-python-package/test_coverage)
7+
[![Maintainability](https://qlty.sh/badges/d1e0d7b6-ab8a-463d-bd55-5c747a6fe1f9/maintainability.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-package)
8+
[![Code Coverage](https://qlty.sh/badges/d1e0d7b6-ab8a-463d-bd55-5c747a6fe1f9/test_coverage.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-package)
99

1010
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)
1111
[![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)