Closed Xarthisius closed 5 years ago
There's also:
./test/test_bdbagit.py:1059:34: F821 undefined name 'unicode'
self.unicode_class = unicode
^
1 F821 undefined name 'unicode'
1
which should be addressed, but since it's in the tests it's less important.
Totals | |
---|---|
Change from base Build 247: | -0.06% |
Covered Lines: | 1448 |
Relevant Lines: | 1565 |
huh, no flake8
for python 3.3. It reached EoL on 2017-09-29. How about dropping it from Travis test matrix?
There's also:
./test/test_bdbagit.py:1059:34: F821 undefined name 'unicode' self.unicode_class = unicode ^ 1 F821 undefined name 'unicode' 1
which should be addressed, but since it's in the tests it's less important.
This is part of a conditionalized PY2/PY3 (and was actually inherited from bagit
), so the code is actually OK:
if sys.version_info >= (3, ):
self.unicode_class = str
else:
self.unicode_class = unicode
I am not that familiar with flake8
, but if it can be made to understand the subtlety here (or the code can be rewritten in such a way to not cause it generate a false negative) then I am fine with it.
I am not that familiar with
flake8
, but if it can be made to understand the subtlety here (or the code can be rewritten in such a way to not cause it generate a false negative) then I am fine with it.
Yup, you can make it shut up by adding # NOQA
comment, which I did and I removed the --exclude=test*
from flake8 invocation.
huh, no
flake8
for python 3.3. It reached EoL on 2017-09-29. How about dropping it from Travis test matrix?
I think that is part of a bigger decision to drop 3.3 (and 3.4) support overall. I am not opposed to it in principle since they are EoL but I am not sure I want to rush into it. That is something that would necessitate a minor version bump (to 1.6.0
), which is fine, but also could be timed to include some other improvements.
I like the idea of the flake8
linting but would like some time to look into it myself. In the meantime, I will incorporate the fix for the undefined false in bdbag_ro.py
from e745f98 and cut a new micro release 1.5.4
and upload it to PyPi this week.
Sure, I'm fairly certain that before_install with flake8 can be somehow excluded in travis matrix, but I'm not that familiar with its config. I'll look it up and get back with a working setup.
Finally got this included. Thanks for the contrib @Xarthisius!
@mikedarcy I added
flake8
linting to Travis, which should prevent #31 from happening again. This PR also includes another minor fix.