diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..b169f02 --- /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.12.2"] + steps: + - uses: actions/checkout@v3 + - 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') diff --git a/requirements.txt b/requirements.txt index 0460963..eb0a488 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -selenium -PyGithub -python-dotenv +PyGithub==1.58.1 +python-dotenv==1.0.0 +selenium==4.15.1 diff --git a/windows_OS/README.md b/windows_OS/README.md index ab239ee..adf0fd3 100644 --- a/windows_OS/README.md +++ b/windows_OS/README.md @@ -5,7 +5,7 @@ create env vars : > Github token as - "gt" ``` -### setup: +### setup: ```bash git clone "https://github.com/wikyprash/projectInitializerAutomation.git" cd projectInitializerAutomation diff --git a/windows_OS/create.bat b/windows_OS/create.bat index 8e3e0d0..2bd9763 100644 --- a/windows_OS/create.bat +++ b/windows_OS/create.bat @@ -6,7 +6,7 @@ cd /d %~dp0 If "%1"=="" ( echo "error" -) else ( +) else ( if "%2"=="" ( python remote.py %fn% %flag% ) else ( diff --git a/windows_OS/remote.py b/windows_OS/remote.py index f5fad0f..e842a0f 100644 --- a/windows_OS/remote.py +++ b/windows_OS/remote.py @@ -27,7 +27,7 @@ os.system(c) print(f'{foldername} created locally') - os.system('code .') # add github token to the env vars + os.system('code .') else: print("create ") diff --git a/windows_OS/requirements.txt b/windows_OS/requirements.txt index b393fb0..fbec796 100644 --- a/windows_OS/requirements.txt +++ b/windows_OS/requirements.txt @@ -1 +1 @@ -PyGithub \ No newline at end of file +PyGithub==2.1.1