Skip to content

Commit ff3d608

Browse files
author
Chris Elion
authored
Redo dotnet format (#5119)
1 parent f7d6dc3 commit ff3d608

File tree

4 files changed

+7
-27
lines changed

4 files changed

+7
-27
lines changed

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
- uses: actions/setup-dotnet@v1
2020
with:
2121
dotnet-version: '3.1.x'
22-
- run: dotnet tool install -g dotnet-format --version 4.1.131201
2322
- uses: pre-commit/[email protected]
2423

2524
markdown-link-check:

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ repos:
8383
types: [markdown]
8484
exclude: ".*localized.*"
8585

86+
- repo: https://github.com/dotnet/format
87+
rev: "7e343070a0355c86f72bdee226b5e19ffcbac931" # TODO - update to a tagged version when one that includes the hook is ready.
88+
hooks:
89+
- id: dotnet-format
90+
args: [--folder, --include]
91+
8692
# "Local" hooks, see https://pre-commit.com/#repository-local-hooks
8793
- repo: local
8894
hooks:
@@ -119,4 +125,3 @@ repos:
119125
name: validate release links
120126
language: script
121127
entry: utils/validate_release_links.py
122-

com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static AgentInfoActionPairProto ToInfoActionPairProto(this AgentInfo ai)
6060
/// <returns>The protobuf version of the AgentInfo.</returns>
6161
public static AgentInfoProto ToAgentInfoProto(this AgentInfo ai)
6262
{
63-
if(ai.groupId > 0)
63+
if (ai.groupId > 0)
6464
{
6565
var trainerCanHandle = Academy.Instance.TrainerCapabilities == null || Academy.Instance.TrainerCapabilities.MultiAgentGroups;
6666
if (!trainerCanHandle)

utils/run_dotnet_format.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)