Skip to content

Commit

Permalink
chore: Update pre-commit hooks (#38)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 →
v0.4.4](astral-sh/ruff-pre-commit@v0.4.3...v0.4.4)
- [github.com/tox-dev/pyproject-fmt: 1.8.0 →
2.0.4](tox-dev/pyproject-fmt@1.8.0...2.0.4)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez Mondragón <16805946+edgarrmondragon@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and edgarrmondragon committed May 13, 2024
1 parent 029a562 commit accf9d2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff
entry: ruff format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
rev: "2.0.4"
hooks:
- id: pyproject-fmt
24 changes: 19 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,39 @@ dynamic = [
"version",
]
dependencies = [
'backports.strenum; python_version < "3.11"',
"backports-strenum; python_version<'3.11'",
]
urls.Documentation = "https://github.com/edgarrmondragon/backports.httpmethod#readme"
urls.Issues = "https://github.com/edgarrmondragon/backports.httpmethod/issues"
urls.Source = "https://github.com/edgarrmondragon/backports.httpmethod"

[tool.hatch.build.targets.wheel]
packages = ["src/backports"]
packages = [
"src/backports",
]

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

[tool.hatch.envs.default]
[tool.hatch.envs.default.overrides]
env.GITHUB_ACTIONS.dev-mode = { value = false, if = ["true"] }
env.GITHUB_ACTIONS.dev-mode = { value = false, if = [
"true",
] }
[tool.hatch.envs.default.scripts]
test = "python -Im unittest {args}"

[[tool.hatch.envs.all.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy"]
python = [
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
"pypy",
]

[tool.hatch.envs.lint]
dependencies = [
Expand Down Expand Up @@ -118,7 +131,8 @@ select = [
]
ignore = [
# Conflict with the Ruff formatter
"COM812", "ISC001",
"COM812",
"ISC001",
]
unfixable = [
# Don't touch unused imports
Expand Down

0 comments on commit accf9d2

Please sign in to comment.