Skip to content

Commit 1a4f1af

Browse files
committed
project finished
1 parent 27cd3dd commit 1a4f1af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+996
-1
lines changed

.coverage

52 KB
Binary file not shown.

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Python CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.13'
16+
# make depends on uv
17+
- name: Install dependencies
18+
run: |
19+
pip install uv
20+
make install
21+
- name: Run linter and pytest
22+
run: |
23+
make check
24+
- name: Run test coverage
25+
run: |
26+
make test-coverage
27+
- name: SonarQubeScan
28+
uses: SonarSource/sonarqube-scan-action@v5
29+
env:
30+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
31+
with:
32+
args: >
33+
-Dsonar.projectKey=hexlet-boilerplates_python-package
34+
-Dsonar.organization=hexlet-boilerplates
35+
-Dsonar.python.coverage.reportPaths=coverage.xml

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
install:
2+
uv sync
3+
4+
run:
5+
uv run gendiff
6+
7+
test:
8+
uv run pytest
9+
10+
test-coverage:
11+
uv run pytest --cov=hexlet_python_package --cov-report xml
12+
13+
lint:
14+
uv run ruff check
15+
16+
check:
17+
test lint
18+
19+
build:
20+
uv build
21+
22+
setup:
23+
python3 -m pip install --force-reinstall dist/*.whl

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
### Hexlet tests and linter status:
2-
[![Actions Status](https://github.com/BiscayN/python-project-50/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/BiscayN/python-project-50/actions)
2+
[![Actions Status](https://github.com/BiscayN/python-project-50/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/BiscayN/python-project-50/actions)
3+
4+
![SonarCloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=885c59715630c5d56cfb4cc5799608d56180826e&metric=coverage)
5+
6+
![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=885c59715630c5d56cfb4cc5799608d56180826e&metric=alert_status)

gendiff/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from gendiff.generate_diff import generate_diff
2+
3+
__all__ = (
4+
'generate_diff',
5+
)
249 Bytes
Binary file not shown.
629 Bytes
Binary file not shown.
1.9 KB
Binary file not shown.
796 Bytes
Binary file not shown.
1.49 KB
Binary file not shown.

0 commit comments

Comments
 (0)