Skip to content

Commit 3e500e2

Browse files
authored
Migrate to qlty (#20)
1 parent e2be52a commit 3e500e2

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
@@ -5,8 +5,8 @@
55
[![stability-beta](https://img.shields.io/badge/stability-beta-33bbff.svg)](https://github.com/mkenney/software-guides/blob/master/STABILITY-BADGES.md#beta)
66

77
[![Python tests](https://github.com/febus982/cloudevents-pydantic/actions/workflows/python-tests.yml/badge.svg?branch=main)](https://github.com/febus982/cloudevents-pydantic/actions/workflows/python-tests.yml)
8-
[![Maintainability](https://api.codeclimate.com/v1/badges/c7fe3ebcadd850d7ed3f/maintainability)](https://codeclimate.com/github/febus982/cloudevents-pydantic/maintainability)
9-
[![Test Coverage](https://api.codeclimate.com/v1/badges/c7fe3ebcadd850d7ed3f/test_coverage)](https://codeclimate.com/github/febus982/cloudevents-pydantic/test_coverage)
8+
[![Maintainability](https://qlty.sh/badges/9abc9122-bfd4-4ad1-bdbd-cb2e8324180b/maintainability.svg)](https://qlty.sh/gh/febus982/projects/cloudevents-pydantic)
9+
[![Code Coverage](https://qlty.sh/badges/9abc9122-bfd4-4ad1-bdbd-cb2e8324180b/test_coverage.svg)](https://qlty.sh/gh/febus982/projects/cloudevents-pydantic)
1010

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