GitHub
4 年前
当前提交
e7916b08
共有 88 个文件被更改,包括 377 次插入 和 311 次删除
-
18.circleci/config.yml
-
6.pre-commit-config.yaml
-
2DevProject/Assets/ML-Agents/Scripts/Tests/Performance/SensorPerformanceTests.cs
-
2Project/Assets/ML-Agents/Editor/DisableBurstFromMenu.cs
-
18Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs
-
2Project/Assets/ML-Agents/Examples/FoodCollector/Scripts/FoodCollectorSettings.cs
-
10Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/AdjustTrainingTimescale.cs
-
4Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/DirectionIndicator.cs
-
14Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/JointDriveController.cs
-
20Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/ModelOverrider.cs
-
6Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/Monitor.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/OrientationCubeController.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/ProjectSettingsOverrides.cs
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/SensorBase.cs
-
8Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/TargetController.cs
-
6Project/Assets/ML-Agents/Examples/Startup/Scripts/Startup.cs
-
14Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs
-
12Project/Assets/ML-Agents/Examples/Worm/Scripts/WormAgent.cs
-
2com.unity.ml-agents.extensions/Runtime/Sensors/ArticulationBodyJointExtractor.cs
-
2com.unity.ml-agents.extensions/Runtime/Sensors/ArticulationBodyPoseExtractor.cs
-
2com.unity.ml-agents.extensions/Runtime/Sensors/ArticulationBodySensorComponent.cs
-
4com.unity.ml-agents.extensions/Runtime/Sensors/PhysicsBodySensor.cs
-
4com.unity.ml-agents.extensions/Runtime/Sensors/PhysicsSensorSettings.cs
-
10com.unity.ml-agents.extensions/Runtime/Sensors/PoseExtractor.cs
-
2com.unity.ml-agents.extensions/Runtime/Sensors/RigidBodyJointExtractor.cs
-
4com.unity.ml-agents.extensions/Runtime/Sensors/RigidBodyPoseExtractor.cs
-
4com.unity.ml-agents.extensions/Runtime/Sensors/RigidBodySensorComponent.cs
-
2com.unity.ml-agents.extensions/Tests/Editor/Sensors/ArticulationBodyPoseExtractorTests.cs
-
2com.unity.ml-agents.extensions/Tests/Editor/Sensors/ArticulationBodySensorTests.cs
-
10com.unity.ml-agents.extensions/Tests/Editor/Sensors/PoseExtractorTests.cs
-
2com.unity.ml-agents.extensions/Tests/Editor/Sensors/RigidBodyPoseExtractorTests.cs
-
3com.unity.ml-agents.extensions/Tests/Runtime/RuntimeExampleTest.cs
-
1com.unity.ml-agents/CHANGELOG.md
-
7com.unity.ml-agents/CONTRIBUTING.md
-
2com.unity.ml-agents/Editor/DemonstrationImporter.cs
-
16com.unity.ml-agents/Runtime/Academy.cs
-
2com.unity.ml-agents/Runtime/Actuators/ActionSegment.cs
-
2com.unity.ml-agents/Runtime/Actuators/ActionSpec.cs
-
6com.unity.ml-agents/Runtime/Actuators/IActionReceiver.cs
-
2com.unity.ml-agents/Runtime/Actuators/VectorActuator.cs
-
10com.unity.ml-agents/Runtime/Agent.cs
-
2com.unity.ml-agents/Runtime/Agent.deprecated.cs
-
6com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
-
36com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs
-
2com.unity.ml-agents/Runtime/Communicator/UnityRLCapabilities.cs
-
20com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs
-
2com.unity.ml-agents/Runtime/Policies/BrainParameters.cs
-
2com.unity.ml-agents/Runtime/Policies/HeuristicPolicy.cs
-
14com.unity.ml-agents/Runtime/Sampler.cs
-
4com.unity.ml-agents/Runtime/Sensors/CameraSensor.cs
-
14com.unity.ml-agents/Runtime/Sensors/CameraSensorComponent.cs
-
2com.unity.ml-agents/Runtime/Sensors/ObservationWriter.cs
-
4com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensor.cs
-
2com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponentBase.cs
-
2com.unity.ml-agents/Runtime/Sensors/Reflection/BoolReflectionSensor.cs
-
2com.unity.ml-agents/Runtime/Sensors/Reflection/FloatReflectionSensor.cs
-
2com.unity.ml-agents/Runtime/Sensors/Reflection/IntReflectionSensor.cs
-
10com.unity.ml-agents/Runtime/Sensors/Reflection/ObservableAttribute.cs
-
2com.unity.ml-agents/Runtime/Sensors/Reflection/QuaternionReflectionSensor.cs
-
6com.unity.ml-agents/Runtime/Sensors/Reflection/ReflectionSensorBase.cs
-
2com.unity.ml-agents/Runtime/Sensors/Reflection/Vector2ReflectionSensor.cs
-
2com.unity.ml-agents/Runtime/Sensors/Reflection/Vector3ReflectionSensor.cs
-
2com.unity.ml-agents/Runtime/Sensors/Reflection/Vector4ReflectionSensor.cs
-
6com.unity.ml-agents/Runtime/Sensors/RenderTextureSensor.cs
-
10com.unity.ml-agents/Runtime/Sensors/RenderTextureSensorComponent.cs
-
3com.unity.ml-agents/Runtime/SideChannels/EnvironmentParametersChannel.cs
-
8com.unity.ml-agents/Runtime/Timer.cs
-
42com.unity.ml-agents/Tests/Editor/Actuators/ActuatorDiscreteActionMaskTests.cs
-
42com.unity.ml-agents/Tests/Editor/Actuators/ActuatorManagerTests.cs
-
12com.unity.ml-agents/Tests/Editor/Actuators/VectorActuatorTests.cs
-
4com.unity.ml-agents/Tests/Editor/DemonstrationTests.cs
-
8com.unity.ml-agents/Tests/Editor/DiscreteActionOutputApplierTest.cs
-
12com.unity.ml-agents/Tests/Editor/MLAgentsEditModeTest.cs
-
8com.unity.ml-agents/Tests/Editor/ModelRunnerTest.cs
-
8com.unity.ml-agents/Tests/Editor/MultinomialTest.cs
-
12com.unity.ml-agents/Tests/Editor/ParameterLoaderTest.cs
-
4com.unity.ml-agents/Tests/Editor/SamplerTests.cs
-
10com.unity.ml-agents/Tests/Editor/Sensor/CameraSensorTest.cs
-
2com.unity.ml-agents/Tests/Editor/Sensor/FloatVisualSensorTests.cs
-
2com.unity.ml-agents/Tests/Editor/Sensor/ObservableAttributeTests.cs
-
6com.unity.ml-agents/Tests/Editor/Sensor/ObservationWriterTests.cs
-
2com.unity.ml-agents/Tests/Editor/Sensor/SensorShapeValidatorTests.cs
-
36com.unity.ml-agents/Tests/Editor/Sensor/StackingSensorTests.cs
-
22com.unity.ml-agents/Tests/Editor/Sensor/VectorSensorTests.cs
-
14com.unity.ml-agents/Tests/Editor/UtilitiesTests.cs
-
24utils/run_dotnet_format.py
-
0/.editorconfig
|
|||
#!/usr/bin/env python3 |
|||
|
|||
import argparse |
|||
import os |
|||
import subprocess |
|||
import tempfile |
|||
|
|||
|
|||
if __name__ == "__main__": |
|||
|
|||
parser = argparse.ArgumentParser() |
|||
parser.add_argument("files", nargs="*") |
|||
args = parser.parse_args() |
|||
|
|||
with tempfile.TemporaryDirectory() as tempdir: |
|||
# Could potentially hit the commandline limit, so write files to a response file |
|||
# See https://github.com/dotnet/format/issues/699 |
|||
resp_file = os.path.join(tempdir, "response.txt") |
|||
with open(resp_file, "w") as fp: |
|||
for f in args.files: |
|||
fp.write(f + "\n") |
|||
|
|||
subprocess_args = ["dotnet", "format", "--folder", "--include", f"@{resp_file}"] |
|||
subprocess.check_call(subprocess_args) |
撰写
预览
正在加载...
取消
保存
Reference in new issue