-
Notifications
You must be signed in to change notification settings - Fork 5
Update master from dev #164
Conversation
Fix an IndexError in `date_order` test
Merge branch dev into specific-rule-types
This leads to problems with AtLeastOne
Test dataset renaming
Test no context rules
Specific rule types
syntax highlighting in README
In several cases, the same function call was being called multiple times when it didn't need to be. This is due to the values previously being a constant, then find+replace happening.
A single call to a local function is much nicer than a nested call to a pair of functions in a different module
Update `ruleset-implementation` with the latest changes from dev
Less and more were confused due to copypaste error
Add check that data can be invalidated against the Standard Ruleset
Fix a copypaste error
Linting fixes
[requires.io] dependency update on dev branch
Since lxml v4.0.0, a bug has been resolved, where previously etree.fromstring() failed to parse UTF-32 data with BOM.
Add tests for raw datasets encoded in UTF-32
There were a few missing, and this makes ir future-proof
The intention is to have something to call 0.1.0 today
Add missing lxml to travis install
Update version number and release date in changelog - 0.1.0
!!!!!!! |
README.md
Outdated
# To create a Ruleset object from your ruleset_str: | ||
iati.Ruleset(ruleset_str) | ||
``` | ||
|
||
**Note:** This functionality is not yet implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now you can use rulesets, this line can be deleted.
iati.tests | ||
|
||
Submodules | ||
---------- | ||
|
||
iati\.codelists module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In docs/source/iati.core.tests.rst
, the \
characters have been removed, so not sure if the approach here is consistent...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also applies to other instances of submodule headings and instances in docs/source/iati.tests.rst
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running make docs
should fix this. If not, delete docs/build/
, then re-run this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...actually this is in docs/source/
- just run make docs
and make sure any iati.core
references have said turrah.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was resolved in ce3b5e1.
iati/data.py
Outdated
|
||
@property | ||
def version(self): | ||
"""Return the version that this Dataset is specified against. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For clarity, should perhaps be 'Return the IATI version that this Dataset is specified against.'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be consistent with the standard documentation for a version
parameter for functions (whatever that may be).
iati/default.py
Outdated
version (str): The version of the Standard to return the Ruleset for. Defaults to None. This means that the latest Ruleset schema is returned. | ||
|
||
Returns: | ||
json: A JSON representation of the Ruleset schema for the specified version of the Standard. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
json
-> dict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few fairly small things.
Fixes to review requests in #164
Might as well give it a go I s'pose.