Skip to content

Commit 27b53e8

Browse files
authored
[CLI] lint: run butler format on CLI files (#5010)
This PR fixes some feel lint errors in the `cli/` folder _Note:_ To isolate and fix the errors in this specific folder, I temporarily modified the file discovery logic in `butler/lint.py` and `butler/format.py` to target only the `cli/` path: ```python _, output = common.execute('git ls-files cli') # here's the tmp change file_paths = [ f.decode('utf-8') for f in output.splitlines() if os.path.exists(f) ] ```
1 parent 19ff0ac commit 27b53e8

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

cli/casp/src/casp/__init__.py

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

cli/casp/src/casp/commands/init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import click
1717

18+
1819
@click.command(name='init', help='Initializes the CLI')
1920
def cli():
2021
"""Initializes the CLI"""

cli/casp/src/casp/commands/reproduce.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import click
1717

18+
1819
@click.command(name='reproduce', help='Reproduces a testcase locally')
1920
def cli():
2021
"""Reproduces a testcase locally"""

cli/casp/src/casp/commands/run_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import click
1717

18+
1819
@click.command(name='run_task', help='Runs a given task locally')
1920
def cli():
2021
"""Runs a given task locally"""

0 commit comments

Comments
 (0)