Skip to content

Commit fe1d0d2

Browse files
committed
update
1 parent f6c160e commit fe1d0d2

File tree

8 files changed

+135
-301
lines changed

8 files changed

+135
-301
lines changed

.github/workflows/pyci.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,14 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
11-
strategy:
12-
matrix:
13-
python-version: ['3.6', '3.8', '3.9', '3.10']
14-
1510
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
1913
with:
20-
python-version: ${{ matrix.python-version }}
14+
python-version: '3.13'
2115
- name: Install
2216
run: |
23-
pip install poetry
17+
pip install uv
2418
make install
2519
- name: Run linter
2620
run: make lint

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
export PYTHONPATH=src
22

33
install:
4-
poetry install
4+
uv sync
55

66
build:
7-
poetry build
7+
uv build
88

99
lint:
10-
poetry run flake8 .
10+
uv run ruff check .
1111

1212
test:
13-
poetry run pytest -vv tests
13+
uv run pytest -vv tests

main.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main():
2+
print("Hello from python-graphs!")
3+
4+
5+
if __name__ == "__main__":
6+
main()

poetry.lock

-261
This file was deleted.

pyproject.toml

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
[tool.poetry]
1+
[project]
22
name = "hexlet-graphs"
33
version = "0.1.3"
44
description = ""
5-
authors = ["Hexlet Team <[email protected]>"]
5+
authors = [{name = "Hexlet Team <[email protected]>"}]
66
license = "ISC"
7-
readme = "README.md"
87
homepage = "https://github.com/hexlet-components/python-graphs"
98
repository = "https://github.com/hexlet-components/python-graphs"
109
classifiers = [
@@ -15,18 +14,19 @@ classifiers = [
1514
"Topic :: Software Development :: Libraries",
1615
"Typing :: Typed",
1716
]
17+
readme = "README.md"
18+
requires-python = ">=3.13"
19+
dependencies = []
1820

19-
packages = [
20-
{ include = "hexlet/graphs.py", from = "src" },
21+
[dependency-groups]
22+
dev = [
23+
"pytest>=8.3.5",
24+
"ruff>=0.9.9",
2125
]
2226

23-
[tool.poetry.dependencies]
24-
python = "^3.6"
25-
26-
[tool.poetry.dev-dependencies]
27-
flake8 = "^4.0.1"
28-
pytest = "^6.2.5"
29-
3027
[build-system]
31-
requires = ["poetry-core>=1.0.0"]
32-
build-backend = "poetry.core.masonry.api"
28+
requires = ["hatchling"]
29+
build-backend = "hatchling.build"
30+
31+
[tool.hatch.build.targets.wheel]
32+
packages = ["src/hexlet"]

ruff.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
line-length = 80
2+
3+
[lint.per-file-ignores]
4+
# init modules can contain the local imports, logic, unused imports
5+
"__init__.py" = ["F401"]
6+
7+
[lint]
8+
preview = true
9+
select = ["E", "F", "C90"]

setup.cfg

-12
This file was deleted.

0 commit comments

Comments
 (0)