diff --git a/.circleci/config.yml b/.circleci/config.yml index 915dfeee..91b2d4c8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,18 +1,18 @@ orbs: - shellcheck: circleci/shellcheck@3.1.2 - docker: circleci/docker@2.2.0 + shellcheck: circleci/shellcheck@3.2.0 + docker: circleci/docker@2.7.1 version: 2.1 jobs: yamllint: docker: - - image: cimg/python:3.11.3 + - image: cimg/python:3.12.6 steps: - checkout - run: pip install yamllint - run: yamllint -d .yamllint.yml . pylint: docker: - - image: cimg/python:3.11.3 + - image: cimg/python:3.12.6 steps: - checkout - run: pip install pylint @@ -20,7 +20,7 @@ jobs: - run: pylint scripts-server --disable C0114,C0116,W0511,E0401 shellcheck: docker: - - image: cimg/base:2023.05 + - image: cimg/base:2024.09 steps: - checkout - shellcheck/install diff --git a/scripts-server/notify.py b/scripts-server/notify.py index f2bb4824..80f9394b 100755 --- a/scripts-server/notify.py +++ b/scripts-server/notify.py @@ -27,10 +27,10 @@ # } -token_file = f'{os.path.realpath(os.path.dirname(__file__))}/../secrets/tokens.json' +TOKEN_FILE = f'{os.path.realpath(os.path.dirname(__file__))}/../secrets/tokens.json' def open_credentials_file(): - with open(token_file, encoding="utf-8") as tokens_json: + with open(TOKEN_FILE, encoding="utf-8") as tokens_json: return json.load(tokens_json) tokens = open_credentials_file()