Skip to content

Commit 0b25216

Browse files
authored
Merge pull request #3 from ycexiao/refine-batch
chore: migrate the refinement functionality
2 parents 7efd61d + 77f1d90 commit 0b25216

64 files changed

Lines changed: 408535 additions & 252 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 14 additions & 14 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,46 +21,46 @@ 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.3.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:
5252
- tomli
5353
# prettier - multi formatter for .json, .yml, and .md files
5454
- repo: https://github.com/pre-commit/mirrors-prettier
55-
rev: f12edd9c7be1c20cfa42420fd0e6df71e42b51ea # frozen: v4.0.0-alpha.8
55+
rev: v4.0.0-alpha.8
5656
hooks:
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+
types: [yaml, markdown, json]
61+
# ruff - An extremely fast Python linter and code formatter, written in Rust.
62+
- repo: https://github.com/astral-sh/ruff-pre-commit
63+
rev: v0.15.12
6364
hooks:
64-
- id: docformatter
65-
additional_dependencies: [tomli]
66-
args: [--in-place, --config, ./pyproject.toml]
65+
- id: ruff-check
66+
args: [--fix, --config=pyproject.toml]

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# diffpy.batchpdfsuite
2+
3+
Here is a quick tutorial on how to locally install the package.
4+
5+
## How to install `diffpy.batchpdfsuite` locally
6+
7+
Create and activate a new conda environment:
8+
9+
```bash
10+
conda create -n diffpy.batchpdfsuite_env python=3.13 pip
11+
conda activate diffpy.batchpdfsuite_env
12+
```
13+
14+
### Install `diffpy.apps` dependency
15+
16+
```bash
17+
git clone https://github.com/diffpy/diffpy.apps
18+
cd diffpy.apps
19+
conda install --file requirements/conda.txt
20+
pip install .
21+
```
22+
23+
### Install `diffpy.batchpdfsuite`
24+
25+
It's simple. The only command required is the following:
26+
27+
```bash
28+
git clone https://github.com/diffpy/diffpy.batchpdfsuite
29+
cd diffpy.batchpdfsuite
30+
conda install --file requirements/conda.txt
31+
pip install .
32+
```
33+
34+
> The above command will automatically install the dependencies listed in `requirements/pip.txt`.
35+
36+
## Verify your package has been installed
37+
38+
Verify the installation:
39+
40+
```bash
41+
pip list
42+
```
43+
44+
Great! The package is now importable in any Python scripts located on your local machine.

README.rst

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)