Skip to content

Commit

Permalink
Merge branch 'materialsvirtuallab:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo authored May 24, 2024
2 parents b8f3726 + 7568d6a commit e860e29
Show file tree
Hide file tree
Showing 14 changed files with 349 additions and 96 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.4.3
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -24,7 +24,7 @@ repos:
exclude: ^tests

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.10.0
hooks:
- id: mypy

Expand All @@ -37,7 +37,7 @@ repos:
additional_dependencies: [tomli] # needed to read pyproject.toml below py3.11

- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.0
rev: v0.16.2
hooks:
- id: cython-lint
args: [--no-pycodestyle]
Expand All @@ -49,7 +49,7 @@ repos:
- id: blacken-docs

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
rev: v0.40.0
hooks:
- id: markdownlint
# MD013: line too long
Expand Down
4 changes: 2 additions & 2 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ GEM
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.19.0)
nokogiri (1.16.2-arm64-darwin)
nokogiri (1.16.5-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
nokogiri (1.16.5-x86_64-linux)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change log

## 2024.5.15
- Reimplemented support for pickle in MSONAble. (@matthewcarbone)

## 2024.4.17
- Revert changes to json.py for now.

Expand Down
3 changes: 0 additions & 3 deletions docs/monty.functools.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,10 @@ becomes
The decorated main accepts two new arguments:

> prof_file: Name of the output file with profiling data
> ```none
> If not given, a temporary file is created.
> ```
> sortby: Profiling data are sorted according to this value.
> ```none
> default is “time”. See sort_stats.
> ```
Expand Down
1 change: 0 additions & 1 deletion docs/monty.os.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ performing some tasks, and returns to the original working directory
afterwards. E.g.,

> with cd(“/my/path/”):
> ```none
> do_something()
> ```
Expand Down
2 changes: 0 additions & 2 deletions docs/monty.re.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ A powerful regular expression version of grep.
* **Returns**

> {key1: [[[matches…], lineno], [[matches…], lineno],
> ```none
> [[matches…], lineno], …],
> ```
> key2: …}
For reverse reads, the lineno is given as a -ve number. Please note
Expand Down
2 changes: 1 addition & 1 deletion monty/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2014, The Materials Virtual Lab"
__version__ = "2024.4.17"
__version__ = "2024.5.15"
__maintainer__ = "Shyue Ping Ong"
__email__ = "ongsp@ucsd.edu"
__date__ = "Oct 12 2020"
2 changes: 1 addition & 1 deletion monty/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, func: Callable) -> None:
func: Function to decorate.
"""
self.__func = func
wraps(self.__func)(self)
wraps(self.__func)(self) # type: ignore

def __get__(self, inst: Any, inst_cls) -> Any:
if inst is None:
Expand Down
Loading

0 comments on commit e860e29

Please sign in to comment.