Skip to content

Commit

Permalink
WIP: mkdocs
Browse files Browse the repository at this point in the history
docs: update docstrings for proper indentation

tests: move tests to their own directory
  • Loading branch information
nh13 committed Jun 26, 2024
1 parent 19e9369 commit 0b748bf
Show file tree
Hide file tree
Showing 57 changed files with 1,311 additions and 1,017 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Python package

on: [push]
env:
POETRY_VERSION: 1.5
POETRY_VERSION: 1.8

jobs:
testing:
Expand Down Expand Up @@ -80,9 +80,12 @@ jobs:
shell: bash
run: |
set -euo pipefail
pushd docs
poetry run make html
popd
poetry run mkdocs build --strict
- name: Create RTD preview
uses: readthedocs/actions/preview@v1
with:
project-slug: "fgpyo"

- name: Upload code coverage
uses: codecov/[email protected]
Expand Down
13 changes: 5 additions & 8 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
sphinx:
configuration: docs/conf.py
python: "3.11"
mkdocs:
configuration: mkdocs.yml
python:
install:
- method: pip
path: .
extra_requirements:
- docs
install:
- requirements: docs/requirements.txt
3 changes: 2 additions & 1 deletion ci/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ banner "Executing in conda environment ${CONDA_DEFAULT_ENV} in directory fgpyo"
run "Style Checking" "ruff format fgpyo"
run "Linting" "ruff check --fix fgpyo"
run "Type Checking" "mypy -p fgpyo --config $parent/mypy.ini"
run "Unit Tests" "python -m pytest -vv -r sx fgpyo"
run "Unit Tests" "python -m pytest -vv -r sx tests"
run "Make docs" "poetry run mkdocs build --strict"

if [ -z "$failures" ]; then
banner "Checks Passed"
Expand Down
88 changes: 0 additions & 88 deletions docs/Makefile

This file was deleted.

107 changes: 0 additions & 107 deletions docs/api.rst

This file was deleted.

Loading

0 comments on commit 0b748bf

Please sign in to comment.