Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 25, 2024
1 parent 85cd4c9 commit b91f3c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/test-mongodb-covered-query.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def docs_in_db(mongodb_instance):
coll.drop()
coll.create_index('number')
n_records = 100
for n in itertools.islice(itertools.count(), n_records):
for _ in itertools.islice(itertools.count(), n_records):
doc = dict(number=random.randint(0, 2**32 - 1), value='some value')
conn.test_db.test_coll.insert_one(doc)
return coll
Expand Down
1 change: 1 addition & 0 deletions pip_run/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def _mode_compat():
if mode := os.environ.get('PIP_RUN_MODE'): # pragma: no cover
warnings.warn(
'PIP_RUN_MODE is deprecated. Use PIP_RUN_RETENTION_STRATEGY instead.',
stacklevel=1,
)
return mode.replace('ephemeral', 'destroy')

Expand Down
3 changes: 2 additions & 1 deletion pip_run/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def read_comments(self):
lines = match.group(1).splitlines()
warnings.warn(
"Comment-style script declarations are deprecated. "
"Please use Python style or PEP 723 TOML style."
"Please use Python style or PEP 723 TOML style.",
stacklevel=1,
)
except AttributeError:
lines = []
Expand Down

0 comments on commit b91f3c9

Please sign in to comment.