Skip to content

fix flake8 warnings#10995

Closed
danieleades wants to merge 1 commit intosphinx-doc:masterfrom
danieleades:flake8-fixes
Closed

fix flake8 warnings#10995
danieleades wants to merge 1 commit intosphinx-doc:masterfrom
danieleades:flake8-fixes

Conversation

@danieleades
Copy link
Copy Markdown
Contributor

@danieleades danieleades commented Nov 27, 2022

Looks like there's a few flake8 warnings on master. This PR aims to address those.

The errors stem from the use of type comments. These comments are non-standard syntax, though they are supported by the PyCharm IDE.
Unfortunately pylance, mypy, and flake8 don't like them.
without type comments, it's not possible to type annotate 'for' loops on untyped iterators, so in these instances I've suppressed warnings rather than removing the type comments. Possibly there's a better long term solution, but hopefully this gets the CI working again and starts putting some nice green ticks next to the pull requests.

@danieleades
Copy link
Copy Markdown
Contributor Author

python 3.12 is still failing. perhaps that should be configured to not fail the CI until that's stabilised?

This was referenced Dec 15, 2022
jfbu added a commit to jfbu/sphinx that referenced this pull request Dec 16, 2022
jfbu added a commit that referenced this pull request Dec 16, 2022
* fix flake8 warnings

* Deactivate (provisorily) testing with 3.12-dev

(refs:
#10995 (comment)
)

* Escape # in tox.ini for tox 4 compatibility ('du-latest' tests)

Co-authored-by: Daniel Eades <[email protected]>
@jfbu
Copy link
Copy Markdown
Contributor

jfbu commented Dec 16, 2022

I merged your commit to master via #11035, unfortunately it got squashed with my commit deactivating Python 3.12-dev testing and fixing tox 4 compatibility rather than keeping separate. This was due to a mistake of mine on the github web interface.

@jfbu jfbu closed this Dec 16, 2022
@jfbu
Copy link
Copy Markdown
Contributor

jfbu commented Dec 16, 2022

Sorry I can not force-push to master to fix my squashing mistake

Really sorry, there is bug in github regarding the Co-authored-by line as well which contradicts other policy. My apologies about his, I had set-up the damn thing to rebase and merge but it got reset on CI completion and I clicked too quickly without checking.

@danieleades
Copy link
Copy Markdown
Contributor Author

No problem at all!

@danieleades danieleades deleted the flake8-fixes branch December 16, 2022 13:38
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants