Skip to content

Commit eebfc86

Browse files
committed
🪶 Switching back to poetry.
Poetry seems faster than PDM so I'm switching back. It also does not seem to arbitrarily change the pyproject.toml file (not yet).
1 parent d38105c commit eebfc86

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

‎python/.gitignore‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,17 @@ ipython_config.py
9999
# This is especially recommended for binary packages to ensure reproducibility, and is more
100100
# commonly ignored for libraries.
101101
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102-
# poetry.lock
102+
poetry.lock
103103

104104
# pdm
105105
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106-
pdm.lock
106+
#pdm.lock
107107
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108108
# in version control.
109-
# https://pdm.fming.dev/#use-with-ide
110-
.pdm-python
109+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
111110
.pdm.toml
111+
.pdm-python
112+
.pdm-build/
112113

113114
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114115
__pypackages__/

‎python/poetry.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[virtualenvs]
2+
in-project = true

‎python/pyproject.toml‎

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
1-
[project]
2-
name = "python"
1+
[tool.poetry]
2+
name = "snippets"
33
version = "0.0.0"
44
description = "Python scripts"
5-
authors = [
6-
{name = "RenChu Wang", email = "[email protected]"},
7-
]
8-
dependencies = []
9-
requires-python = ">=3.11"
5+
authors = ["RenChu Wang <[email protected]>"]
6+
license = "MIT"
107
readme = "README.md"
11-
license = {text = "MIT"}
8+
package-mode = false
129

10+
[tool.poetry.dependencies]
11+
python = "^3.11"
1312

14-
[tool.pdm]
15-
distribution = "false"
13+
[tool.poetry.group.dev.dependencies]
14+
black = "^24.10.0"
15+
isort = "^5.13.2"
16+
autoflake = "^2.3.1"
17+
mypy = "^1.13.0"
1618

17-
[tool.pdm.dev-dependencies]
18-
format = [
19-
"autoflake>=2.2.1",
20-
"black>=24.2.0",
21-
"isort>=5.13.2",
22-
]
23-
type = [
24-
"mypy>=1.8.0",
25-
]
19+
[build-system]
20+
requires = ["poetry-core"]
21+
build-backend = "poetry.core.masonry.api"
2622

2723
[tool.autoflake]
2824
in-place = true

0 commit comments

Comments
 (0)