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 23d42e73d2..80d5ad9ee9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -298,6 +298,7 @@ docstring-code-format = true [tool.ruff.lint] select = [ "E", # errors + "W", # warning "F", # pyflakes "D", # pydocstyle "UP", # pyupgrade diff --git a/source/tests/pt/model/test_fitting_net.py b/source/tests/pt/model/test_fitting_net.py index c7e1723799..900b01d687 100644 --- a/source/tests/pt/model/test_fitting_net.py +++ b/source/tests/pt/model/test_fitting_net.py @@ -113,7 +113,7 @@ def test_consistency(self): ).to(env.DEVICE) for name, param in my_fn.named_parameters(): matched = re.match( - "filter_layers\.networks\.(\d).layers\.(\d)\.([a-z]+)", name + r"filter_layers\.networks\.(\d).layers\.(\d)\.([a-z]+)", name ) key = None if matched: