content: # Configuration for lintrunner https://github.com/suo/lintrunner
  merge_base_with = 'main'
  
  [[linter]]
  code = 'RUFF'
  include_patterns = [
      '**/*.py',
      '**/*.pyi',
  ]
  exclude_patterns = [
      'tests/models/**',
  ]
  command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'ruff_linter',
      '--config=pyproject.toml',
      '@{{PATHSFILE}}'
  ]
  init_command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'pip_init',
      '--dry-run={{DRYRUN}}',
      '--requirement=requirements/lintrunner/requirements.txt',
  ]
  is_formatter = true
  
  [[linter]]
  code = 'MYPY'
  include_patterns = [
      'src/**/*.py',
      'src/**/*.pyi',
  ]
  exclude_patterns = [
      'src/**/*_test.py',
  ]
  command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'mypy_linter',
      '--config=pyproject.toml',
      '--show-disable',
      '--',
      '@{{PATHSFILE}}'
  ]
  init_command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'pip_init',
      '--dry-run={{DRYRUN}}',
      '--requirement=requirements/lintrunner/requirements.txt',
  ]
  
  [[linter]]
  code = 'RUFF-FORMAT'
  include_patterns = [
      '**/*.py',
  ]
  exclude_patterns = [
      'tests/onnx_backend_test_code/**',
  ]
  command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'ruff_format_linter',
      '--',
      '@{{PATHSFILE}}'
  ]
  init_command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'pip_init',
      '--dry-run={{DRYRUN}}',
      '--requirement=requirements/lintrunner/requirements.txt',
  ]
  is_formatter = true
  
  [[linter]]
  code = 'EDITORCONFIG-CHECKER'
  include_patterns = [
      '**/*.md',
      '**/*.txt',
      '**/*.yml',
      '**/*.rst',
  ]
  exclude_patterns = []
  command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'editorconfig_checker_linter',
      '--',
      '@{{PATHSFILE}}'
  ]
  init_command = [
      'python',
      '-m',
      'lintrunner_adapters',
      'run',
      'pip_init',
      '--dry-run={{DRYRUN}}',
      '--requirement=requirements/lintrunner/requirements.txt',
  ]
  