From 8c9b975c629cd0a2da91e5a27bd44529a0ebb15f Mon Sep 17 00:00:00 2001 From: justinpolygon <123573436+justinpolygon@users.noreply.github.com> Date: Fri, 12 Apr 2024 13:56:02 -0700 Subject: [PATCH] Fix linting (ignore imports for examples) --- .../tools/flatfiles-stock-trades/exchange-heatmap.py | 10 +++++----- .../tools/flatfiles-stock-trades/exchanges-seen.py | 2 +- .../tools/flatfiles-stock-trades/top-10-tickers.py | 2 +- .../tools/flatfiles-stock-trades/trades-histogram.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/tools/flatfiles-stock-trades/exchange-heatmap.py b/examples/tools/flatfiles-stock-trades/exchange-heatmap.py index dd618552..060b6350 100644 --- a/examples/tools/flatfiles-stock-trades/exchange-heatmap.py +++ b/examples/tools/flatfiles-stock-trades/exchange-heatmap.py @@ -3,11 +3,11 @@ # trade flows, including opening hours and peak activity times, across the # exchanges. Please see https://polygon.io/blog/insights-from-trade-level-data # -import pandas as pd -import seaborn as sns -import matplotlib.pyplot as plt -import numpy as np -import pytz +import pandas as pd # type: ignore +import seaborn as sns # type: ignore +import matplotlib.pyplot as plt # type: ignore +import numpy as np # type: ignore +import pytz # type: ignore # Replace '2024-04-05.csv' with the path to your actual file file_path = "2024-04-05.csv" diff --git a/examples/tools/flatfiles-stock-trades/exchanges-seen.py b/examples/tools/flatfiles-stock-trades/exchanges-seen.py index 7c4d2aba..70fb5081 100644 --- a/examples/tools/flatfiles-stock-trades/exchanges-seen.py +++ b/examples/tools/flatfiles-stock-trades/exchanges-seen.py @@ -3,7 +3,7 @@ # respective percentages of the total trades. Please see # https://polygon.io/blog/insights-from-trade-level-data # -import pandas as pd +import pandas as pd # type: ignore # Replace '2024-04-05.csv' with the path to your actual file file_path = "2024-04-05.csv" diff --git a/examples/tools/flatfiles-stock-trades/top-10-tickers.py b/examples/tools/flatfiles-stock-trades/top-10-tickers.py index 5b0be7d2..ec046e0b 100644 --- a/examples/tools/flatfiles-stock-trades/top-10-tickers.py +++ b/examples/tools/flatfiles-stock-trades/top-10-tickers.py @@ -2,7 +2,7 @@ # most traded stocks and calculates their respective percentages of the total # trades. Please see https://polygon.io/blog/insights-from-trade-level-data # -import pandas as pd +import pandas as pd # type: ignore # Replace '2024-04-05.csv' with the path to your actual file file_path = "2024-04-05.csv" diff --git a/examples/tools/flatfiles-stock-trades/trades-histogram.py b/examples/tools/flatfiles-stock-trades/trades-histogram.py index b41ad1af..6651978d 100644 --- a/examples/tools/flatfiles-stock-trades/trades-histogram.py +++ b/examples/tools/flatfiles-stock-trades/trades-histogram.py @@ -4,8 +4,8 @@ # the distribution of trading volume across the day, from pre-market to after- # hours. Please see https://polygon.io/blog/insights-from-trade-level-data # -import pandas as pd -import matplotlib.pyplot as plt +import pandas as pd # type: ignore +import matplotlib.pyplot as plt # type: ignore # Replace '2024-04-05.csv' with the path to your actual file file_path = "2024-04-05.csv"