Skip to content

Commit

Permalink
fix pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamilcuk committed Jul 15, 2024
1 parent 65b9383 commit e11ae1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ python-dotenv>=0.21.1
packaging>=16.1
tabulate>=0.9.0
requests-toolbelt>=1.0.0
jinja2>=3.1.0
5 changes: 3 additions & 2 deletions src/nomad_tools/entry_githubrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
RUNNER_NAME = "{{ run.JOB_NAME }}"
RUNNER_SCOPE = "repo"
LABELS = "{{ run.LABELS }}"
RUN_AS_ROOT = "false"
{% if add.ephemeral == "true" %}
EPHEMERAL = "true"
{% endif %}
Expand Down Expand Up @@ -623,7 +624,7 @@ def get_gh_state(repos: Set[GithubRepo]) -> list[GithubJob]:
# nomad


class NomadJobCommon(dict):
class NomadJobCommon(DataDict):
def labelsstr(self) -> str:
return self["Meta"][CONFIG.nomad.meta + "_LABELS"]

Expand All @@ -645,7 +646,7 @@ class NomadJob(nomadlib.Job, NomadJobCommon):

@dataclass
class GithubRunnerState:
inactivu_since: Optional[datetime.datetime] = None
inactive_since: Optional[datetime.datetime] = None


class NomadRunner(nomadlib.JobsJob, NomadJobCommon):
Expand Down

0 comments on commit e11ae1b

Please sign in to comment.