FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: updated pre-commit hook dependencies by SYMSCAE · Pull Request #386 · diffpy/diffpy.utils · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (4) .rst  (1) .yaml  (1) All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ repos:
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 26.3.1
rev: 26.5.1
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 8.0.1
rev: 9.0.0a3
hooks:
- id: isort
args: ["--profile", "black"]
Expand Down Expand Up @@ -59,7 +59,7 @@ repos:
- "prettier@^3.2.4"
# docformatter - PEP 257 compliant docstring formatter
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.7
rev: v1.7.8
hooks:
- id: docformatter
additional_dependencies: [tomli]
Expand Down
23 changes: 23 additions & 0 deletions news/dependency-update.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* No news needed: updating docformatter, isort and black. Not user facing.

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
1 change: 0 additions & 1 deletion src/diffpy/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Blank namespace package.
"""


from pkgutil import extend_path

__path__ = extend_path(__path__, __name__)
Expand Down
9 changes: 4 additions & 5 deletions src/diffpy/utils/parsers/serialization.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ def serialize_data(
show_path=True,
serial_file=None,
):
"""Serialize file data into a dictionary. Can also save dictionary
into a serial language file. Dictionary is formatted as {filename:
data}.
"""Serialize file data into a dictionary.

Can also save dictionary into a serial language file.
Dictionary is formatted as {filename:data}.

Requires hdata and data_table (can be generated by load_data).

Expand Down Expand Up @@ -67,7 +68,6 @@ def serialize_data(
dict:
Returns the dictionary loaded from/into the updated database file.
"""

# compile data_table and hddata together
data = {}

Expand Down Expand Up @@ -191,7 +191,6 @@ def deserialize_data(filename, filetype=None):
dict
A dictionary read from a serial file.
"""

# check if supported type
f = pathlib.Path(filename)
f_name = f.name
Expand Down
1 change: 0 additions & 1 deletion src/diffpy/utils/resampler.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def resample(r, s, dr):
-------
Returns resampled ``(r, s)``.
"""

warnings.warn(
(
"The 'resample' function is deprecated and will be removed "
Expand Down
5 changes: 3 additions & 2 deletions src/diffpy/utils/wx/gridutils.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def getSelectedCells(grid):


def limitSelectionToRows(grid, indices):
"""Limit selection to the specified row indices. No action for empty
indices.
"""Limit selection to the specified row indices.

No action for empty indices.

Parameters
----------
Expand Down
Loading

Back | FazBrowse Home | New Git URL