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 fc1ef33
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 291 deletions.
8 changes: 3 additions & 5 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 All @@ -34,7 +33,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
- uses: wagoid/commitlint-github-action@v5

test:
name: Run Tests
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

94 changes: 0 additions & 94 deletions README.md.bak

This file was deleted.

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
11 changes: 0 additions & 11 deletions pypeline.yaml.bak

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ version_variables = [
"src/ihexer/__init__.py:__version__",
"docs/conf.py:release",
]
build_command = "poetry build"
build_command = "pip install poetry && poetry build"

[tool.semantic_release.changelog]
exclude_commit_patterns = [
Expand Down
159 changes: 0 additions & 159 deletions pyproject.toml.bak

This file was deleted.

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 fc1ef33

Please sign in to comment.