Skip to content

Commit

Permalink
restrict to pydantic for pythno3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamilcuk committed Oct 20, 2024
1 parent 4cadca9 commit 9c87986
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/githubrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
nomad:
namespace: github
# purge: false
purge: true
# purge: true
runner_inactivity_timeout: 1w
loop: 10
# loop: 60
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ python-dotenv>=0.21.1
packaging>=16.1
requests-toolbelt>=1.0.0
jinja2>=3.1.0
pydantic>=2.9.2
pydantic<2
4 changes: 2 additions & 2 deletions src/nomad_tools/entry_githubrunner/entry_githubrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def cli(args: Args):
configstr = f.read()
tmp = yaml.safe_load(configstr)
global CONFIG
CONFIG = Config.model_validate(tmp, strict=True)
CONFIG = Config(**tmp)
global PARSEDCONFIG
PARSEDCONFIG = ParsedConfig(CONFIG)
global GH
Expand Down Expand Up @@ -1173,7 +1173,7 @@ def purgealldead():
@cli.command(help="Dump the configuration")
@click.option("usejson", "-j", "--json", is_flag=True)
def dumpconfig(usejson: bool):
tmp = CONFIG.model_dump()
tmp = CONFIG.dict()
if usejson:
print(json.dumps(tmp))
else:
Expand Down

0 comments on commit 9c87986

Please sign in to comment.