-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more option argument completions (#707)
* feat: add envdir and report completions * feat: add python completions * feat: add tag completion * feat: add keywords non-completion This will actually only prevent completions with bash if the completion was registered using `register-python-argcomplete --complete-arguments -- nox` (i.e. with _all_ fallback completions disabled, not just the readline ones). But it does not hurt if registered without doing so. * refactor: return Iterables from completers kislyuk/argcomplete#422 * style: simplify completer functions Co-authored-by: Stanislav Filin <[email protected]> * fix: return type hint for completer callables (`Iterable[str]`) kislyuk/argcomplete#422 * chore: appease mypy in completers code * test: add python and tag completer tests --------- Co-authored-by: Stanislav Filin <[email protected]>
- Loading branch information
Showing
5 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from __future__ import annotations | ||
|
||
import nox | ||
|
||
|
||
@nox.session # no tags | ||
def no_tags(unused_session): | ||
print("Look ma, no tags!") | ||
|
||
|
||
@nox.session(tags=["tag1"]) | ||
def one_tag(unused_session): | ||
print("Lonesome tag here.") | ||
|
||
|
||
@nox.session(tags=["tag1", "tag2", "tag3"]) | ||
def moar_tags(unused_session): | ||
print("Some more tags here.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters