Skip to content

Commit 1e3d023

Browse files
Re-cookiecut (#89)
* Move tests folder to top * Revert commit * Add codecov, remove gitattributes * Add test tests * Add .gitignore and precommit * Add MANIFEST * Add pyproject.toml * Add authors * Add requirements * Add readme * Add doc * Add 2023 to copyright in doc * Add 2023 to license.rst * [pre-commit.ci] auto fixes from pre-commit hooks * Add newds * Remove null in matrix codecov * Remove null in matrix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c7d4910 commit 1e3d023

21 files changed

+142
-107
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ coverage:
2020
target: auto
2121
if_no_uploads: error
2222
if_not_found: success
23-
if_ci_failed: failure
23+
if_ci_failed: error
2424
paths: '!*/tests/.*'
2525

2626
tests:

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ omit =
66
*/python?.?/*
77
*/site-packages/nose/*
88
# ignore _version.py and versioneer.py
9-
*version.*
9+
.*version.*
1010
*_version.py
1111

1212
exclude_lines =

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/check-news-item.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
check-news-item:
9+
build:
1010
uses: Billingegroup/release-scripts/.github/workflows/_check-news-item.yml@v0
1111
with:
1212
project: diffpy.snmf

.github/workflows/matrix-and-codecov-on-merge-to-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14-
CI:
14+
coverage:
1515
uses: Billingegroup/release-scripts/.github/workflows/_matrix-and-codecov-on-merge-to-main.yml@v0
1616
with:
1717
project: diffpy.snmf

.github/workflows/publish-docs-on-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
publish-docs-on-release:
10+
docs:
1111
uses: Billingegroup/release-scripts/.github/workflows/_publish-docs-on-release.yml@v0
1212
with:
1313
project: diffpy.snmf

.github/workflows/tests-on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
tests-on-pr:
11+
validate:
1212
uses: Billingegroup/release-scripts/.github/workflows/_tests-on-pr.yml@v0
1313
with:
1414
project: diffpy.snmf

.gitignore

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ lib64/
2020
parts/
2121
sdist/
2222
var/
23+
venv/
2324
*.egg-info/
2425
.installed.cfg
2526
*.egg
27+
bin/
28+
temp/
29+
tags/
30+
errors.err
2631

2732
# PyInstaller
2833
# Usually these files are written by a python script from a template
@@ -33,6 +38,7 @@ var/
3338
# Installer logs
3439
pip-log.txt
3540
pip-delete-this-directory.txt
41+
MANIFEST
3642

3743
# Unit test / coverage reports
3844
htmlcov/
@@ -49,48 +55,45 @@ coverage.xml
4955
*.mo
5056
*.pot
5157

58+
# Mr Developer
59+
.mr.developer.cfg
60+
.project
61+
.pydevproject
62+
5263
# Django stuff:
5364
*.log
54-
local_settings.py
55-
56-
# Flask stuff:
57-
instance/
58-
.webassets-cache
59-
60-
# Scrapy stuff:
61-
.scrapy
6265

6366
# Sphinx documentation
64-
docs/_build/
67+
docs/build/
68+
docs/source/generated/
69+
70+
# pytest
71+
.pytest_cache/
6572

6673
# PyBuilder
6774
target/
6875

69-
# IPython Notebook
70-
.ipynb_checkpoints
71-
72-
# pyenv
73-
.python-version
76+
# Editor files
77+
# mac
78+
.DS_Store
79+
*~
7480

75-
# celery beat schedule file
76-
celerybeat-schedule
81+
# vim
82+
*.swp
83+
*.swo
7784

78-
# dotenv
79-
.env
85+
# pycharm
86+
.idea/
8087

81-
# virtualenv
82-
venv/
83-
ENV/
88+
# VSCode
89+
.vscode/
8490

85-
# Spyder project settings
86-
.spyderproject
91+
# Ipython Notebook
92+
.ipynb_checkpoints
8793

88-
# Rope project settings
89-
.ropeproject
94+
# version information
95+
setup.cfg
96+
/src/diffpy/*/version.cfg
9097

91-
# pycharm
92-
.idea/
93-
# Mac
94-
.DS_Store
9598
# Rever
9699
rever/

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ repos:
1616
- id: check-yaml
1717
- id: end-of-file-fixer
1818
- id: trailing-whitespace
19-
exclude: '\.(rst|txt)$'
19+
- id: check-case-conflict
20+
- id: check-merge-conflict
21+
- id: check-toml
22+
- id: check-added-large-files
2023
- repo: https://github.com/psf/black
2124
rev: 24.4.2
2225
hooks:

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Authors
22
=======
33

4-
Billinge Group and community contibutors.
4+
Billinge Group and community contributors.
55

66
Contributors
77
------------

0 commit comments

Comments
 (0)