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

Merged PR#97 with tests #100

Closed
wants to merge 14 commits into from

Conversation

GhostOps77
Copy link
Contributor

Merged #97 with some tests, and some other quality edits

  • Cleaned up code a little bit
  • Added Lint check workflow in Github Actions
  • Added click v6 tests as well

Resolves #92

GhostOps77 added 14 commits May 21, 2023 09:37
	deleted:    tests/test_basic.py
	deleted:    tests/test_completion/test_common_tests/test_arg_completion.py
	deleted:    tests/test_completion/test_common_tests/test_option_completion.py
	Replaced version based _resolve_context with custom function:   click_repl/_completer.py
	Added InvalidGroupFormat Exception Class:   click_repl/exceptions.py
	Added custom _resolve_context function:   click_repl/utils.py
	Added mock_stdin:   tests/__init__.py
	Added tests for group with options and args:   tests/test_repl.py
	Added ctx to completer:   tests/test_command_collection.py
	Added ctx to completer:   tests/test_completion/test_click_version_ge_8/test_arg_completion_v8.py
	Added ctx to completer:   tests/test_completion/test_click_version_ge_8/test_option_completion_v8.py
	Added ctx to completer:   tests/test_completion/test_click_version_le_7/test_arg_completion_v7.py
	Added ctx to completer:   tests/test_completion/test_click_version_le_7/test_option_completion_v7.py
	Added ctx to completer:   tests/test_completion/test_common_tests/test_hidden_cmd_and_args.py
	Renamed:    tests/test_completion/test_path_type/test_path_type.py -> tests/test_completion/test_path_type.py
@GhostOps77
Copy link
Contributor Author

If u r merging this PR, you can close this PR

@auvipy
Copy link
Collaborator

auvipy commented May 21, 2023

I want to merge that PR first, can you rebase after that?

basepython = python3.7
deps = flake8
commands = flake8 click_repl tests
[testenv:click6]
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this is added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems like this module should support click v6, as there's an implementation of ClickExit Exception in the exceptions file

So, I've added click v6 tests as well

@GhostOps77
Copy link
Contributor Author

GhostOps77 commented May 21, 2023

I want to merge that PR first, can you rebase after that?

@auvipy Sure, You can merge that PR first
I'll close this PR and come up with a new one

@auvipy
Copy link
Collaborator

auvipy commented May 21, 2023

you don't have to close you can re base I think

@GhostOps77
Copy link
Contributor Author

@auvipy ok, you can proceed

@auvipy
Copy link
Collaborator

auvipy commented May 21, 2023

can you please come with the relevant part to fix #92 first

@GhostOps77
Copy link
Contributor Author

@auvipy I'll just close this branch, and come up with a new one

@GhostOps77 GhostOps77 closed this May 21, 2023
@GhostOps77 GhostOps77 deleted the issue#97-with-tests branch June 10, 2023 15:12
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.

click_repl always reparses the group's options and arguments and invokes it
2 participants