Skip to content

Commit 65c966c

Browse files
committed
Merge branch 'main' into uv
2 parents 9132286 + 7a57781 commit 65c966c

File tree

6 files changed

+264
-33
lines changed

6 files changed

+264
-33
lines changed

.github/workflows/pyci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- name: Set up Python
13-
uses: actions/setup-python@v5
12+
- name: Set up Python ${{ matrix.python-version }}
13+
uses: actions/setup-python@v4
1414
with:
15-
python-version: '3.12'
16-
# make depends on uv
15+
python-version: ${{ matrix.python-version }}
16+
# make depends on poetry
1717
- name: Install dependencies
1818
run: |
19-
pip install uv
19+
pip install poetry
2020
make install
2121
- name: Run linter and pytest
2222
run: |
2323
make check
2424
- name: Test & publish code coverage
25-
uses: paambaati/codeclimate-action@v9.0.0
25+
uses: paambaati/codeclimate-action@v5.0.0
2626
if: github.ref_name == 'main'
2727
env:
2828
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
install:
2-
uv sync
2+
poetry install
33

44
run:
55
uv run hexlet-python-package
66

77
test:
8-
uv run pytest
8+
poetry run pytest
99

1010
test-coverage:
11-
uv run pytest --cov=hexlet_python_package --cov-report xml
11+
poetry run pytest --cov=hexlet_python_package --cov-report xml
1212

1313
lint:
14-
uv run ruff check
14+
poetry run flake8 hexlet_python_package
1515

16-
check: test lint
16+
selfcheck:
17+
poetry check
1718

18-
build:
19-
uv build
19+
check: selfcheck test lint
20+
21+
build: check
22+
poetry build
2023

2124
.PHONY: install test lint selfcheck check build

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
This project was built using these tools:
1010

11-
| Tool | Description |
12-
|------------------------------------------------------------------------|---------------------------------------------------------|
13-
| [uv](https://docs.astral.sh/uv/) | "An extremely fast Python package and project manager, written in Rust" |
14-
| [Pytest](https://pytest.org) | "A mature full-featured Python testing tool" |
15-
| [ruff](https://docs.astral.sh/ruff/) | "An extremely fast Python linter and code formatter, written in Rust" |
11+
| Tool | Description |
12+
|-----------------------------------------------------------------------------|---------------------------------------------------------|
13+
| [poetry](https://python-poetry.org/) | "Python dependency management and packaging made easy" |
14+
| [Py.Test](https://pytest.org) | "A mature full-featured Python testing tool" |
15+
| [flake8](https://flake8.pycqa.org/) | "Your tool for style guide enforcement" |
1616

1717
---
1818

@@ -33,4 +33,4 @@ make test
3333

3434
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=python-package).
3535

36-
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).
36+
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).

poetry.lock

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
[project]
2-
authors = [
3-
{name = "Hexlet team", email = "[email protected]"},
4-
]
5-
requires-python = "<4.0,>=3.12"
6-
name = "python-example-app"
7-
version = "0.1.0"
8-
description = "Example application"
1+
[tool.poetry]
2+
name = "hexlet-python-package"
3+
version = "0.3.0"
4+
description = ""
5+
authors = ["skip"]
96
readme = "README.md"
107

11-
[tool.uv]
12-
dev-dependencies = [
13-
"ruff>=0.7.1",
14-
"pytest>=8.3.3",
15-
"pytest-cov>=5.0.0",
16-
]
8+
[tool.poetry.dependencies]
9+
python = ">=3.8.1,<4.0"
1710

1811
[project.scripts]
1912
hexlet-python-package = "hexlet_python_package.scripts.main:main"

uv.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)