Skip to content

Commit 3f8069f

Browse files
committed
update cruft
1 parent fa52e11 commit 3f8069f

File tree

9 files changed

+126
-30
lines changed

9 files changed

+126
-30
lines changed

.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ CheckOptions:
5151
readability-identifier-naming.NamespaceCase: lower_case
5252
readability-identifier-naming.ParameterCase: lower_case
5353
readability-identifier-naming.VariableCase: lower_case
54+
55+
readability-identifier-length.IgnoredVariableNames: _
5456
---

.cruft.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "[email protected]:bl-sdk/common_dotfiles.git",
3-
"commit": "d03eee713ad436d20033d0598eb88f1529c56ca8",
3+
"commit": "cee5c9dbf5b95f57bb636e5138171aa6a4964cf1",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -15,7 +15,8 @@
1515
"__project_slug": "pyunrealsdk",
1616
"include_cpp": true,
1717
"include_py": true,
18-
"_template": "[email protected]:bl-sdk/common_dotfiles.git"
18+
"_template": "[email protected]:bl-sdk/common_dotfiles.git",
19+
"_commit": "cee5c9dbf5b95f57bb636e5138171aa6a4964cf1"
1920
}
2021
},
2122
"directory": null

.devcontainer/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore any custom folders outside of our predefined ones, to let you create your own
2+
# One use might be using your own container mapping the install path onto your actual game folder
3+
*/
4+
!clang-cross
5+
!llvm-mingw
6+
!mingw

.devcontainer/Dockerfile

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
FROM alpine:latest AS clang-cross
2+
CMD ["/bin/bash"]
3+
RUN <<EOF
4+
apk add --no-cache \
5+
bash \
6+
clang \
7+
clang-extra-tools \
8+
cmake \
9+
git \
10+
lld \
11+
llvm \
12+
msitools \
13+
ninja \
14+
openssh \
15+
perl \
16+
python3 \
17+
py3-requests
18+
git clone https://github.com/mstorsjo/msvc-wine.git
19+
msvc-wine/vsdownload.py \
20+
--accept-license \
21+
--dest /win-sdk \
22+
Microsoft.VisualStudio.Workload.VCTools \
23+
--arch x86 x64
24+
msvc-wine/install.sh /win-sdk
25+
rm -r msvc-wine
26+
EOF
27+
28+
# llvm-mingw comes with pre-built ubuntu binaries, so using that
29+
FROM ubuntu:latest AS llvm-mingw
30+
CMD ["/bin/bash"]
31+
RUN <<EOF
32+
apt-get update
33+
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \
34+
apt-get install -y \
35+
cmake \
36+
git \
37+
msitools \
38+
ninja-build \
39+
python-is-python3 \
40+
python3 \
41+
python3-requests \
42+
wget \
43+
xz-utils
44+
wget -nv https://github.com/mstorsjo/llvm-mingw/releases/download/20250114/llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64.tar.xz
45+
tar -xf llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64.tar.xz
46+
rm llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64.tar.xz
47+
mv llvm-mingw-20250114-msvcrt-ubuntu-20.04-x86_64 /llvm-mingw
48+
EOF
49+
ENV PATH="/llvm-mingw/bin:$PATH"
50+
51+
FROM alpine:latest AS mingw
52+
CMD ["/bin/bash"]
53+
RUN <<EOF
54+
apk add --no-cache \
55+
bash \
56+
cmake \
57+
git \
58+
i686-mingw-w64-gcc \
59+
mingw-w64-gcc \
60+
msitools \
61+
ninja \
62+
openssh \
63+
py3-requests \
64+
python3
65+
EOF
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "clang-cross",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"target": "clang-cross"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "llvm-mingw",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"target": "llvm-mingw"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "mingw",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"target": "mingw"
6+
}
7+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.vs
22
.vscode
3+
.idea
34

45
# C/C++ excludes
56
.cache/clangd

pyproject.toml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,9 @@ target-version = "py313"
1010
line-length = 100
1111

1212
[tool.ruff.lint]
13-
# Last time rules scrutinised: ruff 0.6.9 / 2024-10-08
13+
# Last time rules scrutinised: ruff 0.11.0 / 2025-03-20
1414
select = [
15-
"F",
16-
"W",
17-
"E",
18-
"C90",
19-
"I",
20-
"N",
21-
"D",
22-
"UP",
15+
"ERA",
2316
"YTT",
2417
"ANN",
2518
"ASYNC",
@@ -31,34 +24,51 @@ select = [
3124
"C4",
3225
"DTZ",
3326
"T10",
27+
"FIX",
3428
"FA",
29+
"INT",
3530
"ISC",
3631
"ICN",
3732
"LOG",
3833
"G",
3934
"PIE",
35+
"T20",
4036
"PYI",
4137
"Q",
4238
"RSE",
4339
"RET",
44-
"SLOT",
4540
"SIM",
41+
"SLOT",
4642
"TID",
47-
"TCH",
48-
"INT",
43+
"TD",
44+
"TC",
4945
"ARG",
5046
"PTH",
51-
"TD",
52-
"FIX",
53-
"ERA",
54-
"PGH",
55-
"PL",
5647
"FLY",
48+
"I",
49+
"C90",
50+
"N",
5751
"PERF",
52+
"E",
53+
"W",
54+
"D",
55+
"F",
56+
"PGH",
57+
"PL",
58+
"UP",
5859
"FURB",
5960
"RUF",
6061
]
6162
ignore = [
63+
"ANN401",
64+
"S101",
65+
"S603",
66+
"S607",
67+
"PYI011",
68+
"PYI021",
69+
"PYI029",
70+
"PYI044",
71+
"TC006",
6272
"D100",
6373
"D101",
6474
"D104",
@@ -76,16 +86,6 @@ ignore = [
7686
"D410",
7787
"D411",
7888
"D413",
79-
"ANN101",
80-
"ANN102",
81-
"ANN401",
82-
"S101",
83-
"S603",
84-
"S607",
85-
"PYI011",
86-
"PYI021",
87-
"PYI029",
88-
"PYI044",
8989
"PGH003",
9090
"PLR0904",
9191
"PLR0911",
@@ -100,4 +100,4 @@ ignore = [
100100
]
101101

102102
[tool.ruff.lint.per-file-ignores]
103-
"*.pyi" = ["D418", "A002", "A003"]
103+
"*.pyi" = ["A002", "A003", "D418"]

0 commit comments

Comments
 (0)