Skip to content

Commit

Permalink
Edit check pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Dec 20, 2022
1 parent c9d31bc commit 022569a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 139 deletions.
76 changes: 0 additions & 76 deletions .github/workflows/codeql.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/dependency-review.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/pylint.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: Python check

on:
push:
Expand All @@ -27,14 +24,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install -r requirements.txt
python -m pip install flake8 pylint black
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - name: Test with pytest
# run: |
# pytest
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
- name: Check black style
run: |
black . --check
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
author="Andre Basche",
description="Fetch receipts and more from Lidl Plus",
long_description=long_description,
long_description_content_type='text/markdown',
long_description_content_type="text/markdown",
url="https://github.com/Andre0512/lidl-plus",
license="MIT",
platforms="any",
Expand All @@ -24,16 +24,11 @@
python_requires=">=3.8",
install_requires=["requests"],
extras_require={
"auth": [
"selenium-wire",
"webdriver-manager",
"getuseragent",
"oic"
]
"auth": ["selenium-wire", "webdriver-manager", "getuseragent", "oic"]
},
entry_points={
'console_scripts': [
'lidl-plus = lidlplus.__main__:start',
"console_scripts": [
"lidl-plus = lidlplus.__main__:start",
]
}
},
)

0 comments on commit 022569a

Please sign in to comment.