Skip to content

Commit

Permalink
refactor: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nfelt14 committed Aug 19, 2024
1 parent bc16988 commit e481e29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion actions/update-development-dependencies/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ requests==2.32.3 ; python_version >= "3.12" and python_version < "3.13"
requests-toolbelt==1.0.0 ; python_version >= "3.12" and python_version < "3.13"
ruyaml==0.91.0 ; python_version >= "3.12" and python_version < "3.13"
secretstorage==3.3.3 ; python_version >= "3.12" and python_version < "3.13" and sys_platform == "linux"
setuptools==72.2.0 ; python_version >= "3.12" and python_version < "3.13"
setuptools==73.0.0 ; python_version >= "3.12" and python_version < "3.13"
shellingham==1.5.4 ; python_version >= "3.12" and python_version < "3.13"
soupsieve==2.6 ; python_version >= "3.12" and python_version < "3.13"
toml==0.10.2 ; python_version >= "3.12" and python_version < "3.13"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def _update_pre_commit_dependencies(
python_executable: The path to the python executable to use.
repository_root_directory: The root directory of the repository.
"""
_run_cmd_in_subprocess(
f'git config --global --add safe.directory "{repository_root_directory}"'
)
# Update pre-commit config file
_run_cmd_in_subprocess(f'"{python_executable}" -m pre_commit autoupdate --freeze')

Expand Down Expand Up @@ -261,7 +264,6 @@ def main() -> None:
args = _parse_arguments()

print(f"\nUpdating development dependencies in {args.repo_root}")
print(f"Arguments: {args}\n")
os.chdir(args.repo_root)

_update_poetry_dependencies(
Expand All @@ -283,7 +285,6 @@ def main() -> None:


if __name__ == "__main__":
print("\n__main__\n")
# Handle GitHub Actions environment variables
# See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
if os.getenv("GITHUB_ACTION"):
Expand Down Expand Up @@ -314,5 +315,4 @@ def main() -> None:
sys.argv.extend(script_args)

# Run the main function
print("\nmain()\n")
main()

0 comments on commit e481e29

Please sign in to comment.