Skip to content

Commit

Permalink
f-strings and flake8
Browse files Browse the repository at this point in the history
- Change f-string syntax to syntax supported by Python 3.5
- Moved the flake8 dependency
  • Loading branch information
sbrugman committed Jan 17, 2020
1 parent 6c68dbd commit 9fd9086
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
install:
- pip install --upgrade pip six
- pip install -r requirements.txt
- pip install flake8 -r requirements-test.txt
- pip install -r requirements-test.txt
- pip install -e .[notebook,app,html]

script:
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pytest-cov
pytest-black
nbval
pyarrow
flake8
4 changes: 2 additions & 2 deletions tests/performance/timings.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def plot_col_run_time():
ax1 = sns.scatterplot(cols, default_times)
ax2 = sns.scatterplot(cols, minimal_times)
_ = ax1.set(
xlabel=f"Number of columns (row={row})",
xlabel="Number of columns (row={row})".format(row=row),
ylabel="time (s)",
title="Run Time Complexity",
)
Expand All @@ -101,7 +101,7 @@ def plot_row_run_time():
ax1 = sns.scatterplot(rows, default_times)
ax2 = sns.scatterplot(rows, minimal_times)
_ = ax1.set(
xlabel=f"Number of rows (col={col})",
xlabel="Number of rows (col={col})".format(col=col),
ylabel="time (s)",
title="Run Time Complexity",
)
Expand Down

0 comments on commit 9fd9086

Please sign in to comment.