Skip to content

Commit 05b15ce

Browse files
committed
Apply precomit
1 parent 3987b18 commit 05b15ce

File tree

4 files changed

+45
-3
lines changed

4 files changed

+45
-3
lines changed

.pre-commit-config.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
default_language_version:
2+
python: python3
3+
ci:
4+
autofix_commit_msg: |
5+
[pre-commit.ci] auto fixes from pre-commit hooks
6+
autofix_prs: true
7+
autoupdate_branch: 'pre-commit-autoupdate'
8+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
9+
autoupdate_schedule: monthly
10+
skip: [no-commit-to-branch]
11+
submodules: false
12+
repos:
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v4.6.0
15+
hooks:
16+
- id: check-yaml
17+
- id: end-of-file-fixer
18+
- id: trailing-whitespace
19+
exclude: '\.(rst|txt)$'
20+
- repo: https://github.com/psf/black
21+
rev: 24.4.2
22+
hooks:
23+
- id: black
24+
- repo: https://github.com/pycqa/flake8
25+
rev: 7.0.0
26+
hooks:
27+
- id: flake8
28+
- repo: https://github.com/pycqa/isort
29+
rev: 5.13.2
30+
hooks:
31+
- id: isort
32+
args: ["--profile", "black"]
33+
- repo: https://github.com/kynan/nbstripout
34+
rev: 0.7.1
35+
hooks:
36+
- id: nbstripout
37+
- repo: https://github.com/pre-commit/pre-commit-hooks
38+
rev: v4.4.0
39+
hooks:
40+
- id: no-commit-to-branch
41+
name: Prevent Commit to Main Branch
42+
args: ["--branch", "main"]
43+
stages: [pre-commit]

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ Before contribuing, please read our `Code of Conduct <https://github.com/diffpy/
158158
Contact
159159
-------
160160

161-
For more information on diffpy.pdffit2 please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at [email protected].
161+
For more information on diffpy.pdffit2 please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at [email protected].

doc/source/api/diffpy.pdffit2.rst

-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ diffpy.pdffit2.ipy_ext module
3434
:members:
3535
:undoc-members:
3636
:show-inheritance:
37-

src/diffpy/pdffit2/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
# package version
2121
from diffpy.pdffit2.output import redirect_stdout
22-
from diffpy.pdffit2.version import __version__, __date__
2322
from diffpy.pdffit2.pdffit import PdfFit
2423
from diffpy.pdffit2.pdffit2 import is_element
24+
from diffpy.pdffit2.version import __date__, __version__
2525

2626
# silence the pyflakes syntax checker
2727
assert __version__ or True

0 commit comments

Comments
 (0)