Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jul 3, 2024
2 parents 42ff883 + be029d8 commit 872bbb8
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 38 deletions.
28 changes: 20 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.5.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
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
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: forbid-submodules
- id: trailing-whitespace

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

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

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.10.1
hooks:
- id: mypy
args: [--strict, --pretty, --show-error-codes, .]
Expand All @@ -32,13 +45,12 @@ repos:
pass_filenames: false

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0
rev: 2.1.4
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
67 changes: 37 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ keywords = [
"restructuredtext",
"rst",
]
license = {text = "MIT"}
authors = [{name = "Hugo van Kemenade"}]
license = { text = "MIT" }
authors = [
{ name = "Hugo van Kemenade" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
Expand All @@ -37,53 +39,58 @@ dynamic = [
"version",
]
dependencies = [
'pyperclip; platform_system == "Darwin"',
'pyperclip; platform_system == "Windows"',
"pyperclip; platform_system=='Darwin'",
"pyperclip; platform_system=='Windows'",
]
[project.optional-dependencies]
tests = [
optional-dependencies.tests = [
"pytest",
"pytest-cov",
]
[project.urls]
Changelog = "https://github.com/hugovk/linkotron/releases"
Homepage = "https://github.com/hugovk/linkotron"
Source = "https://github.com/hugovk/linkotron"
[project.scripts]
linkotron = "linkotron.cli:main"
linky = "linkotron.cli:main"
urls.Changelog = "https://github.com/hugovk/linkotron/releases"
urls.Homepage = "https://github.com/hugovk/linkotron"
urls.Source = "https://github.com/hugovk/linkotron"
scripts.linkotron = "linkotron.cli:main"
scripts.linky = "linkotron.cli:main"

[tool.hatch]
version.source = "vcs"

[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[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
[tool.ruff]
fix = true

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
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
extend-ignore = [
lint.ignore = [
"E203", # Whitespace before ':'
"E221", # Multiple spaces before operator
"E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ','
]
lint.isort.known-first-party = [
"linkotron",
]
lint.isort.required-imports = [
"from __future__ import annotations",
]

[tool.ruff.lint.isort]
known-first-party = ["linkotron"]
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 872bbb8

Please sign in to comment.