Skip to content

Commit

Permalink
Chore: Satisfy linter errors after updating Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jul 5, 2023
1 parent 43ddbb1 commit 5a46684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion influxio/testdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def make_wide(rows: int = default_rows_count, columns: int = 99) -> pd.DataFrame
"tag": np.random.choice(["tag_a", "tag_b", "test_c"], size=(rows,)),
}
for n in range(2, columns + 1):
col_data[f"col{n}"] = random.randint(1, 10)
col_data[f"col{n}"] = random.randint(1, 10) # noqa: S311

data_frame = pd.DataFrame(data=col_data).set_index("time")
return data_frame
2 changes: 1 addition & 1 deletion influxio/util/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run_command(command: str):
cmd = shlex.split(command)

try:
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True)
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True) # noqa: S603
except subprocess.CalledProcessError as exc:
logger.error(f"Command failed (exit code {exc.returncode}). The command was:\n{command}")
logger.error(exc.output)
Expand Down

0 comments on commit 5a46684

Please sign in to comment.