Skip to content

Commit ae3656c

Browse files
authored
Merge pull request #112 from thunderstore-io/fix-codestyle-check
Fix codestyle check
2 parents 5466460 + 400711e commit ae3656c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
python-version: '3.8'
2727

2828
- name: Install pre-commit framework
29-
run: curl https://pre-commit.com/install-local.py | python -
29+
run: python -m pip install pre-commit
3030

3131
- name: Install dotnet-format
3232
run: dotnet tool install -g dotnet-format
3333

3434
- name: Run pre-commit
35-
run: ~/bin/pre-commit run --show-diff-on-failure --color=always --all-files
35+
run: pre-commit run --show-diff-on-failure --color=always --all-files
3636

3737
build-and-test:
3838
name: Build and test ${{ matrix.os }}

ThunderstoreCLI/Commands/BuildCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static int DoBuild(Config config)
196196

197197
plan.AddPlan("icon.png", new EntryData.FromFile(iconPath));
198198
plan.AddPlan("README.md", new EntryData.FromFile(readmePath));
199-
plan.AddPlan("manifest.json", new EntryData.FromMemory(Encoding.UTF8.GetBytes(SerializeManifest(config)), (UnixFileMode)0b110_110_100)); // rw-rw-r--
199+
plan.AddPlan("manifest.json", new EntryData.FromMemory(Encoding.UTF8.GetBytes(SerializeManifest(config)), (UnixFileMode) 0b110_110_100)); // rw-rw-r--
200200

201201
if (config.BuildConfig.CopyPaths is not null)
202202
{
@@ -230,7 +230,7 @@ public static int DoBuild(Config config)
230230
if (!OperatingSystem.IsWindows())
231231
{
232232
// windows-created archives do not use these bits as unix file mode, so we should not set them there
233-
archiveEntry.ExternalAttributes |= (int)entry.Value.GetUnixFileMode() << 16;
233+
archiveEntry.ExternalAttributes |= (int) entry.Value.GetUnixFileMode() << 16;
234234
}
235235

236236
using var entryStream = archiveEntry.Open();

0 commit comments

Comments
 (0)