diff --git a/requirements.txt b/requirements.txt index 4cb76f2..2de234d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -astroid==3.3.11 +astroid==4.0.1 attrs==25.4.0 autopep8==2.3.2 coverage==7.11.0 @@ -15,7 +15,7 @@ platformdirs==4.5.0 pluggy==1.6.0 pycodestyle==2.14.0 pyflakes==3.4.0 -pylint==3.3.9 +pylint==4.0.1 pyright==1.1.406 pytest==8.4.2 pytest-cov==7.0.0 diff --git a/src/projecteuler/helpers/word_score.py b/src/projecteuler/helpers/word_score.py index 16b6b4d..4a249ed 100644 --- a/src/projecteuler/helpers/word_score.py +++ b/src/projecteuler/helpers/word_score.py @@ -1,4 +1,4 @@ -_scoreLetter = { +SCORE_LETTER = { 'A': 1, 'B': 2, 'C': 3, @@ -32,7 +32,7 @@ def wordScore(word: str) -> int: result = 0 for letter in word: - if letter in _scoreLetter: - result += _scoreLetter[letter] + if letter in SCORE_LETTER: + result += SCORE_LETTER[letter] return result