Browse Source

skip "typed" check if it passes, it's confusing otherwise

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

+ 2
- 1
src/shut/checkers/package.py

@ -24,7 +24,7 @@ from typing import Iterable, Optional
from shut.model import MonorepoModel, PackageModel, Project
from shut.utils.external.classifiers import get_classifiers
from .core import CheckResult, CheckStatus, Checker, check, register_checker
from .core import CheckResult, CheckStatus, Checker, SkipCheck, check, register_checker
class PackageChecker(Checker[PackageModel]):
@ -104,6 +104,7 @@ class PackageChecker(Checker[PackageModel]):
yield CheckResult(
CheckStatus.WARNING,
'file "py.typed" exists but $.typed is not set')
yield SkipCheck()
register_checker(PackageModel, PackageChecker)

Loading…
Cancel
Save