Skip to content

Commit 8229443

Browse files
committed
chore: removed some unneeded flags from pre-commit config
1 parent 34316d7 commit 8229443

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ repos:
101101
rev: v1.3.5
102102
hooks:
103103
- id: cppcheck
104-
args: [--cppcheck-build-dir=Builds/cppcheck, --quiet, --inline-suppr, --std=c++23, --language=c++, --check-level=exhaustive, --force, --enable=all, --suppress=unusedFunction, --suppress=unusedStructMember, --suppress=unmatchedSuppression, --suppress=class_X_Y, --suppress=missingIncludeSystem, --suppress=missingInclude, --suppress=internalAstError]
104+
args: [--cppcheck-build-dir=Builds/cppcheck, --inline-suppr, --std=c++23, --check-level=exhaustive, --enable=all, --suppress=unusedFunction, --suppress=unusedStructMember, --suppress=unmatchedSuppression, --suppress=class_X_Y, --suppress=missingIncludeSystem, --suppress=missingInclude]
105105
additional_dependencies: [cppcheck>=1.5.1]
106106
- id: cpplint
107-
args: [--verbose=0, --quiet]
107+
args: [--verbose=0]
108108
additional_dependencies: [cpplint]
109109

110110
# CMake formatting & linting
@@ -141,7 +141,7 @@ repos:
141141
rev: v2.14.0
142142
hooks:
143143
- id: hadolint
144-
args: [--ignore, DL3007, --ignore, DL3003, --ignore, DL3008, --ignore, DL3045]
144+
args: [--ignore, DL3003, --ignore, DL3008, --ignore, DL3045]
145145
exclude: .dockerignore
146146

147147
# format justfile

config/lichess/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
# This Dockerfile expects the context to be the repo root
1414

15-
FROM lichessbotdevs/lichess-bot:latest
15+
FROM lichessbotdevs/lichess-bot:2026.3.7.1
1616

1717
ARG CMAKE_VERSION=4.2.3
18+
ARG CMAKE_PRESET=clang
1819

1920
RUN --mount=type=bind,source=.,target=BenBot,rw \
2021
# install dependencies \
@@ -29,11 +30,11 @@ RUN --mount=type=bind,source=.,target=BenBot,rw \
2930
ln -s /opt/cmake-$CMAKE_VERSION/bin/* /usr/local/bin && \
3031
# configure & build \
3132
cd BenBot && \
32-
cmake --preset clang -D BENBOT_DOCS=OFF -D BENBOT_TESTS=OFF && \
33-
cmake --build Builds/clang -j4 --target ben_bot --config Release && \
33+
cmake --preset $CMAKE_PRESET -D BENBOT_DOCS=OFF -D BENBOT_TESTS=OFF && \
34+
cmake --build Builds/$CMAKE_PRESET -j4 --target ben_bot --config Release && \
3435
# install \
3536
cd .. && \
36-
cmake --install BenBot/Builds/clang --prefix deploy --component ben_bot --config Release && \
37+
cmake --install BenBot/Builds/$CMAKE_PRESET --prefix deploy --component ben_bot --config Release && \
3738
# clean up \
3839
apt-get remove -y git cmake ninja-build clang libc++-dev libc++abi-dev && \
3940
rm -rf /var/lib/apt/lists

0 commit comments

Comments
 (0)