Skip to content

Commit 16096d6

Browse files
committed
fix: pylint error
1 parent d66e15f commit 16096d6

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Multi-Platform Build
22

3-
on: [push, pull_request]
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "master" ]
7+
pull_request:
8+
branches: [ "master" ]
49

510
jobs:
611
build:

.github/workflows/pylint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
name: Pylint
44

5-
on: [push]
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
611

712
jobs:
813
build:

main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
"""
2+
This is the main module for the Flask application.
3+
"""
4+
15
from flask import Flask
26

37
app = Flask(__name__)
48

59
@app.route('/')
610
def hello():
11+
"""
12+
This function returns a simple HTTP response.
13+
"""
714
return "Hello World! This is a simple HTTP response."
815

916
if __name__ == '__main__':

0 commit comments

Comments
 (0)