-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from bobleesj/recut-codecov
Recut - support Py3.13, add checklist, codespell
- Loading branch information
Showing
18 changed files
with
163 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,34 +1,14 @@ | ||
# codecov can find this file anywhere in the repo, so we don't need to clutter | ||
# the root folder. | ||
#comment: false | ||
|
||
codecov: | ||
notify: | ||
require_ci_to_pass: no | ||
|
||
coverage: | ||
status: | ||
patch: | ||
project: # more options at https://docs.codecov.com/docs/commit-status | ||
default: | ||
target: '70' | ||
if_no_uploads: error | ||
if_not_found: success | ||
if_ci_failed: failure | ||
project: | ||
default: false | ||
library: | ||
target: auto | ||
if_no_uploads: error | ||
if_not_found: success | ||
if_ci_failed: error | ||
paths: '!*/tests/.*' | ||
|
||
tests: | ||
target: 97.9% | ||
paths: '*/tests/.*' | ||
if_not_found: success | ||
|
||
flags: | ||
tests: | ||
paths: | ||
- tests/ | ||
target: auto # use the coverage from the base commit, fail if coverage is lower | ||
threshold: 0% # allow the coverage to drop by | ||
|
||
comment: | ||
layout: " diff, flags, files" | ||
behavior: default | ||
require_changes: false | ||
require_base: false # [true :: must have a base report to post] | ||
require_head: false # [true :: must have a head report to post] | ||
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage] |
This file contains 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,2 @@ | ||
;; Please include filenames and explanations for each ignored line. | ||
;; See https://docs.openverse.org/meta/codespell.html for docs. |
This file contains 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,17 @@ | ||
;; Please include explanations for each ignored word (lowercase). | ||
;; See https://docs.openverse.org/meta/codespell.html for docs. | ||
|
||
;; abbreviation for "materials" often used in a journal title | ||
mater | ||
|
||
;; alternative use of socioeconomic | ||
socio-economic | ||
|
||
;; Frobenius norm used in np.linalg.norm | ||
fro | ||
|
||
;; class name within distutils module | ||
ccompiler | ||
|
||
;; structure file format | ||
discus |
This file was deleted.
Oops, something went wrong.
This file contains 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,16 @@ | ||
--- | ||
name: Bug Report or Feature Request | ||
about: Report a bug or suggest a new feature! | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
### Problem | ||
|
||
<!-- | ||
For a bug report, please copy and paste any error messages from the application or command-line here. | ||
For a feature request, please state how the new functionality could benefit the community. | ||
--> | ||
|
||
### Proposed solution |
This file contains 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,44 @@ | ||
--- | ||
name: Release | ||
about: Checklist and communication channel for PyPI and GitHub release | ||
title: "Ready for <version-number> PyPI/GitHub release" | ||
labels: "release" | ||
assignees: "" | ||
--- | ||
|
||
### PyPI/GitHub rc-release preparation checklist: | ||
|
||
- [ ] All PRs/issues attached to the release are merged. | ||
- [ ] All the badges on the README are passing. | ||
- [ ] License information is verified as correct. If you are unsure, please comment below. | ||
- [ ] Locally rendered documentation contains all appropriate pages, including API references (check no modules are | ||
missing), tutorials, and other human written text is up-to-date with any changes in the code. | ||
- [ ] Installation instructions in the README, documentation and on the website (e.g., diffpy.org) are updated. | ||
- [ ] Successfully run any tutorial examples or do functional testing with the latest Python version. | ||
- [ ] Grammar and writing quality are checked (no typos). | ||
|
||
Please mention @sbillinge here when you are ready for PyPI/GitHub release. Include any additional comments necessary, such as version information and details about the pre-release here: | ||
|
||
### PyPI/GitHub full-release preparation checklist: | ||
- [ ] Create a new conda environment and install the rc from pypi (`pip install <package-name>=??`) | ||
- [ ] License information at Pypi is verified as correct. | ||
- [ ] Docs deployed successfully to `<package-name>.github.io` | ||
- [ ] Successfully run all tests, tutorial examples or do functional testing | ||
|
||
Please let @sbillinge know that all checks are done and package is ready for full release. | ||
|
||
### conda-forge release preparation checklist: | ||
|
||
<!-- After @sbillinge releases the PyPI package, please check the following when creating a PR for conda-forge release.--> | ||
|
||
- [ ] Ensure that the full release has appeared on Pypi successfully | ||
- [ ] New package dependencies listed in `conda.txt` and `test.txt` are added to `meta.yaml` in the feedstock. | ||
- [ ] Close any open issues on the feedstock. Reach out to @bobleesj if you have questions | ||
- [ ] let @sbillinge and @bobleesj when this is ready | ||
|
||
### Post-release checklist | ||
|
||
<!-- Before closing this issue, please complete the following: --> | ||
|
||
- [ ] Run tutorial examples and conduct functional testing using the installation guide in the README. Attach screenshots/results as comments. | ||
- [ ] Documentation (README, tutorials, API references, and websites) is deployed without broken links or missing figures. |
This file contains 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,16 @@ | ||
name: Release (GitHub/PyPI) and Deploy Docs | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '*' # Trigger on all tags initially, but tag and release privilege are verified in _build-wheel-release-upload.yml | ||
|
||
jobs: | ||
release: | ||
uses: Billingegroup/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0 | ||
with: | ||
project: diffpy.pdffit2 | ||
secrets: | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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:** | ||
|
||
* Python 3.13 support | ||
|
||
**Changed:** | ||
|
||
* <news item> | ||
|
||
**Deprecated:** | ||
|
||
* <news item> | ||
|
||
**Removed:** | ||
|
||
* Python 3.10 support | ||
|
||
**Fixed:** | ||
|
||
* <news item> | ||
|
||
**Security:** | ||
|
||
* <news item> |
This file contains 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 |
---|---|---|
|
@@ -12,9 +12,9 @@ maintainers = [ | |
{ name="Simon J.L. Billinge group", email="[email protected]" }, | ||
] | ||
description = "PDFfit2 - real space structure refinement program." | ||
keywords = ['PDF structure refinement'] | ||
keywords = ["PDF", "structure refinement"] | ||
readme = "README.rst" | ||
requires-python = ">=3.10" | ||
requires-python = ">=3.11, <3.14" | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
|
@@ -25,9 +25,9 @@ classifiers = [ | |
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Programming Language :: Python :: 3.13', | ||
'Topic :: Scientific/Engineering :: Physics', | ||
'Topic :: Scientific/Engineering :: Chemistry', | ||
] | ||
|
@@ -51,6 +51,11 @@ namespaces = false # to disable scanning PEP 420 namespaces (true by default) | |
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements/pip.txt"]} | ||
|
||
[tool.codespell] | ||
exclude-file = ".codespell/ignore_lines.txt" | ||
ignore-words = ".codespell/ignore_words.txt" | ||
skip = "*.cif,*.dat,*.cc,*.h" | ||
|
||
[tool.black] | ||
line-length = 115 | ||
include = '\.pyi?$' | ||
|
This file contains 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