Skip to content

Commit

Permalink
Merge pull request #48 from 6809/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jedie authored Sep 24, 2024
2 parents 2c64e8f + 238479a commit f4098af
Show file tree
Hide file tree
Showing 27 changed files with 765 additions and 698 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.11", "3.10", "3.9"]
python-version: ["3.12", "3.11"]
steps:
- name: Checkout
run: |
Expand All @@ -26,7 +26,7 @@ jobs:
git checkout $GITHUB_SHA || (git fetch && git checkout $GITHUB_SHA)
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
# https://github.com/marketplace/actions/setup-python
with:
python-version: '${{ matrix.python-version }}'
Expand All @@ -51,9 +51,9 @@ jobs:
run: |
./dev-cli.py --help
- name: 'Safety'
- name: 'Run pip-audit'
run: |
./dev-cli.py safety
./dev-cli.py pip-audit
- name: 'Run tests with Python v${{ matrix.python-version }}'
env:
Expand All @@ -63,7 +63,7 @@ jobs:
./dev-cli.py coverage
- name: 'Upload coverage report'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
# https://github.com/marketplace/actions/codecov
with:
fail_ci_if_error: false
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ __pycache__
!.editorconfig
!.flake8
!.gitignore
!.pre-commit-config.yaml
!.pre-commit-hooks.yaml
!.gitkeep
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# pre-commit plugin configuration
# See https://pre-commit.com for more information
default_install_hook_types:
- pre-commit
- post-rewrite
- pre-push

repos:
- repo: https://github.com/jedie/cli-base-utilities
rev: v0.11.0
hooks:
- id: update-readme-history
13 changes: 13 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://pre-commit.com/#creating-new-hooks
- id: update-readme-history
name: cli-base-utilities
description: >-
Update history in README.md from git log.
entry: "python -m cli_base update-readme-history -v"
language: python
language_version: python3
require_serial: true
pass_filenames: false
always_run: true
verbose: true
stages: [pre-commit, post-rewrite, pre-push]
3 changes: 2 additions & 1 deletion MC6809/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
MC6809 CPU emulator written in Python
"""

__version__ = '0.7.2'
# See https://packaging.python.org/en/latest/specifications/version-specifiers/
__version__ = '0.7.3'
__author__ = 'Jens Diemer <[email protected]>'
6 changes: 1 addition & 5 deletions MC6809/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"""


from MC6809.cli import cli_app


def main():
cli_app.main()
from MC6809.cli_app import main


if __name__ == '__main__':
Expand Down
Empty file removed MC6809/cli/__init__.py
Empty file.
113 changes: 0 additions & 113 deletions MC6809/cli/cli_app.py

This file was deleted.

Loading

0 comments on commit f4098af

Please sign in to comment.