minor: Add basic editorconfig and pre-commit hooks to enforce style for whitespaces (#1926)
This commit is contained in:
14
.github/workflows/close-inactive-issues.yml
vendored
14
.github/workflows/close-inactive-issues.yml
vendored
@@ -20,10 +20,10 @@ jobs:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const sixtyDaysAgo = new Date(Date.now() - 60 * 24 * 60 * 60 * 1000);
|
||||
|
||||
|
||||
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
|
||||
console.log(`Owner: ${owner}, Repo: ${repo}`);
|
||||
|
||||
|
||||
async function fetchIssues(page = 1) {
|
||||
console.log(`Fetching issues for ${owner}/${repo}, page ${page}`);
|
||||
return await github.rest.issues.listForRepo({
|
||||
@@ -36,23 +36,23 @@ jobs:
|
||||
page: page
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async function processIssues() {
|
||||
console.log('Starting to process issues');
|
||||
console.log(`Repository: ${owner}/${repo}`);
|
||||
|
||||
|
||||
let page = 1;
|
||||
let hasMoreIssues = true;
|
||||
while (hasMoreIssues) {
|
||||
try {
|
||||
const issues = await fetchIssues(page);
|
||||
console.log(`Fetched ${issues.data.length} issues on page ${page}`);
|
||||
|
||||
|
||||
if (issues.data.length === 0) {
|
||||
hasMoreIssues = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
for (const issue of issues.data) {
|
||||
if (new Date(issue.updated_at) < sixtyDaysAgo) {
|
||||
try {
|
||||
@@ -87,5 +87,5 @@ jobs:
|
||||
}
|
||||
console.log('Finished processing issues');
|
||||
}
|
||||
|
||||
|
||||
await processIssues();
|
||||
|
||||
4
.github/workflows/execute-notebook.yml
vendored
4
.github/workflows/execute-notebook.yml
vendored
@@ -18,7 +18,7 @@ concurrency:
|
||||
group: execute-notebook-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
|
||||
|
||||
jobs:
|
||||
run-all-notebooks:
|
||||
runs-on: 1-gpu-runner
|
||||
@@ -45,4 +45,4 @@ jobs:
|
||||
run: |
|
||||
cd docs
|
||||
make clean
|
||||
make compile
|
||||
make compile
|
||||
|
||||
2
.github/workflows/pr-test-rust.yml
vendored
2
.github/workflows/pr-test-rust.yml
vendored
@@ -36,4 +36,4 @@ jobs:
|
||||
run: |
|
||||
source "$HOME/.cargo/env"
|
||||
cd rust/
|
||||
cargo test
|
||||
cargo test
|
||||
|
||||
2
.github/workflows/pr-test.yml
vendored
2
.github/workflows/pr-test.yml
vendored
@@ -237,7 +237,7 @@ jobs:
|
||||
run: |
|
||||
cd test/srt
|
||||
python3 test_moe_eval_accuracy_large.py
|
||||
|
||||
|
||||
- name: Evaluate MLA Accuracy (TP=2)
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
|
||||
2
.github/workflows/release-docs.yml
vendored
2
.github/workflows/release-docs.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
|
||||
make html
|
||||
cd _build/html
|
||||
|
||||
|
||||
git clone https://$GITHUB_TOKEN@github.com/sgl-project/sgl-project.github.io.git ../sgl-project.github.io --depth 1
|
||||
rm -rf ../sgl-project.github.io/*
|
||||
cp -r * ../sgl-project.github.io
|
||||
|
||||
Reference in New Issue
Block a user