Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Commit

Permalink
Merge 087bc21 into c95a84f
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Mar 23, 2019
2 parents c95a84f + 087bc21 commit 340738d
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 187 deletions.
1 change: 1 addition & 0 deletions .pylint.ini
Expand Up @@ -127,6 +127,7 @@ disable=print-statement,
no-else-return,
arguments-differ,
too-many-statements,
cyclic-import,

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Revision History

## 1.6.1 (2019-03-22)

- Updated `PyYAML` to `5.1` for security fixes.

## 1.6 (2018-09-07)

- Added `Number` (and `NullableNumber`) type for floats that store as integers when possible.
Expand Down
421 changes: 241 additions & 180 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mkdocs.yml
Expand Up @@ -5,7 +5,7 @@ repo_url: https://github.com/jacebrowning/yorm

theme: readthedocs

pages:
nav:
- Home: index.md
- API:
- Instance Mapping: api/instance-mapping.md
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -74,7 +74,7 @@ def build_description():
],

install_requires=[
'PyYAML >= 3.13, < 4',
'PyYAML >= 5.1, < 6',
'simplejson ~= 3.8',
'parse ~= 1.8.0',
],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_imports.py
@@ -1,6 +1,6 @@
"""Integration tests for the package namespace."""

# pylint: disable=missing-docstring,no-self-use,unused-variable
# pylint: disable=missing-docstring,no-self-use,unused-variable,unused-import


def test_top():
Expand Down
2 changes: 1 addition & 1 deletion yorm/diskutils.py
Expand Up @@ -4,8 +4,8 @@
import shutil
import logging

import simplejson as json
import yaml
import simplejson as json

from . import exceptions

Expand Down
5 changes: 2 additions & 3 deletions yorm/mapper.py
Expand Up @@ -18,11 +18,10 @@ def wrapped(self, *args, **kwargs):
if self.deleted:
msg = "File deleted: {}".format(self.path)
raise exceptions.DeletedFileError(msg)
elif self.missing and not settings.fake:
if self.missing and not settings.fake:
msg = "File missing: {}".format(self.path)
raise exceptions.MissingFileError(msg)
else:
return method(self, *args, **kwargs)
return method(self, *args, **kwargs)

return wrapped

Expand Down

0 comments on commit 340738d

Please sign in to comment.