Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 2, 2024
2 parents ed60277 + beda87c commit ab72981
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.5
rev: v0.5.0
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
Expand All @@ -26,21 +26,20 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4
rev: 0.28.6
hooks:
- id: check-github-workflows
- id: check-renovate

- repo: https://github.com/rhysd/actionlint
rev: v1.7.0
rev: v1.7.1
hooks:
- id: actionlint

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

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
Expand Down
62 changes: 34 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ readme = "README.md"
keywords = [
"osm openstreetmap tiles visualization",
]
license = {text = "MIT"}
maintainers = [{name = "Hugo van Kemenade"}]
authors = [{name = "Colin Bick and Contributors", email = "colin.bick@gmail.com"}]
license = { text = "MIT" }
maintainers = [
{ name = "Hugo van Kemenade" },
]
authors = [
{ name = "Colin Bick and Contributors", email = "colin.bick@gmail.com" },
]
requires-python = ">=3.8"
classifiers = [
"Intended Audience :: Developers",
Expand All @@ -33,18 +37,16 @@ classifiers = [
dynamic = [
"version",
]
[project.optional-dependencies]
tests = [
optional-dependencies.tests = [
"coverage",
"pillow>=9.1",
"pytest",
"pytest-cov",
]
[project.urls]
Changelog = "https://github.com/hugovk/osmviz/releases"
Documentation = "https://hugovk.github.io/osmviz/"
Homepage = "https://github.com/hugovk/osmviz"
Source = "https://github.com/hugovk/osmviz"
urls.Changelog = "https://github.com/hugovk/osmviz/releases"
urls.Documentation = "https://hugovk.github.io/osmviz/"
urls.Homepage = "https://github.com/hugovk/osmviz"
urls.Source = "https://github.com/hugovk/osmviz"

[tool.hatch]
version.source = "vcs"
Expand All @@ -55,32 +57,36 @@ 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)
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
"RUF022", # unsorted-dunder-all
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
"RUF100", # unused noqa (yesqa)
"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 = [
"osmviz",
]
lint.isort.required-imports = [
"from __future__ import annotations",
]

[tool.ruff.lint.isort]
known-first-party = ["osmviz"]
required-imports = ["from __future__ import annotations"]
[tool.pyproject-fmt]
max_supported_python = "3.13"

[tool.pytest.ini_options]
addopts = "-W error::DeprecationWarning"

0 comments on commit ab72981

Please sign in to comment.