Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #156

Closed
wants to merge 31 commits into from
Closed

Test #156

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c8f5320
De-clutter template
FakeApate May 6, 2024
56c7e7c
Remove docs - document in code and autogenerate in pipeline
FakeApate May 6, 2024
675ce1c
Update Workflow
FakeApate May 6, 2024
cd38b59
Clean Pyproject
FakeApate May 6, 2024
729b82d
pdm lock
FakeApate May 6, 2024
404b38b
update ignore
FakeApate May 6, 2024
278f23f
Take over license
FakeApate May 6, 2024
6759b46
More stuff
FakeApate May 6, 2024
021bd74
Removing devcontainer
FakeApate May 7, 2024
c46a350
Changes to be committed:
FakeApate May 7, 2024
3ec7f94
add version
FakeApate May 7, 2024
581a870
remove ci
FakeApate May 7, 2024
936c583
update values
FakeApate May 7, 2024
999ca1a
added toml parsing
FakeApate May 7, 2024
26fa130
fix cmd not found
FakeApate May 7, 2024
abbc8e3
add pdm and apidoc command
FakeApate May 7, 2024
8e3dc4c
disable cache
FakeApate May 7, 2024
a8b722b
change glob
FakeApate May 7, 2024
bf7bf5d
set python version for sphinx
FakeApate May 7, 2024
baae701
Disable checkout
FakeApate May 7, 2024
2a9339a
Simplify workflow
FakeApate May 7, 2024
a9d1b22
Created docs dependencies group
FakeApate May 7, 2024
e16f635
Set theme to rtd
FakeApate May 7, 2024
654d352
Fix wrong env location
FakeApate May 7, 2024
10001f0
Set custom build options
FakeApate May 7, 2024
cb51ba5
Add theme to pyproject.toml
FakeApate May 7, 2024
10f227e
Fix build option
FakeApate May 7, 2024
7599c38
fix: spelling
FakeApate May 8, 2024
f16cf91
fix: linting
FakeApate May 8, 2024
39fdf1b
change frequency
FakeApate May 8, 2024
8307efc
add linting workflow
FakeApate May 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .devcontainer/Dockerfile

This file was deleted.

44 changes: 0 additions & 44 deletions .devcontainer/devcontainer.json

This file was deleted.

48 changes: 28 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
reviewers:
- dciborow
allow:
- dependency-type: direct
- dependency-type: indirect
commit-message:
prefix: "fix: "
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
time: "13:00"
commit-message:
prefix: "fix: "
- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
reviewers:
- RedNoodlesOrg/python-team
allow:
- dependency-type: direct
- dependency-type: indirect
commit-message:
prefix: "fix: "
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
time: "13:00"
commit-message:
prefix: "fix: "
open-pull-requests-limit: 10
reviewers:
- RedNoodlesOrg/actions-team
21 changes: 0 additions & 21 deletions .github/template-sync.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/CI.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/publish.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check pull request

on:
pull_request:
types: [opened, reopened, synchronize]
branches: main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Setup PDM
id: pdm_setup
uses: pdm-project/[email protected]
with:
python-version-file: "pyproject.toml"
- name: Install dependencies
run: pdm install --group dev

- name: Cache pre-commit
uses: actions/[email protected]
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Run pre-commit
run: pre-commit run --all-files
25 changes: 0 additions & 25 deletions .github/workflows/schedule-update-actions.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/semantic-pr-check.yml

This file was deleted.

44 changes: 40 additions & 4 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,53 @@ name: Deploy Sphinx documentation to Pages

on:
push:
branches: [main] # branch to trigger deployment
branches: [main]

jobs:
pages:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- id: deployment
uses: sphinx-notes/pages@v3
- uses: actions/[email protected]

- name: Setup PDM
id: pdm_setup
uses: pdm-project/[email protected]
with:
python-version-file: "pyproject.toml"

- name: Install dependencies
run: pdm install --group docs

- name: Read pyproject.toml
run: |
echo "PROJECT_VERSION=$(yq eval '.project.version' pyproject.toml)" >> $GITHUB_ENV
echo "PROJECT_AUTHOR=$(yq eval '.project.authors[0].name' pyproject.toml)" >> $GITHUB_ENV
echo "PROJECT_NAME=$(yq eval '.project.name' pyproject.toml)" >> $GITHUB_ENV
echo "SPHINX_THEME=$(yq eval '.tool.project-customizations.docs.theme' pyproject.toml)" >> $GITHUB_ENV

- name: Create docs
run: |
pdm run sphinx-apidoc --full \
--ext-githubpages \
--ext-viewcode \
--ext-ifconfig \
--ext-todo \
--ext-autodoc \
--ext-intersphinx \
-H $PROJECT_NAME \
-A $PROJECT_AUTHOR \
-V $PROJECT_VERSION \
-o docs src/*/

- id: deployment
uses: sphinx-notes/pages@v3
with:
python_version: ${{ steps.pdm_setup.outputs.python-version }}
checkout: false
sphinx_build_options: -D html_theme=${{ env.SPHINX_THEME }}
12 changes: 0 additions & 12 deletions .github/workflows/template-sync.yml

This file was deleted.

39 changes: 36 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down Expand Up @@ -50,6 +49,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -72,6 +72,7 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -82,7 +83,9 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand All @@ -91,7 +94,24 @@ ipython_config.py
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm-project.org/#use-with-ide
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
Expand Down Expand Up @@ -127,3 +147,16 @@ dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
Loading
Loading