-
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.
* misc lint improvements * just use ruff * more lint fixes * fix test * fix project scripts * fix lint
- Loading branch information
Showing
19 changed files
with
673 additions
and
349 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 |
---|---|---|
@@ -1,68 +1,67 @@ | ||
--- | ||
name: Python package | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
check-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11", "3.12", "3.13"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up UV cache | ||
if: runner.os == 'Linux' | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/uv | ||
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }} | ||
restore-keys: ${{ runner.os }}-uv- | ||
- name: Install UV | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Run tests | ||
run: uv run project.py test cov --no-report | ||
- name: Run lint | ||
run: uv run project.py lint style types | ||
- name: Upload coverage | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-${{ matrix.python-version }} | ||
path: ${{ github.workspace }}/.coverage | ||
include-hidden-files: true | ||
- name: Build dist | ||
run: uv build | ||
check-coverage: | ||
runs-on: ubuntu-latest | ||
needs: check-tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Set up UV cache | ||
if: runner.os == 'Linux' | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/uv | ||
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }} | ||
restore-keys: ${{ runner.os }}-uv- | ||
- name: Download coverage | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: coverage-3.12 | ||
- run: git fetch origin main | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install UV | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Check coverage | ||
run: uv run project.py test cov --no-test | ||
check-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11", "3.12", "3.13"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up UV cache | ||
if: runner.os == 'Linux' | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/uv | ||
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }} | ||
restore-keys: ${{ runner.os }}-uv- | ||
- name: Install UV | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Run tests | ||
run: uv run project.py cov --no-report | ||
- name: Run lint | ||
run: uv run project.py lint | ||
- name: Upload coverage | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-${{ matrix.python-version }} | ||
path: ${{ github.workspace }}/.coverage | ||
include-hidden-files: true | ||
- name: Build dist | ||
run: uv build | ||
check-coverage: | ||
runs-on: ubuntu-latest | ||
needs: check-tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 50 | ||
- name: Set up UV cache | ||
if: runner.os == 'Linux' | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/uv | ||
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }} | ||
restore-keys: ${{ runner.os }}-uv- | ||
- name: Download coverage | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: coverage-3.12 | ||
- run: git fetch origin main | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install UV | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Check coverage | ||
run: uv run project.py cov --no-test |
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 |
---|---|---|
@@ -1,83 +1,77 @@ | ||
--- | ||
site_author: Ryan Morshead | ||
site_description: A modern dependency injection framework for Python. | ||
site_name: PyBooster | ||
docs_dir: src | ||
|
||
repo_url: https://github.com/rmorshea/pybooster | ||
|
||
nav: | ||
- Home: index.md | ||
- Concepts: concepts.md | ||
- Recipes: recipes.md | ||
- Integrations: integrations.md | ||
- Examples: examples.md | ||
- Reference: reference.md | ||
|
||
- Home: index.md | ||
- Concepts: concepts.md | ||
- Recipes: recipes.md | ||
- Integrations: integrations.md | ||
- Examples: examples.md | ||
- Reference: reference.md | ||
theme: | ||
name: material | ||
icon: | ||
repo: fontawesome/brands/git-alt | ||
logo: material/needle | ||
features: | ||
- content.code.copy | ||
palette: | ||
# Palette toggle for automatic mode | ||
- media: "(prefers-color-scheme)" | ||
toggle: | ||
icon: material/brightness-auto | ||
name: Switch to light mode | ||
name: material | ||
icon: | ||
repo: fontawesome/brands/git-alt | ||
logo: material/needle | ||
features: [content.code.copy, toc.integrate] | ||
palette: | ||
# Palette toggle for automatic mode | ||
- media: (prefers-color-scheme) | ||
toggle: | ||
icon: material/brightness-auto | ||
name: Switch to light mode | ||
# Palette toggle for light mode | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
toggle: | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
- media: '(prefers-color-scheme: light)' | ||
scheme: default | ||
toggle: | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
# Palette toggle for dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
toggle: | ||
icon: material/brightness-4 | ||
name: Switch to system preference | ||
|
||
- media: '(prefers-color-scheme: dark)' | ||
scheme: slate | ||
toggle: | ||
icon: material/brightness-4 | ||
name: Switch to system preference | ||
plugins: | ||
- search | ||
- open-in-new-tab | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
import: | ||
- https://docs.sqlalchemy.org/en/latest/objects.inv | ||
options: | ||
load_external_modules: true | ||
docstring_style: google | ||
members_order: alphabetical | ||
merge_init_into_class: true | ||
separate_signature: true | ||
show_labels: false | ||
show_object_full_path: true | ||
show_root_heading: true | ||
show_signature_annotations: true | ||
show_source: true | ||
show_submodules: true | ||
show_symbol_type_heading: true | ||
show_symbol_type_toc: true | ||
signature_crossrefs: true | ||
|
||
- search | ||
- open-in-new-tab | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
import: [https://docs.sqlalchemy.org/en/latest/objects.inv] | ||
options: | ||
load_external_modules: true | ||
docstring_style: google | ||
members_order: alphabetical | ||
merge_init_into_class: true | ||
separate_signature: true | ||
show_labels: false | ||
show_object_full_path: true | ||
show_root_heading: true | ||
show_signature_annotations: true | ||
show_source: true | ||
show_submodules: true | ||
show_symbol_type_heading: true | ||
show_symbol_type_toc: true | ||
signature_crossrefs: true | ||
markdown_extensions: | ||
- pymdownx.highlight: | ||
anchor_linenums: true | ||
line_spans: __span | ||
pygments_lang_class: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.snippets | ||
- pymdownx.superfences: | ||
custom_fences: | ||
- name: mermaid | ||
class: mermaid | ||
format: !!python/name:pymdownx.superfences.fence_code_format | ||
- admonition | ||
- pymdownx.details | ||
- pymdownx.superfences | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:material.extensions.emoji.twemoji | ||
emoji_generator: !!python/name:material.extensions.emoji.to_svg | ||
- pymdownx.highlight: | ||
anchor_linenums: true | ||
line_spans: __span | ||
pygments_lang_class: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.snippets | ||
- pymdownx.superfences: | ||
custom_fences: | ||
- name: mermaid | ||
class: mermaid | ||
format: !!python/name:pymdownx.superfences.fence_code_format | ||
- admonition | ||
- pymdownx.details | ||
- pymdownx.superfences | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:material.extensions.emoji.twemoji | ||
emoji_generator: !!python/name:material.extensions.emoji.to_svg |
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.