dycw-pre-commit-hooks 0.10.20__tar.gz → 0.10.21__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dycw-pre-commit-hooks might be problematic. Click here for more details.
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21}/PKG-INFO +1 -1
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21}/pyproject.toml +4 -4
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/__init__.py +1 -1
- dycw_pre_commit_hooks-0.10.20/.envrc +0 -3
- dycw_pre_commit_hooks-0.10.20/.github/workflows/pull-request.yml +0 -16
- dycw_pre_commit_hooks-0.10.20/.github/workflows/push.yml +0 -38
- dycw_pre_commit_hooks-0.10.20/.pre-commit-config.yaml +0 -46
- dycw_pre_commit_hooks-0.10.20/.pre-commit-hooks.yaml +0 -57
- dycw_pre_commit_hooks-0.10.20/.python-version +0 -1
- dycw_pre_commit_hooks-0.10.20/run-test-hook.sh +0 -28
- dycw_pre_commit_hooks-0.10.20/uv.lock +0 -1857
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21}/.gitignore +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21}/README.md +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/common.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/py.typed +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/run_bump2version/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/run_bump2version/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/run_bump_my_version/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/run_bump_my_version/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/run_ruff_format/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/pre_commit_hooks/run_ruff_format/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/tests/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.21/src}/tests/test_main.py +0 -0
|
@@ -27,7 +27,7 @@ dependencies = [
|
|
|
27
27
|
name = "dycw-pre-commit-hooks"
|
|
28
28
|
readme = "README.md"
|
|
29
29
|
requires-python = ">= 3.11"
|
|
30
|
-
version = "0.10.
|
|
30
|
+
version = "0.10.21"
|
|
31
31
|
|
|
32
32
|
[project.scripts]
|
|
33
33
|
run-bump-my-version = "pre_commit_hooks.run_bump_my_version:main"
|
|
@@ -37,7 +37,7 @@ run-ruff-format = "pre_commit_hooks.run_ruff_format:main"
|
|
|
37
37
|
# bump-my-version
|
|
38
38
|
[tool.bumpversion]
|
|
39
39
|
allow_dirty = true
|
|
40
|
-
current_version = "0.10.
|
|
40
|
+
current_version = "0.10.21"
|
|
41
41
|
|
|
42
42
|
[[tool.bumpversion.files]]
|
|
43
43
|
filename = "src/pre_commit_hooks/__init__.py"
|
|
@@ -64,8 +64,8 @@ parallel = true
|
|
|
64
64
|
# hatch
|
|
65
65
|
[tool.hatch]
|
|
66
66
|
|
|
67
|
-
[tool.hatch.build]
|
|
68
|
-
|
|
67
|
+
[tool.hatch.build.targets.sdist]
|
|
68
|
+
include = ["src"]
|
|
69
69
|
|
|
70
70
|
[tool.hatch.build.targets.wheel]
|
|
71
71
|
packages = ["src/pre_commit_hooks"]
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
name: pull-request
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
lint:
|
|
10
|
-
name: lint
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v4
|
|
14
|
-
- uses: astral-sh/ruff-action@v3
|
|
15
|
-
- run: ruff check --fix
|
|
16
|
-
- run: ruff format
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
name: push
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
tag:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v4
|
|
13
|
-
- uses: butlerlogic/action-autotag@1.1.2 # https://github.com/ButlerLogic/action-autotag/issues/45#issuecomment-1825726927
|
|
14
|
-
env:
|
|
15
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
16
|
-
with:
|
|
17
|
-
strategy: regex
|
|
18
|
-
root: pyproject.toml
|
|
19
|
-
regex_pattern: 'current_version = "(?<version>\d+\.\d+\.\d+)"'
|
|
20
|
-
|
|
21
|
-
publish:
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
needs:
|
|
24
|
-
- tag
|
|
25
|
-
environment:
|
|
26
|
-
name: pypi
|
|
27
|
-
permissions:
|
|
28
|
-
id-token: write
|
|
29
|
-
steps:
|
|
30
|
-
- uses: actions/checkout@v4
|
|
31
|
-
- uses: astral-sh/setup-uv@v5
|
|
32
|
-
with:
|
|
33
|
-
enable-cache: true
|
|
34
|
-
- uses: actions/setup-python@v5
|
|
35
|
-
with:
|
|
36
|
-
python-version-file: pyproject.toml
|
|
37
|
-
- run: uv build
|
|
38
|
-
- run: uv publish --trusted-publishing always
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
repos:
|
|
2
|
-
# fixers
|
|
3
|
-
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
4
|
-
rev: v0.9.10
|
|
5
|
-
hooks:
|
|
6
|
-
- id: ruff
|
|
7
|
-
args: [--fix]
|
|
8
|
-
- repo: https://github.com/dycw/pre-commit-hooks
|
|
9
|
-
rev: 0.10.14
|
|
10
|
-
hooks:
|
|
11
|
-
- id: run-bump-my-version
|
|
12
|
-
- id: run-ruff-format
|
|
13
|
-
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
14
|
-
rev: v2.14.0
|
|
15
|
-
hooks:
|
|
16
|
-
- id: pretty-format-toml
|
|
17
|
-
args: [--autofix, --trailing-commas]
|
|
18
|
-
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
19
|
-
rev: 0.6.5
|
|
20
|
-
hooks:
|
|
21
|
-
- id: uv-sync # after version bump
|
|
22
|
-
args: [--all-packages, --upgrade]
|
|
23
|
-
stages: [pre-commit, pre-push]
|
|
24
|
-
# linters
|
|
25
|
-
- repo: https://github.com/andreoliwa/nitpick
|
|
26
|
-
rev: v0.35.0
|
|
27
|
-
hooks:
|
|
28
|
-
- id: nitpick-check
|
|
29
|
-
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
30
|
-
rev: v0.10.0.1
|
|
31
|
-
hooks:
|
|
32
|
-
- id: shellcheck
|
|
33
|
-
# fixers/linters
|
|
34
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
35
|
-
rev: v5.0.0
|
|
36
|
-
hooks:
|
|
37
|
-
- id: check-executables-have-shebangs
|
|
38
|
-
- id: check-merge-conflict
|
|
39
|
-
- id: check-symlinks
|
|
40
|
-
- id: destroyed-symlinks
|
|
41
|
-
- id: detect-private-key
|
|
42
|
-
- id: end-of-file-fixer
|
|
43
|
-
- id: mixed-line-ending
|
|
44
|
-
args: [--fix=lf]
|
|
45
|
-
- id: no-commit-to-branch
|
|
46
|
-
- id: trailing-whitespace
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
- id: run-bump2version
|
|
2
|
-
name: run-bump2version
|
|
3
|
-
entry: run-bump2version
|
|
4
|
-
language: python
|
|
5
|
-
always_run: true
|
|
6
|
-
pass_filenames: false
|
|
7
|
-
description: Run `bump2version`
|
|
8
|
-
- id: run-bump-my-version
|
|
9
|
-
name: run-bump-my-version
|
|
10
|
-
entry: run-bump-my-version
|
|
11
|
-
language: python
|
|
12
|
-
always_run: true
|
|
13
|
-
pass_filenames: false
|
|
14
|
-
description: Run `bump-my-version`
|
|
15
|
-
- id: run-dockfmt
|
|
16
|
-
name: run-dockfmt
|
|
17
|
-
entry: run-dockfmt
|
|
18
|
-
language: python
|
|
19
|
-
files: Dockerfile
|
|
20
|
-
description: Run `dockfmt`
|
|
21
|
-
- id: run-hatch-version
|
|
22
|
-
name: run-hatch-version
|
|
23
|
-
entry: run-hatch-version
|
|
24
|
-
language: python
|
|
25
|
-
always_run: true
|
|
26
|
-
pass_filenames: false
|
|
27
|
-
description: Run `hatch version bump/minor/major`
|
|
28
|
-
- id: run-ruff-format
|
|
29
|
-
name: run-ruff-format
|
|
30
|
-
entry: run-ruff-format
|
|
31
|
-
language: python
|
|
32
|
-
always_run: true
|
|
33
|
-
pass_filenames: false
|
|
34
|
-
description: Run `ruff format`
|
|
35
|
-
- id: run-uv-pip-compile
|
|
36
|
-
name: run-uv-pip-compile
|
|
37
|
-
entry: run-uv-pip-compile
|
|
38
|
-
language: python
|
|
39
|
-
files: ^pyproject\.toml$
|
|
40
|
-
pass_filenames: false
|
|
41
|
-
description: Run `uv pip compile`
|
|
42
|
-
- id: test-hook
|
|
43
|
-
name: test-hook
|
|
44
|
-
entry: run-uv-pip-compile
|
|
45
|
-
language: python
|
|
46
|
-
files: ^pyproject\.toml$
|
|
47
|
-
pass_filenames: false
|
|
48
|
-
description: Run `uv pip compile`
|
|
49
|
-
args: [
|
|
50
|
-
# --output-file=requirements-macos.txt,
|
|
51
|
-
# --extra=interactive,
|
|
52
|
-
# --python-platform=macos,
|
|
53
|
-
# --python-version=3.12,
|
|
54
|
-
--output-file=requirements-linux.txt,
|
|
55
|
-
--python-platform=linux,
|
|
56
|
-
--python-version=3.12,
|
|
57
|
-
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.11
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
# usage: edit the following in `.pre-commit-hooks.yaml`
|
|
4
|
-
#
|
|
5
|
-
# - id: test-hook
|
|
6
|
-
# name: test-hook
|
|
7
|
-
# entry: run-uv-pip-compile
|
|
8
|
-
# language: python
|
|
9
|
-
# files: ^pyproject\.toml$
|
|
10
|
-
# pass_filenames: false
|
|
11
|
-
# description: Run `uv pip compile`
|
|
12
|
-
# args: [
|
|
13
|
-
# --output-file=requirements-macos.txt
|
|
14
|
-
# --extra=interactive
|
|
15
|
-
# --python-platform=macos
|
|
16
|
-
# --python-version=3.12,
|
|
17
|
-
# ]
|
|
18
|
-
#
|
|
19
|
-
# then, in your project, run:
|
|
20
|
-
#
|
|
21
|
-
# ❯ ../pre-commit-hooks/run-test-hook.sh
|
|
22
|
-
|
|
23
|
-
PATH_DIR="$(
|
|
24
|
-
cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit
|
|
25
|
-
pwd -P
|
|
26
|
-
)"
|
|
27
|
-
|
|
28
|
-
pre-commit try-repo --verbose --all-files "$PATH_DIR" test-hook
|