Skip to content

Commit

Permalink
rework boilerpalte to use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmdlt committed Oct 29, 2024
1 parent ee822d2 commit bd8ab15
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 28 deletions.
17 changes: 7 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
install:
poetry install
uv sync

test:
poetry run pytest
uv run pytest

test-coverage:
poetry run pytest --cov=hexlet_python_package --cov-report xml
uv run pytest --cov=hexlet_python_package --cov-report xml

lint:
poetry run flake8 hexlet_python_package
uv run ruff check

selfcheck:
poetry check
check: test lint

check: selfcheck test lint

build: check
poetry build
build:
uv build

.PHONY: install test lint selfcheck check build
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,28 @@

This project was built using these tools:

<<<<<<< HEAD
| Tool | Description |
|-----------------------------------------------------------------------------|---------------------------------------------------------|
| [poetry](https://python-poetry.org/) | "Python dependency management and packaging made easy" |
| [Py.Test](https://pytest.org) | "A mature full-featured Python testing tool" |
| [flake8](https://flake8.pycqa.org/) | "Your tool for style guide enforcement" |
=======
| Tool | Description |
|------------------------------------------------------------------------|---------------------------------------------------------|
| [uv](https://docs.astral.sh/uv/) | "An extremely fast Python package and project manager, written in Rust" |
| [Pytest](https://pytest.org) | "A mature full-featured Python testing tool" |
| [ruff](https://docs.astral.sh/ruff/) | "An extremely fast Python linter and code formatter, written in Rust" |
>>>>>>> 3a2f12d (rework boilerpalte to use uv)
---

[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=python-package)

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).

See most active contributors on [hexlet-friends](https://friends.hexlet.io/).
<<<<<<< HEAD
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).
=======
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).
>>>>>>> 3a2f12d (rework boilerpalte to use uv)
32 changes: 15 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
[tool.poetry]
name = "hexlet-python-package"
version = "0.3.0"
description = ""
authors = ["skip"]
[project]
authors = [
{name = "Hexlet team", email = "team@hexlet.io"},
]
requires-python = "<4.0,>=3.12"
name = "python-example-app"
version = "0.1.0"
description = "Example application"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
[tool.uv]
dev-dependencies = [
"ruff>=0.7.1",
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
]

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
flake8 = "^6.1.0"

[tool.poetry.scripts]
[project.scripts]
hexlet-python-package = "hexlet_python_package.scripts.hexlet_python_package:main"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Loading

0 comments on commit bd8ab15

Please sign in to comment.