From 076f07620e5ead8966285fe9e9334bb873b73ca9 Mon Sep 17 00:00:00 2001 From: antonag32 Date: Mon, 27 Nov 2023 11:17:42 -0600 Subject: [PATCH] [IMP] cfg: update black version Black has been updated to its latest version. Biggest change involves black removing whitespaces after class/method declarations. BREAKING CHANGE: black may generate diffs on projects --- src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml | 2 +- tests/test_pre_commit_vauxoo.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml b/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml index 1e3c34c..61ab5d2 100644 --- a/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml +++ b/src/pre_commit_vauxoo/cfg/.pre-commit-config-autofix.yaml @@ -30,7 +30,7 @@ default_language_version: node: "14.13.0" repos: - repo: https://github.com/psf/black-pre-commit-mirror.git - rev: 22.10.0 + rev: 23.12.1 hooks: - id: black - repo: https://github.com/myint/autoflake diff --git a/tests/test_pre_commit_vauxoo.py b/tests/test_pre_commit_vauxoo.py index e284313..6b692be 100644 --- a/tests/test_pre_commit_vauxoo.py +++ b/tests/test_pre_commit_vauxoo.py @@ -2,6 +2,7 @@ import logging import os +import platform import posixpath import re import shutil @@ -26,7 +27,7 @@ def setUp(self): super().setUp() self.old_environ = os.environ.copy() self.original_work_dir = os.getcwd() - self.tmp_dir = tempfile.mkdtemp(suffix="_pre_commit_vauxoo") + self.tmp_dir = os.path.realpath(tempfile.mkdtemp(suffix="_pre_commit_vauxoo")) os.chdir(self.tmp_dir) self.runner = CliRunner() src_path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "resources")