script: update flake8 to 6.1.0

and touch up the spelling returned by lint-spelling.py
This commit is contained in:
Jon Atack 2023-07-31 12:10:06 -06:00
parent 38c3fd846b
commit bee2d57a65
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ python3 --version
${CI_RETRY_EXE} pip3 install \
codespell==2.2.5 \
flake8==6.0.0 \
flake8==6.1.0 \
lief==0.13.2 \
mypy==1.4.1 \
pyzmq==25.1.0 \

View File

@ -85,7 +85,7 @@ public:
std::string desc;
desc.reserve(mocked_desc.size());
// Replace all occurences of '%' followed by two hex characters with the corresponding key.
// Replace all occurrences of '%' followed by two hex characters with the corresponding key.
for (size_t i = 0; i < mocked_desc.size();) {
if (mocked_desc[i] == '%') {
if (i + 3 >= mocked_desc.size()) return {};