Skip to content

Commit

Permalink
🪶 Switching back to poetry.
Browse files Browse the repository at this point in the history
Poetry seems faster than PDM so I'm switching back. It also does not seem to arbitrarily change the pyproject.toml file (not yet).
  • Loading branch information
rentruewang committed Nov 21, 2024
1 parent d38105c commit eebfc86
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
9 changes: 5 additions & 4 deletions python/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,17 @@ ipython_config.py
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
# poetry.lock
poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
pdm.lock
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm-python
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
Expand Down
2 changes: 2 additions & 0 deletions python/poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[virtualenvs]
in-project = true
34 changes: 15 additions & 19 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
[project]
name = "python"
[tool.poetry]
name = "snippets"
version = "0.0.0"
description = "Python scripts"
authors = [
{name = "RenChu Wang", email = "[email protected]"},
]
dependencies = []
requires-python = ">=3.11"
authors = ["RenChu Wang <[email protected]>"]
license = "MIT"
readme = "README.md"
license = {text = "MIT"}
package-mode = false

[tool.poetry.dependencies]
python = "^3.11"

[tool.pdm]
distribution = "false"
[tool.poetry.group.dev.dependencies]
black = "^24.10.0"
isort = "^5.13.2"
autoflake = "^2.3.1"
mypy = "^1.13.0"

[tool.pdm.dev-dependencies]
format = [
"autoflake>=2.2.1",
"black>=24.2.0",
"isort>=5.13.2",
]
type = [
"mypy>=1.8.0",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.autoflake]
in-place = true
Expand Down

0 comments on commit eebfc86

Please sign in to comment.