Browse Source

fix package checks

shut-new-model
Niklas Rosenstein 9 months ago
parent
commit
94808fb31a
No known key found for this signature in database GPG Key ID: 6D269B33D25F6C6
1 changed files with 2 additions and 2 deletions
  1. + 2
    - 2
      src/shut/checks/package.py

+ 2
- 2
src/shut/checks/package.py

@ -41,12 +41,12 @@ class PackageChecker(Checker[PackageModel]):
yield CheckResult(CheckStatus.WARNING, 'not specified')
elif package.data.license and not package.get_license():
yield CheckResult('license', CheckStatus.WARNING, 'No LICENSE file found.')
yield CheckResult(CheckStatus.WARNING, 'No LICENSE file found.')
monorepo = project.monorepo
if package.data.license and monorepo and monorepo.license \
and monorepo.license != package.data.license:
yield CheckResult('license-consistency', CheckStatus.ERROR,
yield CheckResult(CheckStatus.ERROR,
'License is not consistent with parent mono repository (package: {}, monorepo: {}).'
.format(package.license, monorepo.license))

Loading…
Cancel
Save