Skip to content

Commit

Permalink
[Feat]: Add Conductor Model Based on IEEE Std 738™-2023 (#1)
Browse files Browse the repository at this point in the history
* Add conductor model
  • Loading branch information
claudezss committed Apr 20, 2024
1 parent b5e710b commit 281be9d
Show file tree
Hide file tree
Showing 14 changed files with 489 additions and 13 deletions.
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

0 comments on commit 281be9d

Please sign in to comment.