commitfmt 0.2.0__tar.gz → 0.4.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.4.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
@@ -174,15 +174,12 @@ It is an opinionated formatter and the author has established best practices tha
174
174
 
175
175
  ### Linting
176
176
 
177
- Most of the linting rules are disabled by default. Default config contains 3 rules as they can be safely auto-fixed:
177
+ Most of the linting rules are disabled by default. Default config contains 2 rules as they can be safely auto-fixed:
178
178
 
179
179
  ```toml
180
180
  [lint.header]
181
181
  full-stop = true
182
182
 
183
- [lint.body]
184
- new-line = true
185
-
186
183
  [lint.footer]
187
184
  breaking-exclamation = true
188
185
  ```
@@ -212,6 +209,30 @@ extends = "node_modules/commitfmt-config-standard/commitfmt.toml"
212
209
 
213
210
  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
211
 
212
+ ### Parser Configuration
213
+
214
+ commitfmt can be configured to use custom footer separators and comment symbols for parsing commit messages.
215
+
216
+ #### Footer separators
217
+
218
+ 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:
219
+
220
+ ```toml
221
+ footer-separators = ":#"
222
+ ```
223
+
224
+ This allows footers like `Issue-ID: 123` or `Issue-ID #123` to be recognized.
225
+
226
+ #### Comment symbol
227
+
228
+ By default, commitfmt uses git's `core.commentChar` or `core.commentString` configuration to identify comment lines in commit messages. You can override this:
229
+
230
+ ```toml
231
+ comment-symbol = "//"
232
+ ```
233
+
234
+ Lines starting with the comment symbol will be ignored during parsing.
235
+
215
236
  ### Additional footers
216
237
 
217
238
  commitfmt can add additional footers to the commit message.
@@ -151,15 +151,12 @@ It is an opinionated formatter and the author has established best practices tha
151
151
 
152
152
  ### Linting
153
153
 
154
- Most of the linting rules are disabled by default. Default config contains 3 rules as they can be safely auto-fixed:
154
+ Most of the linting rules are disabled by default. Default config contains 2 rules as they can be safely auto-fixed:
155
155
 
156
156
  ```toml
157
157
  [lint.header]
158
158
  full-stop = true
159
159
 
160
- [lint.body]
161
- new-line = true
162
-
163
160
  [lint.footer]
164
161
  breaking-exclamation = true
165
162
  ```
@@ -189,6 +186,30 @@ extends = "node_modules/commitfmt-config-standard/commitfmt.toml"
189
186
 
190
187
  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
188
 
189
+ ### Parser Configuration
190
+
191
+ commitfmt can be configured to use custom footer separators and comment symbols for parsing commit messages.
192
+
193
+ #### Footer separators
194
+
195
+ 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:
196
+
197
+ ```toml
198
+ footer-separators = ":#"
199
+ ```
200
+
201
+ This allows footers like `Issue-ID: 123` or `Issue-ID #123` to be recognized.
202
+
203
+ #### Comment symbol
204
+
205
+ By default, commitfmt uses git's `core.commentChar` or `core.commentString` configuration to identify comment lines in commit messages. You can override this:
206
+
207
+ ```toml
208
+ comment-symbol = "//"
209
+ ```
210
+
211
+ Lines starting with the comment symbol will be ignored during parsing.
212
+
192
213
  ### Additional footers
193
214
 
194
215
  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.4.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
@@ -174,15 +174,12 @@ It is an opinionated formatter and the author has established best practices tha
174
174
 
175
175
  ### Linting
176
176
 
177
- Most of the linting rules are disabled by default. Default config contains 3 rules as they can be safely auto-fixed:
177
+ Most of the linting rules are disabled by default. Default config contains 2 rules as they can be safely auto-fixed:
178
178
 
179
179
  ```toml
180
180
  [lint.header]
181
181
  full-stop = true
182
182
 
183
- [lint.body]
184
- new-line = true
185
-
186
183
  [lint.footer]
187
184
  breaking-exclamation = true
188
185
  ```
@@ -212,6 +209,30 @@ extends = "node_modules/commitfmt-config-standard/commitfmt.toml"
212
209
 
213
210
  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
211
 
212
+ ### Parser Configuration
213
+
214
+ commitfmt can be configured to use custom footer separators and comment symbols for parsing commit messages.
215
+
216
+ #### Footer separators
217
+
218
+ 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:
219
+
220
+ ```toml
221
+ footer-separators = ":#"
222
+ ```
223
+
224
+ This allows footers like `Issue-ID: 123` or `Issue-ID #123` to be recognized.
225
+
226
+ #### Comment symbol
227
+
228
+ By default, commitfmt uses git's `core.commentChar` or `core.commentString` configuration to identify comment lines in commit messages. You can override this:
229
+
230
+ ```toml
231
+ comment-symbol = "//"
232
+ ```
233
+
234
+ Lines starting with the comment symbol will be ignored during parsing.
235
+
215
236
  ### Additional footers
216
237
 
217
238
  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.4.0"
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.9"
10
10
  keywords = ["git", "hook"]
File without changes