Skip to content

Commit 6734125

Browse files
Fix formatting with pyink (#314)
* Fix formatting with pyink * Update Python and pyink version to be aligned with code_style.sh
1 parent bf2d5b2 commit 6734125

132 files changed

Lines changed: 2349 additions & 2249 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CPUTests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest]
15-
python-version: ['3.10']
15+
python-version: ['3.12']
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Set up Python ${{ matrix.python-version }}
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install pylint pyink pytype==2024.2.27
25+
pip install pylint pyink==23.10.0 pytype==2024.2.27
2626
# - name: Typecheck the code with pytype
2727
# run: |
2828
# pytype --jobs auto --disable import-error src/maxdiffusion/

end_to_end/tpu/eval_assert.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"""
2-
Copyright 2024 Google LLC
2+
Copyright 2024 Google LLC
33
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
77
8-
https://www.apache.org/licenses/LICENSE-2.0
8+
https://www.apache.org/licenses/LICENSE-2.0
99
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
"""
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
"""
1616

1717
"""
1818
Example to run

0 commit comments

Comments
 (0)