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

Commitb059cd5

Browse files
committed
Have tox skip linting unless requested, for now
This is to make it so simple `tox` usage has the expected propertyof leaving all source code files in the working tree unchanged.Linting how sometimes performs auto-fixes since#1862, and thepre-commit command in tox.ini, which had also run `black --check`,will do even more file editing due to the changes in#1865.The bifurcation for black into separate mutating and non-mutatinghooks, introduced in5d8ddd9 (#1693), was not carried over intoRuff autoformatting in#1865. But also it:- Was not necessarily a good approach, and likely should not be preserved in any form. It was an unusual and unintuitive use of pre-commit. (It can be brought back if no better approach is found, though.)- Was done to avoid a situation where it was nontrivial to set up necessary dependencies for linting in the GitPython virtual environment itself, because flake8 and its various plugins would have to be installed. They were not listed in any existing or newly introduced extra (for example, they were not added to test-requirements.txt) in part in the hope that they would all be replaced by Ruff, which happened in#1862.- Already did not achieve its goal as of#1862, since it was (probably rightly) not extended to Ruff linting to use/omit --fix.Now that Ruff is being used, people can run `pip install ruff` in avirtual environment, then run the `ruff` command however they like.This takes the place of multiple tools and plugins.The situation with the tox "lint" environment is thus now similarto that of the tox "html" environment when it was added ine6ec6c8(#1667), until it was improved inf094909 (#1693) to run withproper isolation.
1 parent8262343 commitb059cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
requires = tox>=4
3-
env_list = py{37,38,39,310,311,312},lint,mypy, html
3+
env_list = py{37,38,39,310,311,312}, mypy, html
44

55
[testenv]
66
description = Run unit tests

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp