-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from UDST/dev
Dev
- Loading branch information
Showing
17 changed files
with
239 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[run] | ||
omit = | ||
osmnet/**/tests/* | ||
*/__init__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
/data | ||
/configs | ||
/docs/build | ||
/scripts | ||
|
||
# Test cache | ||
.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#### If you have found an error: | ||
|
||
- check the error message and [documentation](https://udst.github.io/osmnet/index.html) | ||
- search the previously opened and closed issues to see if the problem has already been reported | ||
- if the problem is with a dependency of OSMnet, please open an issue on the dependency's repo | ||
- if the problem is with OSMnet and you think you may have a fix, please submit a PR, otherwise please open an issue in the [issue tracker](https://github.com/UDST/osmnet/issues) following the issue template | ||
|
||
#### Making a feature proposal or contributing code: | ||
|
||
- post your requested feature on the [issue tracker](https://github.com/UDST/osmnet/issues) and mark it with a `New feature` label so it can be reviewed | ||
- fork the repo, make your change (your code should attempt to conform to OSMnet's existing coding, commenting, and docstring styles), add new or update [unit tests](https://github.com/UDST/osmnet/tree/master/osmnet/tests), and submit a PR | ||
- respond to the code review |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
v0.1.5 | ||
====== | ||
|
||
2018/6/15 | ||
|
||
* adds custom_osm_filter parameter | ||
* update default keep_osm_tags list to include more tags including area | ||
* add new exceptions to catch for queries that return bad/no data | ||
* add coveralls support | ||
|
||
v0.1.4 | ||
====== | ||
|
||
2017/4/6 | ||
|
||
* Better exception handling of KeyError exceptions. | ||
* Removed unnecessary logs. | ||
|
||
v0.1.3 | ||
====== | ||
|
||
2017/4/6 | ||
|
||
* Documentation is now generated and upload to the gh-pages branch after each commit on master. | ||
|
||
v0.1.2 | ||
====== | ||
|
||
2017/3/31 | ||
|
||
* Now version numbers are the same in all the source code. | ||
|
||
v0.1.1 | ||
====== | ||
|
||
2017/3/31 | ||
|
||
* README file changed from MarkDown to RST format. | ||
|
||
v0.1.0 | ||
====== | ||
|
||
2017/3/31 | ||
|
||
* Python3 support. Now, Travis run tests over Python2.7 and Python3.5. | ||
* Travis runs pycodestyle on each commit. | ||
* Code now conforms pep8 and pycodestyle. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import pytest | ||
|
||
import osmnet.config as config | ||
|
||
|
||
@pytest.fixture(scope='module') | ||
def default_config(): | ||
# Default config settings | ||
return {'log_file': True, | ||
'log_name': 'osmnet', | ||
'log_filename': 'osmnet', | ||
'logs_folder': 'logs', | ||
'keep_osm_tags': ['name', 'ref', 'highway', 'service', 'bridge', | ||
'tunnel', 'access', 'oneway', 'toll', 'lanes', | ||
'maxspeed', 'hgv', 'hov', 'area', 'width', | ||
'est_width', 'junction'], | ||
'log_console': False} | ||
|
||
|
||
def test_config_defaults(default_config): | ||
settings = config.osmnet_config() | ||
config.format_check(settings.to_dict()) | ||
assert settings.to_dict() == default_config |
Oops, something went wrong.