From dc1e0c3a1acb0b296fefa884b4c41f6045aac6cd Mon Sep 17 00:00:00 2001 From: Padhilam Tejasri <119599856+tejasri01@users.noreply.github.com> Date: Sun, 8 Jun 2025 13:41:22 +0000 Subject: [PATCH 1/2] Main --- python.py | 4 ++++ string.py | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 python.py create mode 100644 string.py diff --git a/python.py b/python.py new file mode 100644 index 00000000..86b17188 --- /dev/null +++ b/python.py @@ -0,0 +1,4 @@ +str1 = "hello" +str2 = "world" +result = str1 + " " + str2 +print(result) diff --git a/string.py b/string.py new file mode 100644 index 00000000..a22e1d6f --- /dev/null +++ b/string.py @@ -0,0 +1,3 @@ +text = "Tejasri" +length = len(text) +print("length of text: length") \ No newline at end of file From 05484622e10230cf7d0b264079dcdcd9d9e10cff Mon Sep 17 00:00:00 2001 From: Padhilam Tejasri <119599856+tejasri01@users.noreply.github.com> Date: Mon, 9 Jun 2025 19:04:22 +0530 Subject: [PATCH 2/2] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..c73e032c --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py')