Skip to content

Commit

Permalink
chore(ci): update CircleCI config (#1363)
Browse files Browse the repository at this point in the history
* chore(ci): update CircleCI config

* chore: rename token_file constant
  • Loading branch information
WikiRik authored Dec 4, 2024
1 parent 0a9daf0 commit e6bcfda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
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
# FIXME: enable W0511 and E0401 as well
- 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
Expand Down
4 changes: 2 additions & 2 deletions scripts-server/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e6bcfda

Please sign in to comment.