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

Release 0.2.1 #27

Merged
merged 4 commits into from
Nov 13, 2023
Merged

Release 0.2.1 #27

merged 4 commits into from
Nov 13, 2023

Conversation

khoroshevskyi
Copy link
Member

Added function that checks correctness of registry path to helpers

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #27 (7a89e24) into main (22e0e6f) will increase coverage by 0.59%.
Report is 3 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   82.07%   82.67%   +0.59%     
==========================================
  Files          12       12              
  Lines         463      479      +16     
==========================================
+ Hits          380      396      +16     
  Misses         83       83              
Files Coverage Δ
pephubclient/helpers.py 72.00% <100.00%> (+7.89%) ⬆️
tests/test_pephubclient.py 100.00% <100.00%> (ø)

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@@ -0,0 +1,12 @@
name: Ruff

Choose a reason for hiding this comment

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

Are we actually switching to ruff for all projects? We should probably discuss (briefly) at the next Infrastructure meeting.

Copy link

Choose a reason for hiding this comment

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

No, we're using black. don't switch this kind of thing please.

if you have a compelling case to switch, we should discuss, but then we'll switch all our projects.

@@ -84,3 +88,18 @@ def call_client_func(func: Callable[..., Any], **kwargs) -> Any:
MessageHandler.print_warning(f"PEP already exists. {err}")
except OSError as err:
MessageHandler.print_error(f"{err}")


def is_registry_path(input_string: str) -> bool:

Choose a reason for hiding this comment

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

Something very similar exists in Looper. Should this, therefore, now be placed in ubiquerg along with parse_registry_path?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this should be part of pephubclient, and looper should now use this function

@@ -1,7 +1,9 @@
black

Choose a reason for hiding this comment

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

If we use ruff, can we remove black?

Copy link

@donaldcampbelljr donaldcampbelljr left a comment

Choose a reason for hiding this comment

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

Looks good.

@khoroshevskyi khoroshevskyi merged commit bd1307b into main Nov 13, 2023
11 checks passed
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.

3 participants