diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index a68c916..0000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,4 +0,0 @@ -version: "2" -plugins: - sonar-python: - enabled: true diff --git a/.github/workflows/python-quality.yml b/.github/workflows/python-quality.yml index f14222f..5392dd8 100644 --- a/.github/workflows/python-quality.yml +++ b/.github/workflows/python-quality.yml @@ -26,12 +26,11 @@ jobs: - 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 diff --git a/.qlty/qlty.toml b/.qlty/qlty.toml new file mode 100644 index 0000000..43be03b --- /dev/null +++ b/.qlty/qlty.toml @@ -0,0 +1,7 @@ +config_version = "0" +exclude_patterns = [] +test_patterns = ["**/tests/**"] + +[[source]] +name = "default" +default = true diff --git a/Makefile b/Makefile index 78b78d0..784a7a1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage +.PHONY: dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage qlty ######################### ###### dev commands ##### @@ -18,6 +18,9 @@ fix: uv run ruff check . --fix uv run ruff format . +qlty: + qlty smells --all + check: uv run tox diff --git a/README.md b/README.md index 320606c..04a5241 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![stability-beta](https://img.shields.io/badge/stability-beta-33bbff.svg)](https://github.com/mkenney/software-guides/blob/master/STABILITY-BADGES.md#beta) [![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) -[![Maintainability](https://api.codeclimate.com/v1/badges/593e78ec96ed5ebb0dd3/maintainability)](https://codeclimate.com/github/febus982/bootstrap-python-package/maintainability) -[![Test Coverage](https://api.codeclimate.com/v1/badges/593e78ec96ed5ebb0dd3/test_coverage)](https://codeclimate.com/github/febus982/bootstrap-python-package/test_coverage) +[![Maintainability](https://qlty.sh/badges/d1e0d7b6-ab8a-463d-bd55-5c747a6fe1f9/maintainability.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-package) +[![Code Coverage](https://qlty.sh/badges/d1e0d7b6-ab8a-463d-bd55-5c747a6fe1f9/test_coverage.svg)](https://qlty.sh/gh/febus982/projects/bootstrap-python-package) [![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)