Skip to content
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

Dev #48

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Dev #48

Show file tree
Hide file tree
Changes from all commits
Commits
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
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 <git@jensdiemer.de>'
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
Loading