dycw-pre-commit-hooks 0.10.20__tar.gz → 0.10.22__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.22}/PKG-INFO +3 -4
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22}/pyproject.toml +9 -11
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/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.22}/.gitignore +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22}/README.md +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/src}/pre_commit_hooks/common.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/src}/pre_commit_hooks/py.typed +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/src}/pre_commit_hooks/run_bump2version/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/src}/pre_commit_hooks/run_bump2version/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/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.22/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.22/src}/pre_commit_hooks/run_ruff_format/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/src}/pre_commit_hooks/run_ruff_format/__main__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/src}/tests/__init__.py +0 -0
- {dycw_pre_commit_hooks-0.10.20 → dycw_pre_commit_hooks-0.10.22/src}/tests/test_main.py +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dycw-pre-commit-hooks
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.22
|
|
4
4
|
Author-email: Derek Wan <d.wan@icloud.com>
|
|
5
|
-
Requires-Python: >=3.
|
|
5
|
+
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: click<8.2,>=8.1.8
|
|
7
|
-
Requires-Dist: dycw-utilities<0.
|
|
8
|
-
Requires-Dist: jupyterlab>=4.3.5
|
|
7
|
+
Requires-Dist: dycw-utilities<0.98,>=0.97.2
|
|
9
8
|
Requires-Dist: loguru<0.8,>=0.7.3
|
|
10
9
|
Requires-Dist: semver<3.1,>=3.0.4
|
|
11
10
|
Requires-Dist: tomlkit<0.14,>=0.13.2
|
|
@@ -9,7 +9,6 @@ requires = ["hatchling"]
|
|
|
9
9
|
[dependency-groups]
|
|
10
10
|
dev = [
|
|
11
11
|
"dycw-utilities[test]",
|
|
12
|
-
"setuptools", # https://github.com/theY4Kman/pytest-only/issues/14
|
|
13
12
|
]
|
|
14
13
|
|
|
15
14
|
# project
|
|
@@ -17,8 +16,7 @@ dev = [
|
|
|
17
16
|
authors = [{name = "Derek Wan", email = "d.wan@icloud.com"}]
|
|
18
17
|
dependencies = [
|
|
19
18
|
"click >= 8.1.8, < 8.2",
|
|
20
|
-
"dycw-utilities >= 0.
|
|
21
|
-
"jupyterlab>=4.3.5",
|
|
19
|
+
"dycw-utilities >= 0.97.2, < 0.98",
|
|
22
20
|
"loguru >= 0.7.3, < 0.8",
|
|
23
21
|
"semver >= 3.0.4, < 3.1",
|
|
24
22
|
"tomlkit >= 0.13.2, < 0.14",
|
|
@@ -26,8 +24,8 @@ dependencies = [
|
|
|
26
24
|
]
|
|
27
25
|
name = "dycw-pre-commit-hooks"
|
|
28
26
|
readme = "README.md"
|
|
29
|
-
requires-python = ">= 3.
|
|
30
|
-
version = "0.10.
|
|
27
|
+
requires-python = ">= 3.12"
|
|
28
|
+
version = "0.10.22"
|
|
31
29
|
|
|
32
30
|
[project.scripts]
|
|
33
31
|
run-bump-my-version = "pre_commit_hooks.run_bump_my_version:main"
|
|
@@ -37,7 +35,7 @@ run-ruff-format = "pre_commit_hooks.run_ruff_format:main"
|
|
|
37
35
|
# bump-my-version
|
|
38
36
|
[tool.bumpversion]
|
|
39
37
|
allow_dirty = true
|
|
40
|
-
current_version = "0.10.
|
|
38
|
+
current_version = "0.10.22"
|
|
41
39
|
|
|
42
40
|
[[tool.bumpversion.files]]
|
|
43
41
|
filename = "src/pre_commit_hooks/__init__.py"
|
|
@@ -64,8 +62,8 @@ parallel = true
|
|
|
64
62
|
# hatch
|
|
65
63
|
[tool.hatch]
|
|
66
64
|
|
|
67
|
-
[tool.hatch.build]
|
|
68
|
-
|
|
65
|
+
[tool.hatch.build.targets.sdist]
|
|
66
|
+
include = ["src"]
|
|
69
67
|
|
|
70
68
|
[tool.hatch.build.targets.wheel]
|
|
71
69
|
packages = ["src/pre_commit_hooks"]
|
|
@@ -73,7 +71,7 @@ packages = ["src/pre_commit_hooks"]
|
|
|
73
71
|
# nitpick
|
|
74
72
|
[tool.nitpick]
|
|
75
73
|
style = [
|
|
76
|
-
"https://raw.githubusercontent.com/dycw/nitpick/master/styles/3.
|
|
74
|
+
"https://raw.githubusercontent.com/dycw/nitpick/master/styles/3.12.toml",
|
|
77
75
|
"https://raw.githubusercontent.com/dycw/nitpick/master/styles/common.toml",
|
|
78
76
|
]
|
|
79
77
|
|
|
@@ -81,7 +79,7 @@ style = [
|
|
|
81
79
|
[tool.pyright]
|
|
82
80
|
deprecateTypingAliases = true
|
|
83
81
|
enableReachabilityAnalysis = false
|
|
84
|
-
pythonVersion = "3.
|
|
82
|
+
pythonVersion = "3.12"
|
|
85
83
|
reportAny = false
|
|
86
84
|
reportCallInDefaultInitializer = true
|
|
87
85
|
reportImplicitOverride = true
|
|
@@ -117,7 +115,7 @@ xfail_strict = true
|
|
|
117
115
|
# ruff
|
|
118
116
|
[tool.ruff]
|
|
119
117
|
src = ["src"]
|
|
120
|
-
target-version = "
|
|
118
|
+
target-version = "py312"
|
|
121
119
|
unsafe-fixes = true
|
|
122
120
|
|
|
123
121
|
[tool.ruff.format]
|
|
@@ -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
|