Skip to content

Commit 765d992

Browse files
authored
Merge branch 'dhatim:master' into patch-1
2 parents f0da8c9 + 7db0c81 commit 765d992

File tree

6 files changed

+319
-158
lines changed

6 files changed

+319
-158
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [ '*' ]
77
jobs:
88
build:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-20.04
1010
strategy:
1111
matrix:
1212
python-version: [ '2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11' ]

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
required: true
88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
1313
python-version: [ '2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11' ]

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,20 @@ Also supports pyproject.toml like:
194194
[tool.liccheck.authorized_packages]
195195
uuid = "1.30"
196196

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+
197211
Using liccheck with pre-commit
198212
==============================
199213

0 commit comments

Comments
 (0)