Skip to content

Feature: Option for more strict package excludes #135

@fenuks

Description

@fenuks

Before You Begin

Before proceeding, please make sure to follow these steps:

  • I have checked for similar feature requests in the project's issue tracker
    to avoid duplicates.
  • I have searched existing issues to see if this feature has been discussed
    before.

Feature Details

Currently, one can only provide package name in ignore_packages list. Package licence might change over time, so it would be nice if one could provide package name and current package licence. This way, exclude would stop working on licence change for additional safety.

Is your feature request related to a problem? Please describe

There are some packages that are open source, but are missing licence metadata. I am adding them to ignored_packages, but would like to know if licence was changed (either from no licence metadata to valid licence metadata, or from licence that is acceptable to licence that is not compliant with my project).

Describe the solution you'd like

One could add licence name along with package name , e.g.

[tool.licensecheck]
ignore_packages = [
    'mypackage,Unknown',
    'pylint,GPL-2.0-or-later',
]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions