From 4c12d00d2acf166d7cf8f76485aa20762e96f39c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 22:15:13 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.1.0 → 23.9.1](https://github.com/psf/black/compare/23.1.0...23.9.1) - [github.com/asottile/blacken-docs: 1.13.0 → 1.16.0](https://github.com/asottile/blacken-docs/compare/1.13.0...1.16.0) - [github.com/asottile/pyupgrade: v3.3.1 → v3.13.0](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.13.0) - [github.com/PyCQA/autoflake: v2.0.1 → v2.2.1](https://github.com/PyCQA/autoflake/compare/v2.0.1...v2.2.1) - [github.com/PyCQA/flake8: 5.0.4 → 6.1.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.1.0) - [github.com/codespell-project/codespell: v2.2.2 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.6) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a410562..548ec8a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,12 +18,12 @@ repos: args: ['--maxkb=3000'] - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: 1.13.0 + rev: 1.16.0 hooks: - id: blacken-docs additional_dependencies: [black==23.1.0] @@ -38,13 +38,13 @@ repos: - --profile=black - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.13.0 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/PyCQA/autoflake - rev: v2.0.1 + rev: v2.2.1 hooks: - id: autoflake args: @@ -56,7 +56,7 @@ repos: # Temporarily downgrade flake8 because it gives 'str' is not callable error. - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 6.1.0 hooks: - id: flake8 files: ^WFacer/ @@ -80,7 +80,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.6 hooks: - id: codespell stages: [commit, commit-msg] From 9e1a23799d20657c5a8ebbecd10346139fa68d79 Mon Sep 17 00:00:00 2001 From: qchempku2017 Date: Tue, 3 Oct 2023 11:11:41 -0700 Subject: [PATCH 2/2] TST: upgrade pre-commit hooks. flake8 must be reverted to 5.0.4. --- .pre-commit-config.yaml | 4 ++-- docs/src/contributing.rst | 2 +- tests/test_utils/test_sparselm_estimators.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 548ec8a..8ce2804 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,7 +56,7 @@ repos: # Temporarily downgrade flake8 because it gives 'str' is not callable error. - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 5.0.4 hooks: - id: flake8 files: ^WFacer/ @@ -85,4 +85,4 @@ repos: - id: codespell stages: [commit, commit-msg] exclude_types: [html] - args: [--ignore-words-list, 'nd, tread, mater, titel', --skip, "*.ipynb"] + args: [--ignore-words-list, 'nd, tread, mater, titel, atomate, Atomate', --skip, "*.ipynb"] diff --git a/docs/src/contributing.rst b/docs/src/contributing.rst index 5823038..e6f5669 100644 --- a/docs/src/contributing.rst +++ b/docs/src/contributing.rst @@ -98,7 +98,7 @@ Adding code contributions * We recommend to only your forks *main* branch for short/easy fixes and additions. * For more complex features, try to use a feature branch with a descriptive name. - * For very complex feautres feel free to open up a PR even before your contribution is finished with + * For very complex features feel free to open up a PR even before your contribution is finished with [WIP] in its name, and optionally mark it as a *draft*. #. While developing we recommend you use the pre-commit hook that is setup to ensure that your diff --git a/tests/test_utils/test_sparselm_estimators.py b/tests/test_utils/test_sparselm_estimators.py index bd967a3..ef22ed2 100644 --- a/tests/test_utils/test_sparselm_estimators.py +++ b/tests/test_utils/test_sparselm_estimators.py @@ -1,4 +1,4 @@ -"""Test sparselm estimator untilities.""" +"""Test sparselm estimator utilities.""" from itertools import chain import numpy as np