Skip to content

Commit

Permalink
Merge pull request #47 from 8bitsam/cookie-mod-files-v2
Browse files Browse the repository at this point in the history
Cookiecutting - modify files v2
  • Loading branch information
sbillinge authored Jul 26, 2024
2 parents ec98080 + 7750f1a commit abe80bf
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 20 deletions.
35 changes: 35 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# codecov can find this file anywhere in the repo, so we don't need to clutter
# the root folder.
#comment: false

fixes:
- ".*/site-packages/::src/"

codecov:
notify:
require_ci_to_pass: no

coverage:
status:
patch:
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/
22 changes: 13 additions & 9 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Configuration of the coverage.py tool for reporting test coverage.

[run]
source =
diffpy.pdffit2
omit =
## exclude debug.py from codecov report
*/tests/debug.py
[report]
omit =
*/python?.?/*
*/site-packages/nose/*
# ignore _version.py and versioneer.py
.*version.*
*_version.py
# RE patterns for lines to be excluded from consideration.
exclude_lines =
## Have to re-enable the standard pragma
Expand All @@ -13,10 +23,4 @@ exclude_lines =
## Don't complain if non-runnable code isn't run:
^[ ]*@unittest.skip\b
^[ ]{4}unittest.main()
if __name__ == .__main__.:


[run]
omit =
## exclude debug.py from codecov report
*/tests/debug.py
if __name__ == '__main__':
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
conda activate test
conda install --file requirements/run.txt
conda install --file requirements/test.txt
pip install -e .
pip install .
- name: Validate diffpy.pdffit2
shell: bash -l {0}
run: |
Expand Down
28 changes: 18 additions & 10 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
recursive-include diffpy *
recursive-exclude diffpy *.py[co] *.so
recursive-include libpdffit2 *.[ch]*
recursive-include pdffit2module *.[ch]*
recursive-include examples *
include AUTHORS.txt LICENSE*.txt README*
include Makefile
prune libpdffit2/tests
recursive-include src/diffpy *
recursive-exclude src/diffpy *.py[co] *.so
recursive-include docs *.rst conf.py Makefile make.bat

recursive-include src/extensions/libpdffit2 *.[ch]*
recursive-include src/extensions/pdffit2module *.[ch]*
recursive-include src/examples *
include AUTHORS.rst
include diffpy.pdffit2/version.py
include LICENSE.rst
include README.rst
include requirements/
prune src/extensions/libpdffit2/tests
global-exclude .gitattributes .gitignore .gitarchive.cfg
global-exclude .DS_Store
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

# If including data files in the package, add them like:
# include path/to/data_file

# Avoid user content in setup.cfg to make distribution reproducible.
exclude setup.cfg

# Exclude git-tracked files spuriously added by setuptools_scm
exclude .coveragerc
exclude .travis*
prune conda-recipe
prune devutils
prune doc
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit abe80bf

Please sign in to comment.