From be3dbea7a68deb2086eb5c0f679119163826e3b4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:57:36 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.3 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.3...v0.2.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e2620706..70891ab39 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: # Python - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.3 + rev: v0.2.0 hooks: - id: ruff args: ["--fix"] From 03cb1e02c3e049ff4c9191eb90a7bbefaa8d9c7d Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Mon, 5 Feb 2024 16:56:07 -0500 Subject: [PATCH 2/3] enable NPY Signed-off-by: Jinzhe Zeng --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 327584490..0b099cb5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,13 +71,14 @@ write_to = "dpdata/_version.py" [tool.isort] profile = "black" -[tool.ruff] +[tool.ruff.lint] select = [ "E", # errors "F", # pyflakes "D", # pydocstyle "UP", # pyupgrade "I", # isort + "NPY", # numpy ] ignore = [ "E501", # line too long @@ -101,5 +102,5 @@ ignore = [ ] ignore-init-module-imports = true -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" From a64bd7cd65fe582e25b9f0abc33642b042a5b9bd Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sat, 10 Feb 2024 19:21:17 -0500 Subject: [PATCH 3/3] revert adding NPY Signed-off-by: Jinzhe Zeng --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0b099cb5c..8fe408eb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,6 @@ select = [ "D", # pydocstyle "UP", # pyupgrade "I", # isort - "NPY", # numpy ] ignore = [ "E501", # line too long