Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 1, 2024
2 parents 7d408eb + 0913079 commit 63caff9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 35 deletions.
13 changes: 6 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.5.0
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -27,7 +27,7 @@ repos:
exclude: tests/data/expected_output.py

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.1
rev: 0.28.6
hooks:
- id: check-github-workflows
- id: check-renovate
Expand All @@ -51,13 +51,12 @@ repos:
# ]

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

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
rev: v0.18
hooks:
- id: validate-pyproject

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"

0 comments on commit 63caff9

Please sign in to comment.