Skip to content

Commit 20ab25e

Browse files
committed
Remove pip-licenses
1 parent ba0df62 commit 20ab25e

File tree

3 files changed

+1
-66
lines changed

3 files changed

+1
-66
lines changed

.github/workflows/lint-test.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,6 @@ jobs:
77
lint-test:
88
runs-on: ubuntu-latest
99
env:
10-
# List of licenses that are compatible with the MIT License and
11-
# can be used in our project
12-
ALLOWED_LICENSE: Apache Software License;
13-
BSD License;
14-
GNU Library or Lesser General Public License (LGPL);
15-
ISC License (ISCL);
16-
MIT License;
17-
Mozilla Public License 2.0 (MPL 2.0);
18-
Public Domain;
19-
Python Software Foundation License;
20-
The Unlicense (Unlicense)
21-
2210
# Dummy values for required bot environment variables
2311
BOT_API_KEY: foo
2412
BOT_SENTRY_DSN: blah
@@ -37,26 +25,10 @@ jobs:
3725
enable-cache: true
3826
cache-dependency-glob: "uv.lock"
3927
activate-environment: true
40-
28+
4129
- name: Install dependencies
4230
run: uv sync --frozen
4331

44-
# Check all of our non-dev dependencies are compatible with the MIT license.
45-
# If you added a new dependencies that is being rejected,
46-
# please make sure it is compatible with the license for this project,
47-
# and add it to the ALLOWED_LICENSE variable
48-
49-
# NOTE: at time of writing pip-licenses is not PEP-639 compliant
50-
# so is not detecting the license for packages now following that style.
51-
# As a temp fix, add packages to the ignore list after manually checking
52-
# that the license in use is compatible with ours.
53-
# Ref: https://github.com/raimon49/pip-licenses/issues/225
54-
- name: Check Dependencies License
55-
run: |
56-
pip-licenses --allow-only="$ALLOWED_LICENSE" \
57-
--ignore-packages attrs \
58-
--package $(uv export --no-hashes --format requirements.txt --no-header --no-annotate | sed "s/==.*//g" | tr "\n" " ")
59-
6032
- name: Run pre-commit hooks
6133
run: SKIP=ruff pre-commit run --all-files
6234

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ prerelease = "allow"
3737
dev = [
3838
"coverage==7.6.12",
3939
"httpx==0.28.1",
40-
"pip-licenses==5.0.0",
4140
"pre-commit==4.1.0",
4241
"pytest==8.3.4",
4342
"pytest-cov==6.0.0",

uv.lock

Lines changed: 0 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)