Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Lint on GitHub Actions via pre-commit#159

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 1 commit intopython:mainfromhugovk:lint
Oct 13, 2023
Merged

Conversation

hugovk
Copy link
Member

Add some pre-commit checks and apply autofixes. Also some minor config updates.

I also ranhttps://github.com/tox-dev/pyproject-fmt/ to reformatpyproject.toml to standardise it and make it much easier to compare with other repos. However, I didn't add it to pre-commit because it strips out the 3.13 classifier.

@hugovkhugovk marked this pull request as draftOctober 11, 2023 12:05
@hugovk
Copy link
MemberAuthor

hugovk commentedOct 11, 2023
edited
Loading

I triggered a test run onmain and it also failed with only the exit code:

  python ./docsbuild-scripts/build_docs.py --quick --build-root ./build_root --www-root ./www --log-directory ./logs --group $(id -g) --skip-cache-invalidation --theme $(pwd) --language en --branch 3.12  shell: /usr/bin/bash -e {0}  env:    FORCE_COLOR: 1    pythonLocation: /opt/hostedtoolcache/Python/3.11.5/x64    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.5/x64/lib/pkgconfig    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.5/x64    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.5/x64    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.5/x64    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.5/x64/libError: Process completed with exit code 70.

https://github.com/python/python-docs-theme/actions/runs/6482294214/job/17601524907

Running the same command passes for me locally.

@hugovkhugovk marked this pull request as ready for reviewOctober 11, 2023 12:39
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 88
Copy link
Member

Choose a reason for hiding this comment

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

Can/should this specified with a --flag (or disabled ifblack already checks this)?
If we do we can get rid of this file.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

It could be done with a flag, but then it would only apply to that invocation with the flag, and not if we run Flake8 myself from the command line. This file means it is read by both.

We can't remove it either. Black will set some files to 88 chars wide, and then Flake8 would complain because it's over 80.

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough.

@@ -0,0 +1,2 @@
[flake8]
max-line-length = 88
Copy link
Member

Choose a reason for hiding this comment

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

Fair enough.

@hugovkhugovk merged commitbc3cf1b intopython:mainOct 13, 2023
@hugovkhugovk deleted the lint branchOctober 13, 2023 05:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ezio-melottiezio-melottiezio-melotti approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@hugovk@ezio-melotti

[8]ページ先頭

©2009-2025 Movatter.jp