Skip to content
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

Merged
merged 13 commits into from
Feb 24, 2021
Merged

Conversation

mmlb
Copy link
Contributor

@mmlb mmlb commented Feb 24, 2021

No description provided.

Drone was trying to test 3.9 but tox would ignore it.
@mmlb mmlb requested a review from mikemrm February 24, 2021 19:31
mikemrm
mikemrm previously approved these changes Feb 24, 2021
@@ -4,7 +4,6 @@ clone:

matrix:
PYTHON_VERSION:
- 3.5
Copy link
Contributor

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 :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wat

Copy link
Contributor Author

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

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

mmlb added 12 commits February 24, 2021 14:48
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 :| ...
@mmlb mmlb force-pushed the bunch-o-ci-and-test-chores branch from c56448c to 1479e81 Compare February 24, 2021 19:48
@mmlb mmlb requested a review from mikemrm February 24, 2021 19:49
@mmlb mmlb enabled auto-merge February 24, 2021 19:51
@mmlb mmlb merged commit 23ed8c1 into master Feb 24, 2021
@mmlb mmlb deleted the bunch-o-ci-and-test-chores branch February 24, 2021 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants