We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffc39ca commit 8c0cf62Copy full SHA for 8c0cf62
1 file changed
README.rst
@@ -194,6 +194,20 @@ Also supports pyproject.toml like:
194
[tool.liccheck.authorized_packages]
195
uuid = 1.30
196
197
+By default, exact matching is required between each package's license and one of the license of the authorized or unauthorized list.
198
+You can also provide regular expressions to match licenses by using the ``as_regex`` boolean flag. For instance, to exclude GPL licenses,
199
+one could define the following configuration in ``pyproject.toml``:
200
+
201
+::
202
203
+ ...
204
205
+ unauthorized_licenses = [
206
+ '\bgpl'
207
+ ]
208
+ as_regex = true
209
210
211
Using liccheck with pre-commit
212
==============================
213
0 commit comments