Skip to content

Commit

Permalink
CLI: Remove dunder calls and shebangs from external entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Feb 6, 2025
1 parent bea21e3 commit 3929788
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions ifsbench/cli/nml_diff.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

# (C) Copyright 2020- ECMWF.
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
Expand Down Expand Up @@ -83,6 +81,3 @@ def cli(color, namelist1, namelist2):
diff = namelist_diff(nml1, nml2)
if diff:
print_diff(diff)

if __name__ == "__main__":
cli() # pylint: disable=no-value-for-parameter
6 changes: 0 additions & 6 deletions ifsbench/cli/pack.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

# (C) Copyright 2020- ECMWF.
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
Expand Down Expand Up @@ -186,7 +184,3 @@ def unpack_experiment(ctx, input_dir, output_dir, verify_checksum, with_ifsdata,
header('Reading %s...', summary_file)
ExperimentFiles.from_tarball(summary_file, input_dir, output_dir, ifsdata_dir=ifsdata_dir,
with_ifsdata=inplace_ifsdata, verify_checksum=verify_checksum)


if __name__ == "__main__":
cli(obj={}) # pylint: disable=unexpected-keyword-arg,no-value-for-parameter

0 comments on commit 3929788

Please sign in to comment.