Skip to content

refactor: Job dict object as Class #234

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

Merged
merged 38 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
25f9fe7
Create draft PR for #202
in03 Oct 18, 2022
40bbfd5
fix: Celery progress invalid type
in03 Oct 24, 2022
3b6ba0a
refactor: Add media pool index
in03 Oct 24, 2022
6fdbd08
build: Remove unused import
in03 Oct 24, 2022
a37d2d2
refactor: Add already registered exception
in03 Oct 24, 2022
d88de14
refactor: Add job class
in03 Oct 24, 2022
f2283d7
refactor: Add jobs class
in03 Oct 24, 2022
f27a69b
refactor(link.py): Use PyDavinci
in03 Oct 24, 2022
e47aa4b
refactor: new job classes replace dict
in03 Oct 24, 2022
2e42e28
refactor(resolve.py): Module reshuffle, pydavinci
in03 Oct 24, 2022
54bb07c
refactor: WIP - module-style single instance
in03 Oct 24, 2022
800762c
feat(settings): Add proxy suffix match criteria
in03 Oct 24, 2022
fba54ac
feat(settings): Add proxy preset nickname
in03 Oct 24, 2022
4efe145
refactor: Remove handlers module
in03 Oct 24, 2022
c993d93
build: Add own forked dependencies
in03 Oct 24, 2022
a77c075
refactor: Remove obvious default settings
in03 Oct 24, 2022
b105ecf
build: Export updated requirements.txt
in03 Oct 24, 2022
fe33e78
feat: Add typer Rich
in03 Oct 27, 2022
74a45f5
fix(tasks): Reject task if no metadata
in03 Oct 27, 2022
ab95cb1
fix(ffprobe): Raise instead of exit if no data
in03 Oct 27, 2022
d3fe20c
feat(utils): Add missing annotation
in03 Oct 27, 2022
80ee86d
feat: Add Celery reject
in03 Oct 27, 2022
ad7ce72
Merge branch 'feature/issue-202-Refactor-job-dict-object-as-Class' of…
in03 Oct 28, 2022
e18ff57
refactor: MVP classes everywhere
in03 Nov 3, 2022
77e0f3f
feat: Fully int job class queuer-side
in03 Nov 15, 2022
195d8bc
build: Export updated requirements.txt
in03 Nov 15, 2022
784cc01
feat: Job class int worker-side
in03 Nov 15, 2022
739f957
fix: Collision free path assertion error
in03 Nov 16, 2022
77086cc
docs: Add missing docstrings
in03 Nov 16, 2022
9b15696
Merge branch 'feature/issue-202-Refactor-job-dict-object-as-Class' of…
in03 Nov 16, 2022
40ac11c
refactor: Update version_constraint_key
in03 Nov 16, 2022
9e94d09
refactor: Restructure modules again
in03 Nov 16, 2022
1878b72
build: Move packages to src dir
in03 Nov 16, 2022
581611f
Merge branch 'feature/issue-202-Refactor-job-dict-object-as-Class' of…
in03 Nov 16, 2022
5f6fde5
build: Export updated requirements.txt
in03 Nov 16, 2022
a923f85
fix: VC key relative import
in03 Nov 16, 2022
f970aab
Merge branch 'feature/issue-202-Refactor-job-dict-object-as-Class' of…
in03 Nov 16, 2022
c181791
refactor: Update version_constraint_key
in03 Nov 16, 2022
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
4 changes: 4 additions & 0 deletions docs/User Guide/Installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reference
::: proxima.app.checks.WorkerCheck
handler: python

3 changes: 3 additions & 0 deletions docs/css/code_select.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.language-pycon .gp, .language-pycon .go { /* Generic.Prompt, Generic.Output */
user-select: none;
}
32 changes: 32 additions & 0 deletions docs/gen_ref_pages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""Generate the code reference pages."""

from pathlib import Path

import mkdocs_gen_files

nav = mkdocs_gen_files.Nav()

for path in sorted(Path("src").rglob("*.py")): #
module_path = path.relative_to("src").with_suffix("") #
doc_path = path.relative_to("src/docs").with_suffix(".md") #
full_doc_path = Path("reference", doc_path) #

parts = list(module_path.parts)

if parts[-1] == "__init__": #
parts = parts[:-1]
doc_path = doc_path.with_name("index.md")
full_doc_path = full_doc_path.with_name("index.md")
elif parts[-1] == "__main__":
continue

nav[parts] = doc_path.as_posix()

with mkdocs_gen_files.open(full_doc_path, "w") as fd: #
identifier = ".".join(parts) #
print("::: " + identifier, file=fd) #

mkdocs_gen_files.set_edit_path(full_doc_path, Path("../") / path) #

with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
nav_file.writelines(nav.build_literate_nav())
36 changes: 34 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ theme:

custom_dir: docs/overrides

nav:
- Code Reference: reference/poet


palette:
- media: "(prefers-color-scheme: light)"
scheme: default
Expand All @@ -36,12 +40,34 @@ theme:
- search.suggest
- search.highlight

nav:
- "My page": test.md

plugins:
- tags
- search
- termynal
- mkdocstrings:
default_handler: python
handlers:
python:
setup_commands:
- import sys
- sys.path.append("src")
rendering:
show_source: true

watch:
- src/proxima

- git-revision-date-localized:
enable_creation_date: true
- gen-files:
scripts:
- docs/gen_ref_pages.py
- literate-nav:
nav_file: SUMMARY.md
- section-index


extra:
version:
Expand All @@ -62,4 +88,10 @@ markdown_extensions:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.highlight:
use_pygments: true
pygments_lang_class: true

extra_css:
- css/code_select.css
Loading