https://github.com/dmlc/dgl
Raw File
Tip revision: 1547bd931d17cd1da144a6d38bb687c0f2c3b364 authored by Rhett Ying on 04 March 2024, 08:43:15 UTC
[doc] use tqdm from tqdm.auto (#7191)
Tip revision: 1547bd9
.lintrunner.toml
# Black + usort
[[linter]]
code = 'UFMT'
include_patterns = [
    '**/*.py',
]
command = [
    'python3',
    'tests/lint/ufmt_linter.py',
    '--',
    '@{{PATHSFILE}}'
]
exclude_patterns = [
    '.github/*',
    'build/*',
    'cmake/*',
    'conda/*',
    'docker/*',
    'third_party/*',
]
init_command = [
    'python3',
    'tests/lint/pip_init.py',
    '--dry-run={{DRYRUN}}',
    'black==22.10.0',
    'ufmt==2.0.1',
    'usort==1.0.5',
]
is_formatter = true

[[linter]]
code = 'CLANGFORMAT'
include_patterns = [
    '**/*.h',
    '**/*.c',
    '**/*.cc',
    '**/*.cpp',
    '**/*.cuh',
    '**/*.cu',
]
exclude_patterns = [
    'third_party/**',
]
init_command = [
    'python3',
    'tests/lint/pip_init.py',
    '--dry-run={{DRYRUN}}',
    'clang-format==15.0.4',
]
command = [
    'python3',
    'tests/lint/clangformat_linter.py',
    '--binary=clang-format',
    '--',
    '@{{PATHSFILE}}'
]
is_formatter = true
back to top