Skip to content

Commit eb11d75

Browse files
committed
Replace pipfile with uv
1 parent 631822b commit eb11d75

File tree

6 files changed

+277
-232
lines changed

6 files changed

+277
-232
lines changed

.flake8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
[flake8]
22
ignore = E203, E266, E501, W503
33
max-line-length = 127
4+
exclude =
5+
.venv,
6+
__pycache__,
7+
.git,
8+
.tox,
9+
dist,
10+
*.egg-info

Makefile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
.PHONY: dep
22
dep:
3-
pip3 install pipenv
4-
pipenv install --dev
3+
uv sync --extra dev
54

65
.PHONY: fmt
76
fmt:
8-
pipenv run black .
9-
pipenv run isort .
7+
uv run black .
8+
uv run isort .
109

1110
.PHONY: lint
1211
lint:
13-
pipenv run mypy .
14-
pipenv run flake8 .
15-
pipenv run isort --check --diff .
16-
pipenv run black --check --diff .
12+
uv run mypy .
13+
uv run flake8 .
14+
uv run isort --check --diff .
15+
uv run black --check --diff .
1716

1817
.PHONY: fl
1918
fl: fmt lint
2019

2120
.PHONY: run
2221
run:
23-
pipenv run python -m main
22+
uv run python -m main
2423

2524
.PHONY: tests
2625
tests:
27-
pipenv run python -m pytest tests -rP
26+
uv run python -m pytest tests -rP
2827

2928
.PHONY: flt
3029
flt: fmt lint tests

Pipfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 205 deletions
This file was deleted.

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
[project]
2+
name = "python-project-template"
3+
version = "0.1.0"
4+
description = ""
5+
requires-python = ">=3.12"
6+
dependencies = []
7+
8+
[project.optional-dependencies]
9+
dev = [
10+
"black",
11+
"click",
12+
"flake8",
13+
"isort",
14+
"pytest",
15+
"mypy",
16+
]
17+
118
[tool.black]
219
line-length = 127
320

0 commit comments

Comments
 (0)