Skip to content

Commit

Permalink
style: enable W rules (#3793)
Browse files Browse the repository at this point in the history
Fix #3789.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

- **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.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Jinzhe Zeng <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 81b5949)
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz and pre-commit-ci[bot] committed Jul 3, 2024
1 parent ef73b7a commit 35ee52c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/getting-started/quick_start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ force_grid_wrap = 1
[tool.ruff.lint]
select = [
"E", # errors
"W", # warning
"F", # pyflakes
"D", # pydocstyle
"UP", # pyupgrade
Expand Down

0 comments on commit 35ee52c

Please sign in to comment.