gitfluff 0.4.0__tar.gz → 0.6.0__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.
- {gitfluff-0.4.0 → gitfluff-0.6.0}/PKG-INFO +18 -4
- {gitfluff-0.4.0 → gitfluff-0.6.0}/README.md +17 -3
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff/__init__.py +1 -1
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff/downloader.py +2 -2
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff.egg-info/PKG-INFO +18 -4
- {gitfluff-0.4.0 → gitfluff-0.6.0}/pyproject.toml +1 -1
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff/__main__.py +0 -0
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff/cli.py +0 -0
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff.egg-info/SOURCES.txt +0 -0
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff.egg-info/dependency_links.txt +0 -0
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff.egg-info/entry_points.txt +0 -0
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff.egg-info/requires.txt +0 -0
- {gitfluff-0.4.0 → gitfluff-0.6.0}/gitfluff.egg-info/top_level.txt +0 -0
- {gitfluff-0.4.0 → gitfluff-0.6.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitfluff
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: Commit message linter and formatter
|
|
5
5
|
Author-email: Na'aman Hirschfeld <nhirschfeld@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -25,7 +25,7 @@ Requires-Dist: certifi>=2024.7.4
|
|
|
25
25
|
|
|
26
26
|
# gitfluff
|
|
27
27
|
|
|
28
|
-
Commit message linter with presets, custom formats, and cleanup automation. Fully compliant with [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
28
|
+
Commit message linter with presets, custom formats, and cleanup automation. Fully compliant with [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/). Skips linting while Git is creating a merge commit.
|
|
29
29
|
|
|
30
30
|
This Python package distributes prebuilt `gitfluff` binaries. On first use, the correct release binary for your platform is downloaded and cached under `~/.cache/gitfluff`.
|
|
31
31
|
|
|
@@ -55,6 +55,18 @@ gitfluff lint .git/COMMIT_EDITMSG
|
|
|
55
55
|
gitfluff lint .git/COMMIT_EDITMSG --write
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
## Optional: fail after rewrite (recommended for hooks)
|
|
59
|
+
|
|
60
|
+
Add a `.gitfluff.toml` to enable automatic cleanup and stop the commit if a rewrite happened:
|
|
61
|
+
|
|
62
|
+
```toml
|
|
63
|
+
preset = "conventional"
|
|
64
|
+
write = true
|
|
65
|
+
|
|
66
|
+
[rules]
|
|
67
|
+
exit_nonzero_on_rewrite = true
|
|
68
|
+
```
|
|
69
|
+
|
|
58
70
|
## Hook Integrations
|
|
59
71
|
|
|
60
72
|
### Native Git Hook
|
|
@@ -82,10 +94,11 @@ default_install_hook_types:
|
|
|
82
94
|
|
|
83
95
|
repos:
|
|
84
96
|
- repo: https://github.com/Goldziher/gitfluff
|
|
85
|
-
rev: v0.
|
|
97
|
+
rev: v0.6.0
|
|
86
98
|
hooks:
|
|
87
99
|
- id: gitfluff-lint
|
|
88
100
|
stages: [commit-msg]
|
|
101
|
+
# args: ["--write"] # optional, or set `write = true` in .gitfluff.toml
|
|
89
102
|
# args: ["--msg-pattern", "^JIRA-[0-9]+: .+"] # optional regex override
|
|
90
103
|
```
|
|
91
104
|
|
|
@@ -118,9 +131,10 @@ No configuration is required—the default Conventional Commits rules apply imme
|
|
|
118
131
|
|
|
119
132
|
```toml
|
|
120
133
|
preset = "conventional-body" # optional preset override
|
|
134
|
+
write = true
|
|
121
135
|
|
|
122
136
|
[rules]
|
|
123
|
-
|
|
137
|
+
exit_nonzero_on_rewrite = true
|
|
124
138
|
```
|
|
125
139
|
|
|
126
140
|
Any setting can be left out; omit the file entirely to keep defaults.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# gitfluff
|
|
2
2
|
|
|
3
|
-
Commit message linter with presets, custom formats, and cleanup automation. Fully compliant with [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
3
|
+
Commit message linter with presets, custom formats, and cleanup automation. Fully compliant with [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/). Skips linting while Git is creating a merge commit.
|
|
4
4
|
|
|
5
5
|
This Python package distributes prebuilt `gitfluff` binaries. On first use, the correct release binary for your platform is downloaded and cached under `~/.cache/gitfluff`.
|
|
6
6
|
|
|
@@ -30,6 +30,18 @@ gitfluff lint .git/COMMIT_EDITMSG
|
|
|
30
30
|
gitfluff lint .git/COMMIT_EDITMSG --write
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
## Optional: fail after rewrite (recommended for hooks)
|
|
34
|
+
|
|
35
|
+
Add a `.gitfluff.toml` to enable automatic cleanup and stop the commit if a rewrite happened:
|
|
36
|
+
|
|
37
|
+
```toml
|
|
38
|
+
preset = "conventional"
|
|
39
|
+
write = true
|
|
40
|
+
|
|
41
|
+
[rules]
|
|
42
|
+
exit_nonzero_on_rewrite = true
|
|
43
|
+
```
|
|
44
|
+
|
|
33
45
|
## Hook Integrations
|
|
34
46
|
|
|
35
47
|
### Native Git Hook
|
|
@@ -57,10 +69,11 @@ default_install_hook_types:
|
|
|
57
69
|
|
|
58
70
|
repos:
|
|
59
71
|
- repo: https://github.com/Goldziher/gitfluff
|
|
60
|
-
rev: v0.
|
|
72
|
+
rev: v0.6.0
|
|
61
73
|
hooks:
|
|
62
74
|
- id: gitfluff-lint
|
|
63
75
|
stages: [commit-msg]
|
|
76
|
+
# args: ["--write"] # optional, or set `write = true` in .gitfluff.toml
|
|
64
77
|
# args: ["--msg-pattern", "^JIRA-[0-9]+: .+"] # optional regex override
|
|
65
78
|
```
|
|
66
79
|
|
|
@@ -93,9 +106,10 @@ No configuration is required—the default Conventional Commits rules apply imme
|
|
|
93
106
|
|
|
94
107
|
```toml
|
|
95
108
|
preset = "conventional-body" # optional preset override
|
|
109
|
+
write = true
|
|
96
110
|
|
|
97
111
|
[rules]
|
|
98
|
-
|
|
112
|
+
exit_nonzero_on_rewrite = true
|
|
99
113
|
```
|
|
100
114
|
|
|
101
115
|
Any setting can be left out; omit the file entirely to keep defaults.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__all__ = ["__version__"]
|
|
2
|
-
__version__ = "0.
|
|
2
|
+
__version__ = "0.6.0"
|
|
@@ -23,9 +23,9 @@ def _platform_triple() -> str:
|
|
|
23
23
|
|
|
24
24
|
if system == "windows":
|
|
25
25
|
if machine in {"amd64", "x86_64"}:
|
|
26
|
-
return "x86_64-pc-windows-
|
|
26
|
+
return "x86_64-pc-windows-gnu"
|
|
27
27
|
if machine in {"x86", "i386", "i686"}:
|
|
28
|
-
|
|
28
|
+
raise RuntimeError("32-bit Windows is not supported")
|
|
29
29
|
elif system == "linux":
|
|
30
30
|
if machine in {"amd64", "x86_64"}:
|
|
31
31
|
return "x86_64-unknown-linux-gnu"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitfluff
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: Commit message linter and formatter
|
|
5
5
|
Author-email: Na'aman Hirschfeld <nhirschfeld@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -25,7 +25,7 @@ Requires-Dist: certifi>=2024.7.4
|
|
|
25
25
|
|
|
26
26
|
# gitfluff
|
|
27
27
|
|
|
28
|
-
Commit message linter with presets, custom formats, and cleanup automation. Fully compliant with [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
28
|
+
Commit message linter with presets, custom formats, and cleanup automation. Fully compliant with [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/). Skips linting while Git is creating a merge commit.
|
|
29
29
|
|
|
30
30
|
This Python package distributes prebuilt `gitfluff` binaries. On first use, the correct release binary for your platform is downloaded and cached under `~/.cache/gitfluff`.
|
|
31
31
|
|
|
@@ -55,6 +55,18 @@ gitfluff lint .git/COMMIT_EDITMSG
|
|
|
55
55
|
gitfluff lint .git/COMMIT_EDITMSG --write
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
## Optional: fail after rewrite (recommended for hooks)
|
|
59
|
+
|
|
60
|
+
Add a `.gitfluff.toml` to enable automatic cleanup and stop the commit if a rewrite happened:
|
|
61
|
+
|
|
62
|
+
```toml
|
|
63
|
+
preset = "conventional"
|
|
64
|
+
write = true
|
|
65
|
+
|
|
66
|
+
[rules]
|
|
67
|
+
exit_nonzero_on_rewrite = true
|
|
68
|
+
```
|
|
69
|
+
|
|
58
70
|
## Hook Integrations
|
|
59
71
|
|
|
60
72
|
### Native Git Hook
|
|
@@ -82,10 +94,11 @@ default_install_hook_types:
|
|
|
82
94
|
|
|
83
95
|
repos:
|
|
84
96
|
- repo: https://github.com/Goldziher/gitfluff
|
|
85
|
-
rev: v0.
|
|
97
|
+
rev: v0.6.0
|
|
86
98
|
hooks:
|
|
87
99
|
- id: gitfluff-lint
|
|
88
100
|
stages: [commit-msg]
|
|
101
|
+
# args: ["--write"] # optional, or set `write = true` in .gitfluff.toml
|
|
89
102
|
# args: ["--msg-pattern", "^JIRA-[0-9]+: .+"] # optional regex override
|
|
90
103
|
```
|
|
91
104
|
|
|
@@ -118,9 +131,10 @@ No configuration is required—the default Conventional Commits rules apply imme
|
|
|
118
131
|
|
|
119
132
|
```toml
|
|
120
133
|
preset = "conventional-body" # optional preset override
|
|
134
|
+
write = true
|
|
121
135
|
|
|
122
136
|
[rules]
|
|
123
|
-
|
|
137
|
+
exit_nonzero_on_rewrite = true
|
|
124
138
|
```
|
|
125
139
|
|
|
126
140
|
Any setting can be left out; omit the file entirely to keep defaults.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|