Closed LauchieHarvey closed 4 years ago
Okay, a few things:
uqcsbot/uqcsbot/static
to put the CSV in.Once all of that is fixed, I'll do a proper review.
jenkins retest this please
Apparently flake8
was updated recently, which may be the reason for the F541
error.
I have made changes to the tox.ini
(added --ignore=F541) file but there is still a failing check. I'll have to do a bit of research on the jenkins system because I've never worked with continuous integration before. @nicklambourne @bradleysigma
It appears that --ignore
overrides the default ignore list, leading to warnings in previously-passing code. Using --extend-ignore
instead should fix this. https://flake8.pycqa.org/en/latest/user/options.html
Looks like there's just one left:
test/test_events.py:87:1: E302 expected 2 blank lines, found 1
Ignore or fix, up to you. Ignore you can just add a comma to the argument to extend-ignore and put that new error code on the end.
After your suggestion @nicklambourne and help from @kentonlam it seems to have passed. Sorry I didn't fix the underlying issue. I need to learn more about Jenkins etc. before I have the understanding to solve it :) Thanks for your help and I'll await the PR review.
jenkins retest this please
This is my first pull request so bear with me :) I am not sure what branch to merge it to so I just put master :/ This contains a new
.csv
file which has geeky holidays in it. I also updated the holiday script to read from the.csv
so that the holidays will actually show. I didn't know what directory was best to put the.csv
in so I just have a constant variable in theholiday.py
file referencing the path of the.csv
. For now it is in the scripts directory but that can easily be changed. I tried to test it and I think from what I could tell it passed all of the tests, but I couldn't figure out how to actually get the 'holiday' message to display.