-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lots of small fixes to tests and ci stuff #33
Conversation
Drone was trying to test 3.9 but tox would ignore it.
@@ -4,7 +4,6 @@ clone: | |||
|
|||
matrix: | |||
PYTHON_VERSION: | |||
- 3.5 |
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.
I believe the version of python osie is running still uses 3.5 :/
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.
wat
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.
wow we need to update those containers already
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.
put it back and added a comment
@@ -11,11 +11,10 @@ matrix: | |||
|
|||
pipeline: | |||
fmt_and_lint: | |||
image: python:3.8-alpine | |||
image: nixos/nix:2.3.6 |
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.
i feel this over complicates the build process as well as gives the assumption that you need nix to run these tests.
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.
I can make clear that we don't require nix to run the tests? It does neatly pin the black/pylama(and co) versions which is nice for CI.
black was honoring the yapf ones, but we're probably better off with the generic `fmt` ones.
Helps debug tests where the output is not as expected.
stdlib, third party, finally local imports.
It only has one caller no need to complicate for imaginary situations.
Newer versions of click changed the error output from '-t' -> "-t". Doing it this way is compatible with older and newer versions.
Newer versions of click fail the test because the file passed to `-M` doesn't exist, so we need to ensure its created. Less patching/mocking is always a good thing imo too.
Black is the line length decider. You'd think I could just ignore E501 wouldn't you? Nope, this makes pycodestyle complain about some other things that it wasn't complaining about before :| ...
c56448c
to
1479e81
Compare
No description provided.