Skip to content

Commit 369792e

Browse files
authored
Fix Linter (#10333)
1 parent cc3152b commit 369792e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

examples/qualcomm/scripts/mobilebert_fine_tune.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ def get_fine_tuned_mobilebert(artifacts_dir, pretrained_weight, batch_size):
102102
from transformers import get_linear_schedule_with_warmup
103103

104104
# grab dataset
105-
url = (
106-
"https://raw.githubusercontent.com/susanli2016/NLP-with-Python/master/data/title_conference.csv"
107-
)
105+
url = "https://raw.githubusercontent.com/susanli2016/NLP-with-Python/master/data/title_conference.csv"
108106
content = requests.get(url, allow_redirects=True).content
109107
data = pd.read_csv(BytesIO(content))
110108

exir/program/test/test_program.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,10 @@ def test_save_fails(self):
851851

852852
def test__transform_override_verifiers(self):
853853
"""Test that _transform can override verifiers in the exported program."""
854+
854855
class MyVerifier(Verifier):
855856
dialect: str = "MY_DIALECT"
857+
856858
def __init__(self):
857859
super().__init__()
858860

@@ -861,6 +863,8 @@ def __init__(self):
861863
self.assertFalse(issubclass(program.verifiers[0], MyVerifier))
862864

863865
# Apply transformation with custom verifier
864-
transformed = _transform(program, AddToMulPassEdge(), override_verifiers=[MyVerifier])
866+
transformed = _transform(
867+
program, AddToMulPassEdge(), override_verifiers=[MyVerifier]
868+
)
865869
self.assertTrue(issubclass(transformed.verifiers[0], MyVerifier))
866870
self.assertFalse(issubclass(program.verifiers[0], MyVerifier))

util/python_profiler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def _from_pstat_to_static_html(stats: Stats, html_filename: str):
4444
html_filename: Output filename in which populated template is rendered
4545
"""
4646
RESTR = r'(?<!] \+ ")/static/'
47-
REPLACE_WITH = "https://cdn.jsdelivr.net/gh/jiffyclub/[email protected]/snakeviz/static/"
47+
REPLACE_WITH = (
48+
"https://cdn.jsdelivr.net/gh/jiffyclub/[email protected]/snakeviz/static/"
49+
)
4850

4951
if not isinstance(html_filename, str):
5052
raise ValueError("A valid file name must be provided.")

0 commit comments

Comments
 (0)