Skip to content

Commit 4189469

Browse files
committed
style: pre-commit updates
1 parent bc4f10a commit 4189469

File tree

12 files changed

+20
-31
lines changed

12 files changed

+20
-31
lines changed

.github/workflows/testsPython.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ name: Python Unit Tests
2222

2323
on:
2424
workflow_dispatch: # Allows the workflow to be manually triggered from the GitHub Actions tab
25-
pull_request: #
26-
paths: # Trigger workflow on pull requests, but
27-
- "**.py" # only if Python files are changed
25+
pull_request: #
26+
paths: # Trigger workflow on pull requests, but
27+
- "**.py" # only if Python files are changed
2828
push:
29-
branches: #
30-
- main #
31-
- next # Trigger workflow on pushes to main and next
32-
paths: # branches, but only if Python files are changed
33-
- "**.py" #
29+
branches: #
30+
- main #
31+
- next # Trigger workflow on pushes to main and next
32+
paths: # branches, but only if Python files are changed
33+
- "**.py" #
3434

3535
env:
3636
python-version: "3.13"
3737

3838
jobs:
3939
# Job #1: Run Python unit tests
40-
#
41-
# This job will run on an Ubuntu runner and execute the Python
42-
# tests by using a custom action located in ./.github/actions/tests/python.
40+
#
41+
# This job will run on an Ubuntu runner and execute the Python
42+
# tests by using a custom action located in ./.github/actions/tests/python.
4343
python-unit-tests:
4444
runs-on: ubuntu-latest # the runner (remote machine) will use Ubuntu OS
4545
steps:
@@ -63,8 +63,8 @@ jobs:
6363
codecov-token: "${{ secrets.CODECOV_TOKEN }}"
6464

6565
# Job #2: Notifications (Mini-capstone assignment)
66-
# This job will run after the Python unit tests and
67-
# is scaffolded to facilitate sending notifications based
66+
# This job will run after the Python unit tests and
67+
# is scaffolded to facilitate sending notifications based
6868
# on the test results.
6969
notifications:
7070
needs: python-unit-tests

.pre-commit-config.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ repos:
2525
hooks:
2626
- id: isort
2727
args: ["--settings-path=pyproject.toml"]
28-
- repo: local
29-
hooks:
30-
- id: pylint
31-
name: pylint
32-
entry: scripts/run_pylint.sh
33-
language: script
34-
types: [python]
28+
# - repo: local
29+
# hooks:
30+
# - id: pylint
31+
# name: pylint
32+
# entry: scripts/run_pylint.sh
33+
# language: script
34+
# types: [python]
3535
- repo: https://github.com/PyCQA/bandit
3636
rev: 1.9.4
3737
hooks:
@@ -43,7 +43,6 @@ repos:
4343
# See https://pre-commit.com/hooks.html for more hooks
4444
#- id: check-added-large-files
4545
- id: fix-byte-order-marker
46-
- id: fix-encoding-pragma
4746
- id: check-case-conflict
4847
- id: check-json
4948
- id: check-merge-conflict

app/agent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from .logging_config import get_logger, setup_logging
99
from .prompt import completion
1010

11-
1211
setup_logging()
1312
logger = get_logger(__name__)
1413

app/database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
MYSQL_USER,
1818
)
1919

20-
2120
setup_logging()
2221
logger = get_logger(__name__)
2322

app/prompt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from app.stackademy import stackademy_app
2626
from app.utils import color_text, dump_json_colored
2727

28-
2928
setup_logging()
3029
logger = get_logger(__name__)
3130

app/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from app.const import ToolChoice
1010
from app.exceptions import ConfigurationException
1111

12-
1312
load_dotenv()
1413
SET_ME_PLEASE = "SET-ME-PLEASE"
1514

app/stackademy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from app.logging_config import get_logger, setup_logging
1414
from app.utils import color_text
1515

16-
1716
setup_logging()
1817
logger = get_logger(__name__)
1918

app/tests/const.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import sys
88
from pathlib import Path
99

10-
1110
HERE = os.path.abspath(os.path.dirname(__file__))
1211
PROJECT_ROOT = str(Path(HERE).parent.parent)
1312
PYTHON_ROOT = str(Path(PROJECT_ROOT).parent)

app/tests/test_database.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from app.database import ConfigurationException, DatabaseConnection
1313
from app.logging_config import get_logger
1414

15-
1615
logger = get_logger(__name__)
1716

1817

app/tests/test_stackademy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from app.logging_config import get_logger
1212
from app.stackademy import Stackademy
1313

14-
1514
logger = get_logger(__name__)
1615

1716

0 commit comments

Comments
 (0)