Skip to content

Commit

Permalink
Redo dotnet format (#5119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Elion committed Mar 16, 2021
1 parent f7d6dc3 commit ff3d608
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pre-commit.yml
Expand Up @@ -19,7 +19,6 @@ jobs:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- run: dotnet tool install -g dotnet-format --version 4.1.131201
- uses: pre-commit/action@v2.0.0

markdown-link-check:
Expand Down
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Expand Up @@ -83,6 +83,12 @@ repos:
types: [markdown]
exclude: ".*localized.*"

- repo: https://github.com/dotnet/format
rev: "7e343070a0355c86f72bdee226b5e19ffcbac931" # TODO - update to a tagged version when one that includes the hook is ready.
hooks:
- id: dotnet-format
args: [--folder, --include]

# "Local" hooks, see https://pre-commit.com/#repository-local-hooks
- repo: local
hooks:
Expand Down Expand Up @@ -119,4 +125,3 @@ repos:
name: validate release links
language: script
entry: utils/validate_release_links.py

2 changes: 1 addition & 1 deletion com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
Expand Up @@ -60,7 +60,7 @@ public static AgentInfoActionPairProto ToInfoActionPairProto(this AgentInfo ai)
/// <returns>The protobuf version of the AgentInfo.</returns>
public static AgentInfoProto ToAgentInfoProto(this AgentInfo ai)
{
if(ai.groupId > 0)
if (ai.groupId > 0)
{
var trainerCanHandle = Academy.Instance.TrainerCapabilities == null || Academy.Instance.TrainerCapabilities.MultiAgentGroups;
if (!trainerCanHandle)
Expand Down
24 changes: 0 additions & 24 deletions utils/run_dotnet_format.py

This file was deleted.

0 comments on commit ff3d608

Please sign in to comment.