build-job-webcompat-kb:
  docker:
    - image: << pipeline.parameters.git-image >>
  steps:
    - checkout
    - compare-branch:
        pattern: ^jobs/webcompat-kb/
    - setup_remote_docker:
        version: << pipeline.parameters.docker-version >>
    - run:
        name: Build Docker image
        command: docker build -t app:build jobs/webcompat-kb/
    - run:
        name: Mypy
        command: docker run app:build mypy webcompat_kb
    - run:
        name: Test Code
        command: docker run app:build pytest --ruff --ruff-format
