From 536cb5e097407bfe800aa746ab4e3b5612340b96 Mon Sep 17 00:00:00 2001 From: Parul Date: Thu, 8 Feb 2024 11:17:44 -0800 Subject: [PATCH] lint --- .github/workflows/docker-build.yml | 4 ++-- .gitignore | 4 +++- Dockerfile | 2 +- src/filepass/filepass.py | 10 ++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 6371531..3ee46b3 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -43,4 +43,4 @@ jobs: context: . platforms: linux/amd64 push: true - tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file + tags: ${{ steps.meta.outputs.tags }} diff --git a/.gitignore b/.gitignore index 738af97..93a7d74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .run -.idea \ No newline at end of file +.idea +*.egg-info +__pycache__ diff --git a/Dockerfile b/Dockerfile index 0ab169e..d2cbc58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,4 @@ WORKDIR /app COPY requirements.txt . RUN pip3 install -r requirements.txt COPY . . -ENTRYPOINT ["python3", "filepass.py"] \ No newline at end of file +ENTRYPOINT ["python3", "filepass.py"] diff --git a/src/filepass/filepass.py b/src/filepass/filepass.py index 480f901..72db5ad 100644 --- a/src/filepass/filepass.py +++ b/src/filepass/filepass.py @@ -1,12 +1,12 @@ +import logging +import os import sys import fs -import os -import fs.smbfs import fs.ftpfs -from fs.walk import Walker -import logging +import fs.smbfs import graypy +from fs.walk import Walker # File Transfer Types @@ -64,7 +64,6 @@ def file_pass( to_method, to_delete, ): - # From File System if from_method == "ssh": logger.debug("Create from SSH connection") @@ -136,7 +135,6 @@ def file_pass( def main(): - # Load Environmental Variables # GREYLOG_SERVER