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

[Feat]: Add Conductor Model Based on IEEE Std 738™-2023 #1

Merged
merged 4 commits into from
Apr 20, 2024
Merged
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
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test,dev]

- name: Lint
run: |
pre-commit install
pre-commit run --all-files
# - name: Lint
# run: |
# pre-commit install
# pre-commit run --all-files

- name: Test with pytest
run: |
python -m pytest -s tests --cov=heizer --cov-report=xml --junit-xml=report.xml
python -m pytest -s tests --cov=pyohm --cov-report=xml --junit-xml=report.xml

build_and_upload_doc:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
repos:
- repo: https://github.com/PyCQA/flake8
rev: '6.0.0'
rev: '7.0.0'
hooks:
- id: flake8
args: [--max-line-length=120]
- repo: https://github.com/psf/black
rev: '23.3.0'
rev: '24.4.0'
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: '5.12.0'
rev: '5.13.2'
hooks:
- id: isort
name: isort
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.3.0'
rev: 'v1.9.0'
hooks:
- id: mypy
args: ["--config-file", "pyproject.toml"]
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions pyohm/models/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Base:
name: str

unit_mapping: dict[str, str]

def __repr__(self) -> str:
return str(self.name)
Loading
Loading