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

Make CLI startup faster, support tab completion with argcomplete #173

Merged
merged 10 commits into from
Aug 21, 2024

Conversation

felixfontein
Copy link
Collaborator

Basically argcomplete support was already partially there, but the marker was missing to easily use it.

This also changes code to only import ansible and rstcheck/docutils when needed; this improves performance a lot (and thus makes tab complete less sluggy). On my machine, running antsibull-changelog --help sped up from ~0.6s to ~0.1s.

src/antsibull_changelog/ansible.py Outdated Show resolved Hide resolved
tests/functional/test_changelog_basic_collection.py Outdated Show resolved Hide resolved
changelogs/fragments/173-argcomplete.yml Outdated Show resolved Hide resolved
Co-authored-by: Maxwell G <maxwell@gtmx.me>
felixfontein and others added 3 commits August 17, 2024 14:23
@felixfontein
Copy link
Collaborator Author

Codecov gets less and less reliable and useful, it seems. I've started to mostly ignore it since it most of the time forgets some uploaded results and reports the wrong coverage number anyway.

@felixfontein felixfontein merged commit c15ad61 into ansible-community:main Aug 21, 2024
5 checks passed
@felixfontein felixfontein deleted the argcomplete branch August 21, 2024 07:32
@felixfontein
Copy link
Collaborator Author

@gotmax23 thanks for reviewing this!

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