File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,10 +57,9 @@ repos:
5757 - id : prettier
5858 additional_dependencies :
5959 - " prettier@^3.2.4"
60- # docformatter - PEP 257 compliant docstring formatter
61- - repo : https://github.com/s-weigand/docformatter
62- rev : 5757c5190d95e5449f102ace83df92e7d3b06c6c
60+ # ruff - An extremely fast Python linter and code formatter, written in Rust.
61+ - repo : https://github.com/astral-sh/ruff-pre-commit
62+ rev : v0.15.12
6363 hooks :
64- - id : docformatter
65- additional_dependencies : [tomli]
66- args : [--in-place, --config, ./pyproject.toml]
64+ - id : ruff-check
65+ args : [--fix, --config, ./pyproject.toml]
Original file line number Diff line number Diff line change 1+ **Added: **
2+
3+ * <news item>
4+
5+ **Changed: **
6+
7+ * <news item>
8+
9+ **Deprecated: **
10+
11+ * <news item>
12+
13+ **Removed: **
14+
15+ * <news item>
16+
17+ **Fixed: **
18+
19+ * Fixed command line control usability
20+
21+ **Security: **
22+
23+ * <news item>
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ exclude = [] # exclude packages matching these glob patterns (empty by default)
4949namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5050
5151[project .scripts ]
52- diffpy- distanceprinter = " diffpy.distanceprinter.distanceprinter_app :main"
52+ distanceprinter = " diffpy.distanceprinter.distanceprinter :main"
5353
5454[tool .setuptools .dynamic ]
5555dependencies = {file = [" requirements/pip.txt" ]}
@@ -59,10 +59,11 @@ exclude-file = ".codespell/ignore_lines.txt"
5959ignore-words = " .codespell/ignore_words.txt"
6060skip = " *.cif,*.dat"
6161
62- [tool .docformatter ]
63- recursive = true
64- wrap-summaries = 72
65- wrap-descriptions = 72
62+ [tool .ruff ]
63+ line-length = 72
64+
65+ [tool .ruff .lint .pydocstyle ]
66+ convention = " numpy"
6667
6768[tool .black ]
6869line-length = 79
You can’t perform that action at this time.
0 commit comments