Update: Code formatting

This commit is contained in:
k.eaven committed 2025-10-26 13:26:49 +00:00
1 parent 11ee1447de
commit 5e61c838d5
4 files changed
+1103 -704

No files matched your search

+4 -4
View File
@@ -113,7 +113,7 @@ jobs:
- name: Run flake8
run: |
flake8 pterodisbot.py server_metrics_graphs.py \
--max-line-length=120 \
--max-line-length=140 \
--ignore=E501,W503,E203 \
--exclude=venv,__pycache__,build,dist \
--statistics \
@@ -124,19 +124,19 @@ jobs:
run: |
pylint pterodisbot.py server_metrics_graphs.py \
--disable=C0111,C0103,R0913,R0914,R0915,W0718 \
--max-line-length=120 \
--max-line-length=140 \
--output-format=text \
--reports=y > pylint-report.txt || true
continue-on-error: true
- name: Check code formatting with black
run: |
black --check --line-length=120 --diff pterodisbot.py server_metrics_graphs.py | tee black-report.txt
black --check --line-length=140 --diff pterodisbot.py server_metrics_graphs.py | tee black-report.txt
continue-on-error: true
- name: Check import ordering
run: |
isort --check-only --profile black --line-length=120 pterodisbot.py server_metrics_graphs.py
isort --check-only --profile black --line-length=140 pterodisbot.py server_metrics_graphs.py
continue-on-error: true
- name: Type checking with mypy