Skip to content
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

Upgrade pyproject-fmt to version 2 #212

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ repos:
# ]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0
rev: 2.1.1
hooks:
- id: pyproject-fmt
additional_dependencies: [tox]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
Expand Down
59 changes: 31 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ keywords = [
"endoflife",
"eol",
]
license = {text = "MIT"}
authors = [{name = "Hugo van Kemenade"}]
license = { text = "MIT" }
authors = [
{ name = "Hugo van Kemenade" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
Expand Down Expand Up @@ -46,20 +48,17 @@ dependencies = [
"python-slugify",
"termcolor>=2.1",
]
[project.optional-dependencies]
tests = [
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"
urls.Changelog = "https://github.com/hugovk/norwegianblue/releases"
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"
Expand All @@ -70,31 +69,35 @@ 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
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
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
extend-ignore = [
lint.extend-ignore = [
"E203", # Whitespace before ':'
"E221", # Multiple spaces before operator
"E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ','
]
lint.isort.known-first-party = [
"norwegianblue",
]
lint.isort.required-imports = [
"from __future__ import annotations",
]

[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"
Loading