-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,15 @@ jobs: | |
- name: Install pylint | ||
run: | | ||
python -m pip install pylint==3.0.3 | ||
python -m pip install pylint==3.1.0 black==24.3.0 | ||
# - name: Lint Python code with black | ||
# run: | | ||
# black --check --skip-string-normalization --line-length 120 bot | ||
|
||
- name: Lint Python code | ||
run: | | ||
pylint --disable=R,C,W1203 bot/main.py | ||
pylint --disable=R,C,W1203,W0105 bot/main.py | ||
- name: Lint Dockerfile with hadolint | ||
uses: hadolint/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM python:3.12-slim | ||
|
||
RUN python -m pip install requests~=2.31.0 python-dotenv~=1.0.1 black | ||
RUN python -m pip install requests~=2.31.0 python-dotenv~=1.0.1 pytz==2024.1 black==24.3.0 pylint==3.1.0 | ||
|
||
CMD [ "black", "--skip-string-normalization", "--line-length", "120", "bot" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker build . -f Dockerfile.black -t black | ||
docker run -it --rm -v $(pwd)/bot:/bot black | ||
docker run -it --rm -v $(pwd)/bot:/bot black | ||
docker run -it --rm -v $(pwd)/bot:/bot black pylint --disable=R,C,W1203,W0105 bot/main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters