Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add keys endpoint#1490

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intopython-gitlab:masterfrombenjamb:benbrown/keys
Jun 3, 2021
Merged

feat: add keys endpoint#1490

nejch merged 1 commit intopython-gitlab:masterfrombenjamb:benbrown/keys
Jun 3, 2021

Conversation

benjamb
Copy link
Contributor

While this endpoint may be a little niche, it was useful for a project I was involved in recently.

@benjamb
Copy link
ContributorAuthor

On a somewhat unrelated note, is there a reason flake8 isn't included in the pre-commit config?

@codecov-commenter
Copy link

codecov-commenter commentedJun 2, 2021
edited
Loading

Codecov Report

Merging#1490 (a81525a) intomaster (74f5e62) willincrease coverage by0.03%.
The diff coverage is100.00%.

@@            Coverage Diff             @@##           master    #1490      +/-   ##==========================================+ Coverage   91.01%   91.04%   +0.03%==========================================  Files          73       74       +1       Lines        4128     4145      +17     ==========================================+ Hits         3757     3774      +17  Misses        371      371
FlagCoverage Δ
cli_func_v480.69% <64.70%> (-0.07%)⬇️
py_func_v479.97% <94.11%> (+0.05%)⬆️
unit82.17% <100.00%> (+0.07%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
gitlab/client.py86.64% <100.00%> (+0.03%)⬆️
gitlab/v4/objects/__init__.py100.00% <100.00%> (ø)
gitlab/v4/objects/keys.py100.00% <100.00%> (ø)

@JohnVillalovos
Copy link
Member

JohnVillalovos commentedJun 2, 2021
edited
Loading

On a somewhat unrelated note, is there a reason flake8 isn't included in the pre-commit config?

Good catch.@nejch recently updated it to addisort andblack. But likely we should addflake8 andmypy to it too.

benjamb reacted with thumbs up emoji

Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

I'd like@nejch and/or@max-wittig to also look.

Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

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

Thanks a lot, looks great! Just 2 tiny comments :)

return super(KeyManager, self).get(id, **kwargs)

if "fingerprint" not in kwargs:
raise AttributeError("Missing attribute: fingerprint")
Copy link
Member

Choose a reason for hiding this comment

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

This should probably have both options:

Suggested change
raiseAttributeError("Missing attribute: fingerprint")
raiseAttributeError("Missing attribute:id orfingerprint")

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

@nejch
Copy link
Member

On a somewhat unrelated note, is there a reason flake8 isn't included in the pre-commit config?

Good catch.@nejch recently updated it to addisort andblack. But likely we should addflake8 andmypy to it too.

Yes, these were just very recent additions to CI checks but we should add pre-commit as well.

@nejchnejch merged commitd3fac50 intopython-gitlab:masterJun 3, 2021
@benjambbenjamb deleted the benbrown/keys branchJune 3, 2021 09:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JohnVillalovosJohnVillalovosJohnVillalovos approved these changes

@nejchnejchnejch approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@benjamb@codecov-commenter@JohnVillalovos@nejch

[8]ページ先頭

©2009-2025 Movatter.jp