[pre-commit.ci] pre-commit autoupdate (#458)

This commit is contained in:
Hugo van Kemenade 2024-07-02 05:34:35 -06:00 committed by GitHub
commit 25904371de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 41 additions and 33 deletions

View file

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4 rev: v0.5.0
hooks: hooks:
- id: ruff - id: ruff
args: [--exit-non-zero-on-fix] args: [--exit-non-zero-on-fix]
@ -11,7 +11,7 @@ repos:
- id: black - id: black
- repo: https://github.com/asottile/blacken-docs - repo: https://github.com/asottile/blacken-docs
rev: 1.16.0 rev: 1.18.0
hooks: hooks:
- id: blacken-docs - id: blacken-docs
args: [--target-version=py38] args: [--target-version=py38]
@ -33,21 +33,20 @@ repos:
exclude: .github/(ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE).md exclude: .github/(ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE).md
- repo: https://github.com/python-jsonschema/check-jsonschema - repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4 rev: 0.28.6
hooks: hooks:
- id: check-github-workflows - id: check-github-workflows
- id: check-renovate - id: check-renovate
- repo: https://github.com/rhysd/actionlint - repo: https://github.com/rhysd/actionlint
rev: v1.7.0 rev: v1.7.1
hooks: hooks:
- id: actionlint - id: actionlint
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0 rev: 2.1.3
hooks: hooks:
- id: pyproject-fmt - id: pyproject-fmt
additional_dependencies: [tox]
- repo: https://github.com/abravalheri/validate-pyproject - repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18 rev: v0.18

View file

@ -15,9 +15,13 @@ keywords = [
"scrobble", "scrobble",
"scrobbling", "scrobbling",
] ]
license = {text = "Apache-2.0"} license = { text = "Apache-2.0" }
maintainers = [{name = "Hugo van Kemenade"}] maintainers = [
authors = [{name = "Amr Hassan <amr.hassan@gmail.com> and Contributors", email = "amr.hassan@gmail.com"}] { name = "Hugo van Kemenade" },
]
authors = [
{ name = "Amr Hassan <amr.hassan@gmail.com> and Contributors", email = "amr.hassan@gmail.com" },
]
requires-python = ">=3.8" requires-python = ">=3.8"
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
@ -41,18 +45,16 @@ dynamic = [
dependencies = [ dependencies = [
"httpx", "httpx",
] ]
[project.optional-dependencies] optional-dependencies.tests = [
tests = [
"flaky", "flaky",
"pytest", "pytest",
"pytest-cov", "pytest-cov",
"pytest-random-order", "pytest-random-order",
"pyyaml", "pyyaml",
] ]
[project.urls] urls.Changelog = "https://github.com/pylast/pylast/releases"
Changelog = "https://github.com/pylast/pylast/releases" urls.Homepage = "https://github.com/pylast/pylast"
Homepage = "https://github.com/pylast/pylast" urls.Source = "https://github.com/pylast/pylast"
Source = "https://github.com/pylast/pylast"
[tool.hatch] [tool.hatch]
version.source = "vcs" version.source = "vcs"
@ -60,29 +62,36 @@ version.source = "vcs"
[tool.hatch.version.raw-options] [tool.hatch.version.raw-options]
local_scheme = "no-local-version" local_scheme = "no-local-version"
[tool.ruff.lint] [tool.ruff]
select = [ fix = true
"C4", # flake8-comprehensions
"E", # pycodestyle errors lint.select = [
"EM", # flake8-errmsg "C4", # flake8-comprehensions
"F", # pyflakes errors "E", # pycodestyle errors
"I", # isort "EM", # flake8-errmsg
"ISC", # flake8-implicit-str-concat "F", # pyflakes errors
"LOG", # flake8-logging "I", # isort
"PGH", # pygrep-hooks "ISC", # flake8-implicit-str-concat
"RUF100", # unused noqa (yesqa) "LOG", # flake8-logging
"PGH", # pygrep-hooks
"RUF022", # unsorted-dunder-all "RUF022", # unsorted-dunder-all
"UP", # pyupgrade "RUF100", # unused noqa (yesqa)
"W", # pycodestyle warnings "UP", # pyupgrade
"YTT", # flake8-2020 "W", # pycodestyle warnings
"YTT", # flake8-2020
] ]
extend-ignore = [ lint.extend-ignore = [
"E203", # Whitespace before ':' "E203", # Whitespace before ':'
"E221", # Multiple spaces before operator "E221", # Multiple spaces before operator
"E226", # Missing whitespace around arithmetic operator "E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ',' "E241", # Multiple spaces after ','
] ]
lint.isort.known-first-party = [
"pylast",
]
lint.isort.required-imports = [
"from __future__ import annotations",
]
[tool.ruff.lint.isort] [tool.pyproject-fmt]
known-first-party = ["pylast"] max_supported_python = "3.13"
required-imports = ["from __future__ import annotations"]