Skip to content

Commit 18da3b7

Browse files
Merge pull request #2654 from SamuelMarks:precommit-gh-actions
PiperOrigin-RevId: 830755542
2 parents 36f0fa0 + cdb7b6e commit 18da3b7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/CPUTests.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ jobs:
4444
- name: Install Dependencies
4545
run: |
4646
python3 -m pip install --upgrade pip
47-
python3 -m pip install pylint pyink pytype==2024.2.27
48-
- name: Typecheck the code with pytype
49-
run: |
50-
pytype --jobs auto --disable 'import-error,late-directive,wrong-arg-types,module-attr,unsupported-operands' src/MaxText/ || true
51-
- name: pylint
52-
run: |
53-
pylint --disable=R0401,R0917,W0201,W0613 --ignore-patterns='.pytype,.*pyi$' benchmarks end_to_end src tests
54-
- name: pyink
55-
run: |
56-
pyink --pyink-indentation=2 --line-length=122 --check .
47+
python3 -m pip install pre-commit
48+
- name: Run pre-commit checks on just the files that have changed
49+
run: pre-commit run

0 commit comments

Comments
 (0)