-
Notifications
You must be signed in to change notification settings - Fork 14
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 #151 from bobleesj/recut-cov
Recut - codecov in PR, Codespell, release checklist
- Loading branch information
Showing
20 changed files
with
104 additions
and
94 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,14 @@ | ||
;; 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 | ||
|
||
;; library used for Python package release, no longer used | ||
rever |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release (GitHub/PyPI) | ||
name: Release (GitHub/PyPI) and Deploy Docs | ||
|
||
on: | ||
workflow_dispatch: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,7 @@ Basic PDFmorph Workflow | |
|
||
We are getting closer to an acceptably close fit to our data! | ||
|
||
8. Finally, we will examine the stretch factor. Provide an intial | ||
8. Finally, we will examine the stretch factor. Provide an initial | ||
guess by typing :: | ||
|
||
pdfmorph --scale=0.8 --smear=-0.08 --stretch=0.5 --rmin=1.5 --rmax=30 -a darkSub_rh20_C_01.gr darkSub_rh20_C_44.gr | ||
|
@@ -183,5 +183,5 @@ Enjoy the software! | |
Bug Reports | ||
----------- | ||
|
||
Please enjoy using our software! If you come accross any bugs in the | ||
Please enjoy using our software! If you come across any bugs in the | ||
application, please report them to [email protected] |
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 |
---|---|---|
|
@@ -150,7 +150,7 @@ Basic PDFmorph Workflow | |
|
||
We are getting closer to an acceptably close fit to our data! | ||
|
||
8. Finally, we will examine the stretch factor. Provide an intial | ||
8. Finally, we will examine the stretch factor. Provide an initial | ||
guess by typing :: | ||
|
||
pdfmorph --scale=0.8 --smear=-0.08 --stretch=0.5 --rmin=1.5 --rmax=30 -a darkSub_rh20_C_01.gr darkSub_rh20_C_44.gr | ||
|
@@ -193,7 +193,7 @@ Performing Multiple Morphs | |
|
||
It may be useful to morph a PDF against multiple targets: | ||
for example, you may want to morph a PDF against multiple PDFs measured | ||
at various temepratures to determine whether a phase change has occured. | ||
at various temperatures to determine whether a phase change has occurred. | ||
PDFmorph currently allows users to morph a PDF against all files in a | ||
selected directory and plot resulting :math:`R_w` values from each morph. | ||
|
||
|
@@ -285,7 +285,7 @@ Currently, the supported nanoparticle shapes include: spheres and spheroids. | |
|
||
pdfmorph Ni_bulk.gr Ni_nano_spheroid.cgr --radius=12 --pradius=6 -a | ||
|
||
Note that the equitorial radius corresponds to the ``--radius`` parameter and polar radius to ``--pradius``. | ||
Note that the equatorial radius corresponds to the ``--radius`` parameter and polar radius to ``--pradius``. | ||
3. Remove the ``-a`` tag to refine. | ||
|
||
There is also support for morphing from a nanoparticle to a bulk. When applying the inverse morphs, | ||
|
@@ -294,5 +294,5 @@ it is recommended to set ``--rmax=psize`` where ``psize`` is the longest diamete | |
Bug Reports | ||
=========== | ||
|
||
Please enjoy using our software! If you come accross any bugs in the | ||
Please enjoy using our software! If you come across any bugs in the | ||
application, please report them to [email protected]. |
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,24 @@ | ||
**Added:** | ||
|
||
* Spelling check via Codespell in pre-commit | ||
* Coverage report in each PR | ||
|
||
**Changed:** | ||
|
||
* <news item> | ||
|
||
**Deprecated:** | ||
|
||
* <news item> | ||
|
||
**Removed:** | ||
|
||
* <news item> | ||
|
||
**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 |
---|---|---|
|
@@ -11,10 +11,10 @@ authors = [ | |
maintainers = [ | ||
{ name="Simon J.L. Billinge group", email="[email protected]" }, | ||
] | ||
description = "Tools for manipulating and comparing PDF profiles" | ||
description = "Python package for manipulating and comparing PDF profiles" | ||
keywords = ['diffpy', 'pdf', 'data interpretation'] | ||
readme = "README.rst" | ||
requires-python = ">=3.10, <3.14" | ||
requires-python = ">=3.11, <3.14" | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
|
@@ -25,7 +25,6 @@ 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', | ||
|
@@ -49,12 +48,17 @@ dirty_template = "{tag}" | |
[tool.setuptools.packages.find] | ||
where = ["src"] # list of folders that contain the packages (["."] by default) | ||
include = ["*"] # package names should match these glob patterns (["*"] by default) | ||
exclude = ["tests"] # exclude packages matching these glob patterns (empty by default) | ||
exclude = [] # exclude packages matching these glob patterns (empty by default) | ||
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,*agr" | ||
|
||
[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
Oops, something went wrong.