diff --git a/.github/workflows/pylint.yaml b/.github/workflows/pylint.yaml index 8d98917..b5ee0c6 100755 --- a/.github/workflows/pylint.yaml +++ b/.github/workflows/pylint.yaml @@ -1,16 +1,27 @@ name: Pylint -on: [ pull_request ] + +on: [push] + jobs: - lint: + build: + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - cache: pipenv - - run: python -m pip install --upgrade pipenv wheel - - run: pipenv install --dev - - uses: pr-annotators/pylint-pr-annotator@main - - name: Analysing the code with pylint - run: pipenv run pylint $(git ls-files '*.py') \ No newline at end of file + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + find . -name '*.py' -exec pylint {} --fail-under=8 \; + pylint_exit_code=$? + if [ $pylint_exit_code -ne 0 ]; then + echo "Pylint check failed with exit code $pylint_exit_code" + exit $pylint_exit_code + fi \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3387da7..e83c14c 100755 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ _tests/files/output-results /.idea/workspace.xml /.idea/usage.statistics.xml /.idea/shelf -/.vscode \ No newline at end of file +/.vscode +/.idea/inspectionProfiles/Project_Default.xml +/.idea/Obsidian-Daylio-Parser.bak.iml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml index 105ce2d..3f28a6f 100644 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -1,5 +1,9 @@ +<<<<<<< HEAD +======= + diff --git a/.idea/misc.xml b/.idea/misc.xml index 7c3da4b..f187bc3 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,8 +1,5 @@ - -