Skip to content

Commit 322e918

Browse files
Merge pull request #24 from HERA-Team/logging-args
feat: add profiler args
2 parents 8bf794b + fd432c1 commit 322e918

11 files changed

Lines changed: 1283 additions & 700 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- { python: "3.10", os: "ubuntu-latest", session: "pre-commit" }
16-
- { python: "3.10", os: "ubuntu-latest", session: "safety" }
15+
- { python: "3.11", os: "ubuntu-latest", session: "pre-commit" }
16+
- { python: "3.11", os: "ubuntu-latest", session: "safety" }
1717
#- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
1818
#- { python: "3.9", os: "ubuntu-latest", session: "mypy" }
1919
#- { python: "3.8", os: "ubuntu-latest", session: "mypy" }
@@ -24,9 +24,9 @@ jobs:
2424
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
2525
- { python: "3.10", os: "windows-latest", session: "tests" }
2626
- { python: "3.10", os: "macos-latest", session: "tests" }
27-
- { python: "3.10", os: "ubuntu-latest", session: "typeguard" }
28-
- { python: "3.10", os: "ubuntu-latest", session: "xdoctest" }
29-
- { python: "3.10", os: "ubuntu-latest", session: "docs-build" }
27+
#- { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
28+
- { python: "3.11", os: "ubuntu-latest", session: "xdoctest" }
29+
- { python: "3.11", os: "ubuntu-latest", session: "docs-build" }
3030

3131
env:
3232
NOXSESSION: ${{ matrix.session }}
@@ -119,7 +119,7 @@ jobs:
119119
- name: Set up Python
120120
uses: actions/setup-python@v4.6.1
121121
with:
122-
python-version: "3.10"
122+
python-version: "3.11"
123123

124124
- name: Upgrade pip
125125
run: |

noxfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
package = "hera_cli_utils"
2626
python_versions = ["3.11", "3.10", "3.9", "3.8"]
2727
nox.needs_version = ">= 2021.6.6"
28+
# typeguardwon't work until we can have typeguard >= 3.0
29+
# (since it needs the suppress_type_checks())
2830
nox.options.sessions = (
2931
"pre-commit",
3032
"safety",
3133
"mypy",
3234
"tests",
33-
"typeguard",
35+
# "typeguard",
3436
"xdoctest",
3537
"docs-build",
3638
)
@@ -186,7 +188,7 @@ def coverage(session: Session) -> None:
186188
def typeguard(session: Session) -> None:
187189
"""Runtime type checking using Typeguard."""
188190
session.install(".")
189-
session.install("pytest", "typeguard", "pygments")
191+
session.install("pytest", "typeguard>=3.0", "pygments")
190192
session.run("pytest", f"--typeguard-packages={package}", *session.posargs)
191193

192194

poetry.lock

Lines changed: 524 additions & 390 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hera-cli-utils"
3-
version = "0.0.1"
3+
version = "0.1.0"
44
description = "HERA CLI Utils"
55
authors = ["Steven Murray <steven.g.murray@asu.edu>"]
66
license = "MIT"
@@ -20,6 +20,7 @@ python = "^3.7"
2020
click = ">=8.0.1"
2121
rich = "^13.4.2"
2222
psutil = "^5.9.5"
23+
line-profiler = "^4.0.3"
2324

2425
[tool.poetry.dev-dependencies]
2526
Pygments = ">=2.10.0"
@@ -60,7 +61,7 @@ tests = ["tests", "*/tests"]
6061

6162
[tool.coverage.run]
6263
branch = true
63-
source = ["hera_cli_utils", "tests"]
64+
source = ["hera_cli_utils"]
6465

6566
[tool.coverage.report]
6667
show_missing = true

0 commit comments

Comments
 (0)