-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyproject-fmt unstable (2.0.4) #18
Comments
PR welcome 👍 |
Not sure if the same bug, but this version is really messing some config files, as seen in pytest-dev/pytest#12321 |
Similarly with hugovk/norwegianblue#212: Original pyproject.toml[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs",
"hatchling",
]
[project]
name = "norwegianblue"
description = "CLI to show end-of-life dates for a number of products"
readme = "README.md"
keywords = [
"cli",
"end-of-life",
"endoflife",
"eol",
]
license = {text = "MIT"}
authors = [{name = "Hugo van Kemenade"}]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = [
"version",
]
dependencies = [
"httpx>=0.19",
"platformdirs",
"prettytable>=2.4",
"pytablewriter[html]>=0.63",
"python-dateutil",
"python-slugify",
"termcolor>=2.1",
]
[project.optional-dependencies]
tests = [
"freezegun",
"pytest",
"pytest-cov",
"respx>=0.11",
]
[project.urls]
Changelog = "https://github.com/hugovk/norwegianblue/releases"
Homepage = "https://github.com/hugovk/norwegianblue"
Source = "https://github.com/hugovk/norwegianblue"
[project.scripts]
eol = "norwegianblue.cli:main"
norwegianblue = "norwegianblue.cli:main"
[tool.hatch]
version.source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.ruff]
fix = true
[tool.ruff.lint]
select = [
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"EM", # flake8-errmsg
"F", # pyflakes errors
"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"PGH", # pygrep-hooks
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
extend-ignore = [
"E203", # Whitespace before ':'
"E221", # Multiple spaces before operator
"E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ','
]
[tool.ruff.lint.isort]
known-first-party = ["norwegianblue"]
required-imports = ["from __future__ import annotations"]
[tool.pyproject-fmt]
max_supported_python = "3.13"
[tool.pytest.ini_options]
addopts = "--color=yes"
Second small diff: diff --git a/pyproject.toml b/pyproject.toml
index 7cb4197..04d7e72 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -59,6 +59,7 @@ urls.Homepage = "https://github.com/hugovk/norwegianblue"
urls.Source = "https://github.com/hugovk/norwegianblue"
scripts.eol = "norwegianblue.cli:main"
scripts.norwegianblue = "norwegianblue.cli:main"
+
[tool.hatch]
version.source = "vcs" After this it is stable. |
#16 should fix it |
I don't think 2.1.0 fixes the issue: On the second run: --- pyproject.toml
+++ pyproject.toml
@@ -49,6 +49,7 @@
urls.Homepage = "https://www.mongodb.org"
urls.Source = "https://github.com/mongodb/mongo-python-driver"
urls.Tracker = "https://jira.mongodb.org/projects/PYTHON/issues"
+
[tool.setuptools.dynamic]
version = { attr = "pymongo._version.__version__" }
@@ -183,6 +184,7 @@
"UP006", # Use `type` instead of `Type` for type annotation"
"UP007", # Use `X | Y` for type annotation
]
+
[tool.pytest.ini_options]
minversion = "7"
addopts = [ |
Thank you @gaborbernat for working on this. 2.1.0 does not fix the issue with the |
Works for |
For norwegianblue as well, thanks! |
If I run
pyproject-fmt pyproject.toml
I get quite a big change. If I then run it again, I get a small diff.pyproject.toml
Small second diff:
The text was updated successfully, but these errors were encountered: