Skip to content

Commit ea54de1

Browse files
committed
Merge branch 'main' into silence-deprecated-warning
2 parents e778bc5 + 520f319 commit ea54de1

37 files changed

Lines changed: 385 additions & 246 deletions

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ci:
1111
submodules: false
1212
repos:
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.6.0
14+
rev: v6.0.0
1515
hooks:
1616
- id: check-yaml
1717
- id: end-of-file-fixer
@@ -21,31 +21,31 @@ repos:
2121
- id: check-toml
2222
- id: check-added-large-files
2323
- repo: https://github.com/psf/black
24-
rev: 24.4.2
24+
rev: 26.5.1
2525
hooks:
2626
- id: black
2727
- repo: https://github.com/pycqa/flake8
28-
rev: 7.0.0
28+
rev: 7.3.0
2929
hooks:
3030
- id: flake8
3131
- repo: https://github.com/pycqa/isort
32-
rev: 5.13.2
32+
rev: 9.0.0a3
3333
hooks:
3434
- id: isort
3535
args: ["--profile", "black"]
3636
- repo: https://github.com/kynan/nbstripout
37-
rev: 0.7.1
37+
rev: 0.9.1
3838
hooks:
3939
- id: nbstripout
4040
- repo: https://github.com/pre-commit/pre-commit-hooks
41-
rev: v4.4.0
41+
rev: v6.0.0
4242
hooks:
4343
- id: no-commit-to-branch
4444
name: Prevent Commit to Main Branch
4545
args: ["--branch", "main"]
4646
stages: [pre-commit]
4747
- repo: https://github.com/codespell-project/codespell
48-
rev: v2.3.0
48+
rev: v2.4.2
4949
hooks:
5050
- id: codespell
5151
additional_dependencies:
@@ -58,8 +58,8 @@ repos:
5858
additional_dependencies:
5959
- "prettier@^3.2.4"
6060
# docformatter - PEP 257 compliant docstring formatter
61-
- repo: https://github.com/s-weigand/docformatter
62-
rev: 5757c5190d95e5449f102ace83df92e7d3b06c6c
61+
- repo: https://github.com/PyCQA/docformatter
62+
rev: v1.7.8
6363
hooks:
6464
- id: docformatter
6565
additional_dependencies: [tomli]

devutils/sgtbx_extra_groups.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
Not to be included with code distributions.
1111
"""
1212

13-
1413
import math
1514
import re
1615

news/CI-badge-fix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* No News Added: fix CI badge and target in README.rst
44

5+
56
**Changed:**
67

78
* <news item>

news/fix-internal-deps.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* No news needed: fix internal use of deprecated functions.
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+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

news/pre-commit_edits.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* No news needed: updating docformatter not user facing
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+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/structure/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
* SymmetryError
3434
"""
3535

36-
3736
import os
3837
import sys
3938

@@ -102,10 +101,10 @@ def load_structure(filename, fmt="auto", **kw):
102101
Path to the file to be loaded.
103102
fmt : str, Optional
104103
Format of the structure file such as 'cif' or 'xyz'. Must be
105-
one of the formats listed by the `parsers.inputFormats` function.
104+
one of the formats listed by the `parsers.input_formats` function.
106105
When 'auto', all supported formats are tried in a sequence.
107106
kw : Optional
108-
Extra keyword arguments that are passed to `parsers.getParser`
107+
Extra keyword arguments that are passed to `parsers.get_parser`
109108
function. These configure the dedicated Parser object that
110109
is used to read content in filename.
111110

src/diffpy/structure/_legacy_importer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
This module is deprecated and will be removed in the future.
2828
"""
2929

30-
3130
import importlib.abc
3231
import sys
3332
from warnings import warn

src/diffpy/structure/apps/anyeye.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def convert_structure_file(pd):
187187
fmt = pd.get("format", "auto")
188188
stru = None
189189
if fmt == "auto":
190-
stru, fmt = loadStructureFile(strufile)
190+
stru, fmt = load_structure_file(strufile)
191191
pd["fmt"] = fmt
192192
# if fmt is recognized by the viewer, use as is
193193
if fmt in pd["formats"] and pd["formula"] is None:

src/diffpy/structure/apps/vesta_viewer.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@
7272

7373

7474
def usage(style=None):
75-
"""Show usage info. for ``style=="brief"`` show only first 2 lines.
75+
"""Show usage info.
7676
77-
Parameters
78-
----------
79-
style : str, optional
80-
The usage display style.
77+
for ``style=="brief"`` show only first 2 lines.
78+
Parameters
79+
----------
80+
style : str, optional
81+
The usage display style.
8182
"""
8283
myname = Path(sys.argv[0]).name
8384
msg = __doc__.replace("vestaview", myname)

0 commit comments

Comments
 (0)