Skip to content

Conversation

@gotmax23
Copy link
Collaborator

@gotmax23 gotmax23 commented Oct 5, 2023

This PR adds a clone-core nox session and applies the Python linters to the files in docs/bin.

@gotmax23 gotmax23 added backport-2.15 tooling This PR affects tooling (CI, pr_labeler, noxfile, linters, etc.) but not the docs builds themselves. labels Oct 5, 2023
@gotmax23 gotmax23 requested review from mattclay and oraNod October 5, 2023 22:13
@github-actions github-actions bot added the needs_triage Needs a first human triage before being processed. label Oct 5, 2023
Copy link
Contributor

@oraNod oraNod left a comment

Choose a reason for hiding this comment

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

Looks perfect! Thanks @gotmax23

@oraNod oraNod removed the needs_triage Needs a first human triage before being processed. label Oct 6, 2023
@gotmax23 gotmax23 marked this pull request as draft October 9, 2023 20:26
@gotmax23 gotmax23 marked this pull request as ready for review October 10, 2023 19:37
@gotmax23
Copy link
Collaborator Author

I force pushed to split up the commits.

@gotmax23 gotmax23 mentioned this pull request Oct 10, 2023
@gotmax23 gotmax23 marked this pull request as draft October 10, 2023 20:11
@oraNod oraNod requested a review from nitzmahone October 11, 2023 08:54
@oraNod
Copy link
Contributor

oraNod commented Oct 11, 2023

@nitzmahone and @mattclay Hey! Could one of you please take a look as this modifies docs/bin? It'd be good to confirm the changes with someone from the core team. Thanks!

@oraNod
Copy link
Contributor

oraNod commented Oct 11, 2023

doh. I may have sent review requests a little prematurely given this is in draft state.

@gotmax23
Copy link
Collaborator Author

doh. I may have sent review requests a little prematurely given this is in draft state.

Nah, it should be ready for review :).

@mattclay
Copy link
Member

I'm not sure there's anything for me to review. The majority (all?) of the changes in docs/bin appear to be code formatting.

@mattclay mattclay removed their request for review October 11, 2023 19:17
@gotmax23 gotmax23 marked this pull request as ready for review October 11, 2023 22:32
@gotmax23
Copy link
Collaborator Author

I'm not sure there's anything for me to review. The majority (all?) of the changes in docs/bin appear to be code formatting.

The changes to those files are mostly reformatting and adding type annotations for mypy. I also removed python2-isms (from __future__ and metaclass boilerplate; dealing with text and bytes) from find-plugins-refs.py.

This adds a clone-core session to the noxfile that can be run with `nox
-e clone-core`.
The session is added to the default sessions in `nox.options.sessions`
so executing `nox` automatically clones core and runs all of the lint
sessions.
This enforce the Python linters in the noxfile on the Python files in
docs/bin.
I ran the formatters and then fixed some line length and typing errors
manually.
@gotmax23
Copy link
Collaborator Author

I force pushed to fix a typo in a commit message. Other than that, I think this is good to merge.

@gotmax23 gotmax23 merged commit 881b326 into ansible:devel Oct 11, 2023
@patchback

This comment was marked as resolved.

@patchback
Copy link

patchback bot commented Oct 11, 2023

Backport to stable-2.16: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.16/881b3260c3defb7f18c461787d60ecb336154876/pr-529

Backported as #561

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Oct 11, 2023
This PR adds a clone-core nox session and applies the Python linters to
the files in `docs/bin`.

(cherry picked from commit 881b326)
gotmax23 added a commit to gotmax23/ansible-documentation that referenced this pull request Oct 11, 2023
This PR adds a clone-core nox session and applies the Python linters to
the files in `docs/bin`.
gotmax23 added a commit to gotmax23/ansible-documentation that referenced this pull request Oct 11, 2023
This PR adds a clone-core nox session and applies the Python linters to
the files in `docs/bin`.

(cherry picked from commit 881b326)
@gotmax23
Copy link
Collaborator Author

Manual stable-2.15 backport: #562

@oraNod
Copy link
Contributor

oraNod commented Oct 12, 2023

I'm not sure there's anything for me to review. The majority (all?) of the changes in docs/bin appear to be code formatting.

@mattclay I wanted to make sure either yourself or @nitzmahone was aware of the changes as it touched code you've added. Just hoping to avoid future surprises really. Thanks for taking a look.

@oraNod
Copy link
Contributor

oraNod commented Oct 12, 2023

Thanks for adding this @gotmax23

gotmax23 added a commit that referenced this pull request Oct 12, 2023
This PR adds a clone-core nox session and applies the Python linters to
the files in `docs/bin`.

(cherry picked from commit 881b326)
gotmax23 added a commit that referenced this pull request Oct 12, 2023
This PR adds a clone-core nox session and applies the Python linters to
the files in `docs/bin`.

(cherry picked from commit 881b326)

Co-authored-by: Maxwell G <maxwell@gtmx.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling This PR affects tooling (CI, pr_labeler, noxfile, linters, etc.) but not the docs builds themselves.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants