-
Notifications
You must be signed in to change notification settings - Fork 1
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 #73 from bobleesj/scikit-package
Apply `scikit-package` v0.1.0 to `cifkit` - autoamtic docformatter, prettier, codespell
- Loading branch information
Showing
72 changed files
with
657 additions
and
1,152 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
coverage: | ||
status: | ||
project: # more options at https://docs.codecov.com/docs/commit-status | ||
default: | ||
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,20 @@ | ||
;; 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 | ||
|
||
;; indide is chemical name | ||
indide | ||
|
||
;; used as a date | ||
nd | ||
|
||
;; chemical | ||
te |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: Release (GitHub/PyPI) | ||
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: | ||
permissions: | ||
contents: write | ||
uses: bobleesj/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0 | ||
uses: Billingegroup/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0 | ||
with: | ||
project: cifkit | ||
c_extension: false | ||
github_admin_username: bobleesj | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,29 +12,27 @@ jobs: | |
strategy: | ||
max-parallel: 5 | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
python-version: ["3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Create virtual environment and install dependencies | ||
run: | | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install . | ||
- name: Test with pytest and generate coverage report | ||
run: | | ||
source venv/bin/activate | ||
pip install pytest pytest-cov | ||
python -m pytest -m "not pyvista" --cov=./ --cov-report=xml | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Create virtual environment and install dependencies | ||
run: | | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install . | ||
- name: Test with pytest and generate coverage report | ||
run: | | ||
source venv/bin/activate | ||
pip install pytest pytest-cov | ||
python -m pytest -m "not pyvista" --cov=./ --cov-report=xml | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[settings] | ||
# Keep import statement below line_length character limit | ||
line_length = 90 | ||
multi_line_output = 3 | ||
include_trailing_comma = True |
Oops, something went wrong.