-
Notifications
You must be signed in to change notification settings - Fork 19
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
WIP - Minor improvements #229
Open
abanna
wants to merge
7
commits into
ublue-os:main
Choose a base branch
from
nerds-run:minor-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
408cd87
step one in refactor.
abanna c035934
sorry
abanna 44cefec
gonna try to move to rhel proper
abanna 56c2abb
hello, darkness my old friend
abanna b47fe8c
whoops not user system
abanna 14db70d
welcome page fix
abanna f102c7c
new stuff remove print
abanna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,7 @@ | ||
[distutils] | ||
index-servers = forgejo | ||
|
||
[forgejo] | ||
repository = https://things.com | ||
username = {username} | ||
password = {password} | ||
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
yafti | ||
abanna marked this conversation as resolved.
Show resolved
Hide resolved
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[yaftibox] | ||
image=ghcr.io/ublue-os/fedora-toolbox:latest | ||
additional_packages="just fastfetch redhat-lsb-core poetry black python3-isort python3-devel gtk3 gtk4 cairo-devel gobject-introspection-devel cairo-gobject-devel libadwaita-devel vte291-gtk4-devel" | ||
nvidia=false | ||
init=false | ||
pull=true | ||
root=false | ||
replace=true | ||
start_now=true |
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,3 @@ | ||
# Yet Another First Time Installer | ||
|
||
TODO add content for generated Github pages. |
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,111 @@ | ||
# justfile docs https://just.systems/man/en/ | ||
# justfile cheatsheet https://cheatography.com/linux-china/cheat-sheets/justfile/ | ||
set dotenv-load := true | ||
set export | ||
|
||
project := "yafti" | ||
host := `uname -a` | ||
python_exe := `which python` | ||
pip_exe := `which pip3` | ||
project_path := invocation_directory() | ||
module_path := join(project_path, 'yafti') | ||
|
||
### | ||
# need to add readme to docs and run a full suite of test etc | ||
# absolute_path parent_directory justfile_directory | ||
# https://github.com/python-poetry/poetry python package and venv manager. | ||
# https://unicode.org/emoji/charts/emoji-list.html#1fae1 emoji's | ||
### | ||
bt := '0' | ||
|
||
export RUST_BACKTRACE_1 := bt | ||
export JUST_LOG := "warn" | ||
|
||
sys-info: | ||
@echo '{{host}}' | ||
|
||
python: | ||
@echo 'Python:' `poetry run python --version` | ||
@echo 'Python Path:' `poetry env info` | ||
@echo 'Python Path:' `which python` | ||
# | ||
@dev deps="yes": | ||
pip install poetry pip --upgrade | ||
poetry install --with docs | ||
|
||
build deps="yes": (dev deps) | ||
@echo "building wheel" | ||
poetry build | ||
|
||
# set-hooks: dev | ||
# pre-commit | ||
# poetry run pre-commit install --install-hooks # uninstall: `pre-commit uninstall` | ||
|
||
unit-test deps="no": (dev deps) | ||
@echo 'unit-tests' | ||
poetry run pytest --cov={{ module_path}} --cov-report=term-missing | ||
|
||
type-checks deps="no": (dev deps) | ||
@echo 'type checking' | ||
poetry run mypy {{ module_path }} | ||
|
||
format deps="no": (dev deps) | ||
@echo 'black isort and ruff being called into action' | ||
poetry run black {{ module_path }} | ||
poetry run isort {{ module_path }} | ||
poetry run ruff check {{ module_path }} | ||
|
||
# TODO: i like flake8 | ||
#lint deps="no": (dev deps) | ||
# @echo "linting code base" | ||
# poetry run flake8 {{ module_path }} \ | ||
# --max-line-length 100 \ | ||
# --ignore=F401,E731,F403,E501,W503 \ | ||
# --count | ||
|
||
coverage-report: | ||
@echo "Building test coverage report" | ||
# poetry run pytest --cov=yafti --cov-report=term-missing | ||
poetry run pytest --cov={{ module_path }} --cov-config=.coveragerc --cov-report html | ||
|
||
sphinx deps="no": (dev deps) | ||
@echo "Building application documentation" | ||
mkdir -p docs/html | ||
touch docs/.nojekyll | ||
cd docs/ && poetry run sphinx-build -b html . _build | ||
cp -r docs/_build/* docs/html | ||
|
||
docs deps="no": (dev deps) | ||
@echo "Run auto build and start http server." | ||
poetry run sphinx-autobuild docs docs/_build/html | ||
|
||
run deps="no": (dev deps) | ||
# not sure why GTK_IM_MODULE is required in the distrobox. I need to test on a physical installation. | ||
export GTK_IM_MODULE=ibus | ||
# poetry run python -m {{ project }}.cli start tests/bazzite.yaml --debug -f | ||
poetry run python -m {{ project }}.cli start tests/bluefin.yml --debug -f | ||
# poetry run python -m {{ project }}.cli start tests/example.yml --debug | ||
|
||
create-distrobox: | ||
distrobox-assemble create --file {{ project_path }}/distrobox.ini | ||
|
||
enter-distrobox: | ||
distrobox-enter yaftibox | ||
|
||
help: | ||
just -l | ||
|
||
|
||
### | ||
# Need to add a just command for glib-compile-schemas | ||
### | ||
|
||
### | ||
# Add just command for running act local github runners | ||
### | ||
|
||
### | ||
# gnome extension mangement. | ||
# https://github.com/essembeh/gnome-extensions-cli/ | ||
### | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this file is for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local pypi server template. will remove if you want.