-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from pyjanitor-devs/infra-docs
Infra + docs
- Loading branch information
Showing
44 changed files
with
1,137 additions
and
513 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,76 @@ | ||
# Publish documentation | ||
name: documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# See: https://github.com/marketplace/actions/setup-miniconda | ||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
miniforge-variant: Mambaforge | ||
environment-file: environment.yml | ||
use-mamba: true | ||
|
||
- name: Install pyjviz | ||
# use editable mode to avoid _pytest.pathlib.ImportPathMismatchError | ||
run: pip install -e . | ||
|
||
- name: Build docs | ||
run: mkdocs build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: website | ||
path: site/ | ||
|
||
- name: Docs preview | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: "./site" | ||
production-deploy: false | ||
github-token: ${{ secrets.GHPAGES_TOKEN }} | ||
deploy-message: "Deploy from GitHub Actions" | ||
enable-pull-request-comment: true | ||
enable-commit-comment: false | ||
overwrites-pull-request-comment: true | ||
alias: deploy-preview-${{ github.event.number }} | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 1 | ||
|
||
- name: Deploy website | ||
if: ${{ github.event_name == 'push' }} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
# https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-personal-access-token-personal_token | ||
personal_token: ${{ secrets.GHPAGES_TOKEN }} | ||
publish_dir: ./site/ | ||
publish_branch: gh-pages | ||
# destination_dir: manuscript | ||
allow_empty_commit: false | ||
keep_files: false | ||
force_orphan: true | ||
enable_jekyll: false | ||
disable_nojekyll: false |
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,35 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
args: [--config, pyproject.toml] | ||
# - repo: https://github.com/pycqa/isort | ||
# rev: 5.11.2 | ||
# hooks: | ||
# - id: isort | ||
# name: isort (python) | ||
- repo: https://github.com/econchick/interrogate | ||
rev: 1.5.0 | ||
hooks: | ||
- id: interrogate | ||
args: [-c, pyproject.toml] | ||
- repo: https://github.com/terrencepreilly/darglint | ||
rev: v1.8.1 | ||
hooks: | ||
- id: darglint | ||
args: [-v 2] # this config makes the error messages a bit less cryptic. | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--exclude, nbconvert_config.py] |
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 @@ | ||
{ | ||
"editor.rulers": [ | ||
79 | ||
] | ||
} |
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
Empty file.
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 |
---|---|---|
|
@@ -31,4 +31,4 @@ | |
<td>800.0</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> |
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 |
---|---|---|
|
@@ -27,4 +27,4 @@ | |
<td>675.0</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> |
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 |
---|---|---|
|
@@ -33,4 +33,4 @@ | |
<td>675.0</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> |
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 |
---|---|---|
|
@@ -27,4 +27,4 @@ | |
<td>675.0</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> |
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 |
---|---|---|
|
@@ -27,4 +27,4 @@ | |
<td>675.0</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> |
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 |
---|---|---|
|
@@ -38,4 +38,4 @@ | |
<td>675.0</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> |
File renamed without changes
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,18 @@ | ||
name: pyjviz | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.9 | ||
- rdflib | ||
- graphviz | ||
- python-graphviz | ||
- pandas | ||
- pandas-flavor | ||
- black | ||
- mypy | ||
- flake8 | ||
- mkdocs | ||
- pre-commit | ||
- mkdocs-material | ||
- mkdocstrings | ||
- pymdown-extensions |
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.