Repository: j-andrews7/kenpompy (language: python)

Issue:
Chore: clean up dead imports
There are quite a few spots around the codebase where we have imports that aren't being used.

Since this is purely cosmetic & isn't a drag on performance (at least, not to my knowledge) this one will be prioritized pretty low.

Also a good first ticket for those so inclined to jump in.


Discussion / hints:
Flake8's got a list for us to go on:

```
$ python3 -m flake8 . --select=F401
./kenpompy/FanMatch.py:5:1: F401 'mechanicalsoup' imported but unused
./kenpompy/FanMatch.py:7:1: F401 'bs4.BeautifulSoup' imported but unused
./kenpompy/conference.py:6:1: F401 'mechanicalsoup' imported but unused
./kenpompy/conference.py:8:1: F401 're' imported but unused
./kenpompy/conference.py:9:1: F401 'bs4.BeautifulSoup' imported but unused
./kenpompy/conference.py:10:1: F401 'datetime' imported but unused
./kenpompy/misc.py:6:1: F401 'mechanicalsoup' imported but unused
./kenpompy/misc.py:8:1: F401 'bs4.BeautifulSoup' imported but unused
./kenpompy/summary.py:6:1: F401 'mechanicalsoup' imported but unused
./kenpompy/summary.py:9:1: F401 'bs4.BeautifulSoup' imported but unused
./tests/test_conference.py:1:1: F401 'pytest' imported but unused
./tests/test_conference.py:2:1: F401 'datetime' imported but unused
./tests/test_conference.py:4:1: F401 'pandas as pd' imported but unused
./tests/test_fanmatch.py:1:1: F401 'pytest' imported but unused
./tests/test_fanmatch.py:2:1: F401 'kenpompy.misc as kpmisc' imported but unused
./tests/test_fanmatch.py:4:1: F401 'pandas as pd' imported but unused
./tests/test_misc.py:3:1: F401 'kenpompy.FanMatch.FanMatch' imported but unused
./tests/test_misc.py:4:1: F401 'pandas as pd' imported but unused
./tests/test_summary.py:3:1: F401 'pandas as pd' imported but unused
./tests/test_team.py:5:1: F401 'pandas as pd' imported but unused
```

Fix patch:
diff --git a/kenpompy/FanMatch.py b/kenpompy/FanMatch.py
index 5893dc7..58a86f9 100644
--- a/kenpompy/FanMatch.py
+++ b/kenpompy/FanMatch.py
@@ -2,9 +2,7 @@
 This module contains the FanMatch class for scraping the FanMatch pages into more usable objects.
 """
 
-import mechanicalsoup
 import pandas as pd
-from bs4 import BeautifulSoup
 from io import StringIO
 
 class FanMatch:
diff --git a/kenpompy/conference.py b/kenpompy/conference.py
index 4d14898..f5a41d7 100644
--- a/kenpompy/conference.py
+++ b/kenpompy/conference.py
@@ -3,11 +3,7 @@
 pandas dataframes
 """
 
-import mechanicalsoup
 import pandas as pd
-import re
-from bs4 import BeautifulSoup
-import datetime
 from io import StringIO
 
 def get_valid_conferences(browser, season=None):
diff --git a/kenpompy/misc.py b/kenpompy/misc.py
index c05601a..594012a 100644
--- a/kenpompy/misc.py
+++ b/kenpompy/misc.py
@@ -3,9 +3,7 @@
 usable pandas dataframes.
 """
 
-import mechanicalsoup
 import pandas as pd
-from bs4 import BeautifulSoup
 from io import StringIO
 import re
 
diff --git a/kenpompy/summary.py b/kenpompy/summary.py
index af1cc01..eb755f3 100644
--- a/kenpompy/summary.py
+++ b/kenpompy/summary.py
@@ -3,10 +3,8 @@
 usable pandas dataframes.
 """
 
-import mechanicalsoup
 import pandas as pd
 import re
-from bs4 import BeautifulSoup
 from io import StringIO
 
 def get_efficiency(browser, season=None):


Test patch:
diff --git a/tests/test_conference.py b/tests/test_conference.py
index 25dfee3..dab4992 100644
--- a/tests/test_conference.py
+++ b/tests/test_conference.py
@@ -1,7 +1,4 @@
-import pytest
-import datetime
 import kenpompy.conference as kpconf
-import pandas as pd
 
 def test_get_valid_conferences(browser):
 	expected = 32
diff --git a/tests/test_fanmatch.py b/tests/test_fanmatch.py
index 68e91fa..4549cd7 100644
--- a/tests/test_fanmatch.py
+++ b/tests/test_fanmatch.py
@@ -1,7 +1,4 @@
-import pytest
-import kenpompy.misc as kpmisc
 from kenpompy.FanMatch import FanMatch
-import pandas as pd
 
 def test_fanmatch(browser):
 	date = "2020-01-29"
diff --git a/tests/test_misc.py b/tests/test_misc.py
index 35ae96d..4fe91f9 100644
--- a/tests/test_misc.py
+++ b/tests/test_misc.py
@@ -1,7 +1,5 @@
 import pytest
 import kenpompy.misc as kpmisc
-from kenpompy.FanMatch import FanMatch
-import pandas as pd
 
 def test_get_current_season(browser):
 	current_season = kpmisc.get_current_season(browser)
diff --git a/tests/test_summary.py b/tests/test_summary.py
index dc3c80b..4e77e30 100644
--- a/tests/test_summary.py
+++ b/tests/test_summary.py
@@ -1,6 +1,5 @@
 import pytest
 import kenpompy.summary as kpsum
-import pandas as pd
 
 def test_get_efficiency(browser):
 	expected = ['Louisville', 'ACC', '67.2', '199', '68.3', '217', '17.6', '183', '17.5', '175', '113.7', '28', '107.6',
diff --git a/tests/test_team.py b/tests/test_team.py
index 73b09b5..88453a2 100644
--- a/tests/test_team.py
+++ b/tests/test_team.py
@@ -2,7 +2,6 @@
 import datetime
 import kenpompy.team as kpteam
 import kenpompy.misc as kpmisc
-import pandas as pd
 
 def test_get_valid_teams(browser):
 	expected = 357