mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
MInor, adds a linter that ensures that all jobs run on pull_request, schedule, push etc have a `if: github.repository_owner == 'pytorch'` or are dependent on a job that has that check There is also a setting in Github repos that can disable all workflows for that repo A lot of these are unnecessary because many jobs use reusable workflows that have that check. However, this is a one time change so I'm not that bothered Unfortunately I can't put this at the workflow level, which would make this better Lots of weird string parsing Pull Request resolved: https://github.com/pytorch/pytorch/pull/138849 Approved by: https://github.com/malfet |
||
|---|---|---|
| .. | ||
| actionlint_linter.py | ||
| bazel_linter.py | ||
| black_linter.py | ||
| clangformat_linter.py | ||
| clangtidy_linter.py | ||
| cmake_linter.py | ||
| exec_linter.py | ||
| flake8_linter.py | ||
| grep_linter.py | ||
| lintrunner_version_linter.py | ||
| mypy_linter.py | ||
| nativefunctions_linter.py | ||
| newlines_linter.py | ||
| no_merge_conflict_csv_linter.py | ||
| no_workflows_on_fork.py | ||
| pip_init.py | ||
| pyfmt_linter.py | ||
| README.md | ||
| ruff_linter.py | ||
| s3_init_config.json | ||
| s3_init.py | ||
| shellcheck_linter.py | ||
| test_has_main_linter.py | ||
| testowners_linter.py | ||
| update_s3.py | ||
| workflow_consistency_linter.py | ||
lintrunner adapters
These files adapt our various linters to work with lintrunner.
Adding a new linter
- init and linter
- {{DRYRUN}} and {{PATHSFILE}}
- never exit uncleanly
- Communication protocol
- Self-contained