Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JuReMq committed Jan 13, 2025
1 parent ad3560b commit cfc35b3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 25 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:
pull_request:
branches: [develop]


workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
Expand Down Expand Up @@ -114,4 +113,3 @@ jobs:
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

2 changes: 0 additions & 2 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: [develop]
paths: [".github/**"]


jobs:
labels:
runs-on: ubuntu-latest
Expand All @@ -19,4 +18,3 @@ jobs:
run: pip install labels
- name: Sync config with Github
run: labels -u ${{ github.repository_owner }} -t ${{ secrets.GITHUB_TOKEN }} sync -f .github/labels.toml

24 changes: 12 additions & 12 deletions pypeline.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pipeline:
install:
- step: CreateVEnv
module: pypeline.steps.create_venv
config:
bootstrap_script: .bootstrap/bootstrap.py
build:
- step: RunPreCommit
file: steps/build.py
- step: RunPytest
file: steps/build.py
- step: GenerateDocs
file: steps/build.py
install:
- step: CreateVEnv
module: pypeline.steps.create_venv
config:
bootstrap_script: .bootstrap/bootstrap.py
build:
- step: RunPreCommit
file: steps/build.py
- step: RunPytest
file: steps/build.py
- step: GenerateDocs
file: steps/build.py
6 changes: 3 additions & 3 deletions src/ihexer/_run.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
Used to run ihex from the command line when run from this repository.
Used to run ihexer from the command line when run from this repository.
This is required because ihex module is not visible when running from the repository.
This is required because ihexer module is not visible when running from the repository.
"""

import runpy
import sys
from pathlib import Path

sys.path.insert(0, Path(__file__).parent.parent.absolute().as_posix())
runpy.run_module("ihex.main", run_name="__main__")
runpy.run_module("ihexer.main", run_name="__main__")
6 changes: 3 additions & 3 deletions src/ihexer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from py_app_dev.core.exceptions import UserNotificationException
from py_app_dev.core.logging import logger, setup_logger, time_it

from ihex import __version__
from ihex.ihex import IntelHexDiff, IntelHexParser, IntelHexPrinter
from ihexer import __version__
from ihexer.ihexer import IntelHexDiff, IntelHexParser, IntelHexPrinter

package_name = "ihex"
package_name = "ihexer"

app = typer.Typer(name=package_name, help="Intel HEX utils.", no_args_is_help=True)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ihex.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

from ihex.ihex import IntelHexParser, IntelHexPrinter, IntelHexSegment
from ihexer.ihexer import IntelHexParser, IntelHexPrinter, IntelHexSegment
from tests.utils import get_tests_data_file


Expand Down

0 comments on commit cfc35b3

Please sign in to comment.