From 0fccdb82a890dd13f5f85319d4bb0aa44bb25fc3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 13:48:28 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#76) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/psf/black: 22.10.0 → 23.3.0](https://github.com/psf/black/compare/22.10.0...23.3.0) - [github.com/adrienverge/yamllint.git: v1.28.0 → v1.32.0](https://github.com/adrienverge/yamllint.git/compare/v1.28.0...v1.32.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 10 +++------- setup.cfg | 2 +- src/tendo/colorer.py | 1 - src/tendo/tee.py | 1 - tox.ini | 2 +- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9df992a..eb9ab56 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace exclude: ^src/tendo/tests/.*\.txt$ @@ -20,16 +20,12 @@ repos: - id: check-yaml files: .*\.(yaml|yml)$ - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.3.0 hooks: - id: black language_version: python3 - repo: https://github.com/adrienverge/yamllint.git - rev: v1.28.0 + rev: v1.32.0 hooks: - id: yamllint files: \.(yaml|yml)$ - - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 - hooks: - - id: flake8 diff --git a/setup.cfg b/setup.cfg index 8d2db4f..0a6d8c0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -51,7 +51,7 @@ install_requires = test = coverage[toml]>=6.5.0 coveralls~=3.3.1 - pre-commit~=2.20.0 + pre-commit>=3.3.3 pytest-cache~=1.0 pytest-cov~=3.0.0 pytest-html~=3.1.1 diff --git a/src/tendo/colorer.py b/src/tendo/colorer.py index 6056d44..bc9e928 100755 --- a/src/tendo/colorer.py +++ b/src/tendo/colorer.py @@ -25,7 +25,6 @@ or ("TERM" in os.environ.keys() and os.environ["TERM"] in ["linux"]) or ("PYCHARM_HOSTED" in os.environ.keys()) ): - # Why stderr and not stdout? - because python logging module does output to stderr by default and not stdout. # now we patch Python code to add color support to logging.StreamHandler def add_coloring_to_emit_windows(fn): diff --git a/src/tendo/tee.py b/src/tendo/tee.py index d847cc9..04d21cf 100755 --- a/src/tendo/tee.py +++ b/src/tendo/tee.py @@ -251,7 +251,6 @@ def test_4(self): if __name__ == "__main__": - # unittest.main() import pytest diff --git a/tox.ini b/tox.ini index 30e3b5a..c2e38ce 100644 --- a/tox.ini +++ b/tox.ini @@ -56,7 +56,7 @@ deps = [testenv:lint] deps = - pre-commit>==1.15.1 + pre-commit>=3.3.3 commands= python -m pre_commit run --all