Skip to content

Commit

Permalink
Merge pull request #252 from ebreton/master
Browse files Browse the repository at this point in the history
A few adjustments after a fresh install
  • Loading branch information
DenisCarriere committed Jul 26, 2017
2 parents 284f3dc + dafa332 commit 36625d1
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.cache
geocoder/__pycache__/
.coverage
htmlcov
MANIFEST
coverage.xml
nosetests.xml
Expand All @@ -18,7 +19,9 @@ geocoder.egg-info/
*.egg
*.pyo
env/
.env
.idea
.vscode
.workon

t.py
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ init:
pip install -r requirements.txt

test:
py.test tests
flake8 --ignore=E305,E501 geocoder
py.test --cov=./ tests
coverage html

clean:
python setup.py clean --all
Expand Down
4 changes: 0 additions & 4 deletions geocoder/freegeoip.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ def offset(self):
def organization(self):
return self.parse.get('organization')

@property
def offset(self):
return self.parse.get('offset')

@property
def ip(self):
return self.parse.get('ip')
Expand Down
1 change: 0 additions & 1 deletion geocoder/geocodefarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# coding: utf8

from __future__ import absolute_import
import six
from geocoder.base import Base
from geocoder.keys import geocodefarm_key

Expand Down
1 change: 0 additions & 1 deletion geocoder/geocodefarm_reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# coding: utf8

from __future__ import absolute_import
import six
from geocoder.base import Base
from geocoder.location import Location
from geocoder.geocodefarm import GeocodeFarm
Expand Down
1 change: 0 additions & 1 deletion geocoder/google_places.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# coding: utf8

from __future__ import absolute_import
import time
from geocoder.base import Base
from geocoder.keys import google_key

Expand Down
1 change: 0 additions & 1 deletion geocoder/here.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# coding: utf8

from __future__ import absolute_import
import six
from geocoder.base import Base
from geocoder.keys import here_app_id, here_app_code

Expand Down
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ click==6.7
decorator==4.1.2
idna==2.5
py==1.4.34
flake8==3.3.0
pytest==3.1.3
codecov==2.0.9
pytest-cov==2.5.1
ratelim==0.1.6
requests==2.18.1
six==1.10.0
Expand Down
5 changes: 4 additions & 1 deletion tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
# coding: utf8

import geocoder
import mock
import requests

try:
import mock
except ImportError:
from unittest import mock

address = 'Booth Street, Ottawa'

Expand Down

0 comments on commit 36625d1

Please sign in to comment.