code: def test_code_quality() -> None:
      """Applies a collection of general codebase style and quality rules to
      every file in the repository. Unless specifically excepted:
  
      * Files should not contain tabs
      * Files should not start with newlines
      * Files should end with one empty line
      * Lines should not contain trailing whitespace
      * Lines should not exceed 160 characters
  
      """
      errors = collect_errors()
      assert len(errors) == 0, "Code quality issues:\n" + "\n".join(
          errors
      )
  
file_path: bokeh/tests/codebase/test_code_quality.py
imports: from __future__ import annotations
  import pytest
  import subprocess
  from os import pardir
  from os.path import abspath, basename, join, split, splitext
  from typing import IO
label_desc: Use image node_id 1 for calling a global function with example usage: test_code_quality() without return types