From 35ee52cc788528ace474e75134de7d9a95dee8fe Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Fri, 17 May 2024 23:14:43 -0400 Subject: [PATCH] style: enable W rules (#3793) Fix #3789. - **Documentation** - Corrected a minor formatting issue in the quick start guide for displaying a file path. - **Chores** - Added a new linting rule for warnings to improve code quality. - **Tests** - Improved regular expression handling in test cases by using raw string notation. --------- Signed-off-by: Jinzhe Zeng Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 81b5949e16a2c62dd733154673af418713d6803d) Signed-off-by: Jinzhe Zeng --- doc/getting-started/quick_start.ipynb | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/getting-started/quick_start.ipynb b/doc/getting-started/quick_start.ipynb index 67674c4654..67462c91d4 100644 --- a/doc/getting-started/quick_start.ipynb +++ b/doc/getting-started/quick_start.ipynb @@ -396,7 +396,7 @@ } ], "source": [ - "! cat DeePMD-kit_Tutorial/00.data/training_data/type.raw " + "! cat DeePMD-kit_Tutorial/00.data/training_data/type.raw" ] }, { diff --git a/pyproject.toml b/pyproject.toml index 1b4d459a7d..9eb1b71ac1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -287,6 +287,7 @@ force_grid_wrap = 1 [tool.ruff.lint] select = [ "E", # errors + "W", # warning "F", # pyflakes "D", # pydocstyle "UP", # pyupgrade