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

[codecheck] Style errors according to new black 23.1.0 #37

Closed
stanislavlevin opened this issue Feb 1, 2023 · 0 comments
Closed

[codecheck] Style errors according to new black 23.1.0 #37

stanislavlevin opened this issue Feb 1, 2023 · 0 comments

Comments

@stanislavlevin
Copy link
Owner

Recent black 23.1.0 complains:

@@ -77,10 +77,11 @@
     pyproject_path = pyproject()
     wheeldir = pyproject_path / "dist"
 
     verbose = build_args.get("verbose", False)
     capture = not verbose
+
     # emulate build error to see captured out/err
     def _raise_process_error(*args, **kwargs):
         stdout, stderr = (b"stdout", b"stderr") if capture else (None, None)
         raise CalledProcessError(
             1, ["command args"], output=stdout, stderr=stderr
@@ -288,10 +289,11 @@
     pyproject_path = pyproject()
     outdir = pyproject_path / "dist"
 
     # override mock_build's mock for os.read
     mock_os_read = mocker.patch("pyproject_installer.build_cmd._build.os.read")
+
     # emulate os.read error to raise thread
     def _raise_os_read(*args, **kwargs):
         raise OSError("oops")
 
     mock_os_read.side_effect = _raise_os_read
would reformat /home/slevdc/my_gits/pyproject_installer/tests/unit/test_build/test_builder.py

See psf/black#3302 for details.

stanislavlevin added a commit that referenced this issue Feb 1, 2023
See psf/black#3302 for details.
Fixes: #37

Signed-off-by: Stanislav Levin <slev@altlinux.org>
stanislavlevin added a commit that referenced this issue Feb 1, 2023
See psf/black#3302 for details.

Fixes: #37
Signed-off-by: Stanislav Levin <slev@altlinux.org>
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

No branches or pull requests

1 participant