commitfmt 0.2.0__tar.gz → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commitfmt
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Utility for formatting and verifying the commit message.
5
5
  Author-email: Mikhael Khrustik <misha@myrt.co>
6
6
  License: MIT
@@ -212,6 +212,30 @@ extends = "node_modules/commitfmt-config-standard/commitfmt.toml"
212
212
 
213
213
  Extension is only possible for the current configuration. If the current configuration extends another configuration, which in turn extends a third configuration, commitfmt will throw an error when trying to load such a configuration.
214
214
 
215
+ ### Parser Configuration
216
+
217
+ commitfmt can be configured to use custom footer separators and comment symbols for parsing commit messages.
218
+
219
+ #### Footer separators
220
+
221
+ By default, commitfmt uses git's `trailer.separators` configuration to determine which characters separate footer keys from values. You can override this in your config file:
222
+
223
+ ```toml
224
+ footer-separators = ":#"
225
+ ```
226
+
227
+ This allows footers like `Issue-ID: 123` or `Issue-ID #123` to be recognized.
228
+
229
+ #### Comment symbol
230
+
231
+ By default, commitfmt uses git's `core.commentChar` or `core.commentString` configuration to identify comment lines in commit messages. You can override this:
232
+
233
+ ```toml
234
+ comment-symbol = "//"
235
+ ```
236
+
237
+ Lines starting with the comment symbol will be ignored during parsing.
238
+
215
239
  ### Additional footers
216
240
 
217
241
  commitfmt can add additional footers to the commit message.
@@ -189,6 +189,30 @@ extends = "node_modules/commitfmt-config-standard/commitfmt.toml"
189
189
 
190
190
  Extension is only possible for the current configuration. If the current configuration extends another configuration, which in turn extends a third configuration, commitfmt will throw an error when trying to load such a configuration.
191
191
 
192
+ ### Parser Configuration
193
+
194
+ commitfmt can be configured to use custom footer separators and comment symbols for parsing commit messages.
195
+
196
+ #### Footer separators
197
+
198
+ By default, commitfmt uses git's `trailer.separators` configuration to determine which characters separate footer keys from values. You can override this in your config file:
199
+
200
+ ```toml
201
+ footer-separators = ":#"
202
+ ```
203
+
204
+ This allows footers like `Issue-ID: 123` or `Issue-ID #123` to be recognized.
205
+
206
+ #### Comment symbol
207
+
208
+ By default, commitfmt uses git's `core.commentChar` or `core.commentString` configuration to identify comment lines in commit messages. You can override this:
209
+
210
+ ```toml
211
+ comment-symbol = "//"
212
+ ```
213
+
214
+ Lines starting with the comment symbol will be ignored during parsing.
215
+
192
216
  ### Additional footers
193
217
 
194
218
  commitfmt can add additional footers to the commit message.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commitfmt
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Utility for formatting and verifying the commit message.
5
5
  Author-email: Mikhael Khrustik <misha@myrt.co>
6
6
  License: MIT
@@ -212,6 +212,30 @@ extends = "node_modules/commitfmt-config-standard/commitfmt.toml"
212
212
 
213
213
  Extension is only possible for the current configuration. If the current configuration extends another configuration, which in turn extends a third configuration, commitfmt will throw an error when trying to load such a configuration.
214
214
 
215
+ ### Parser Configuration
216
+
217
+ commitfmt can be configured to use custom footer separators and comment symbols for parsing commit messages.
218
+
219
+ #### Footer separators
220
+
221
+ By default, commitfmt uses git's `trailer.separators` configuration to determine which characters separate footer keys from values. You can override this in your config file:
222
+
223
+ ```toml
224
+ footer-separators = ":#"
225
+ ```
226
+
227
+ This allows footers like `Issue-ID: 123` or `Issue-ID #123` to be recognized.
228
+
229
+ #### Comment symbol
230
+
231
+ By default, commitfmt uses git's `core.commentChar` or `core.commentString` configuration to identify comment lines in commit messages. You can override this:
232
+
233
+ ```toml
234
+ comment-symbol = "//"
235
+ ```
236
+
237
+ Lines starting with the comment symbol will be ignored during parsing.
238
+
215
239
  ### Additional footers
216
240
 
217
241
  commitfmt can add additional footers to the commit message.
@@ -4,7 +4,7 @@ authors = [
4
4
  {name = "Mikhael Khrustik", email = "misha@myrt.co"},
5
5
  ]
6
6
  description = "Utility for formatting and verifying the commit message."
7
- version = "0.2.0"
7
+ version = "0.3.0"
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.9"
10
10
  keywords = ["git", "hook"]
File without changes