diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b197f5c..0d806830 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,7 +29,7 @@ jobs: steps: # Setup - name: Check out source repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up poetry uses: abatilo/actions-poetry@v2 @@ -37,7 +37,7 @@ jobs: poetry-version: ${{ matrix.poetry-version }} - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'poetry' @@ -59,6 +59,8 @@ jobs: python: - added|modified: '**.py' - added|modified: '**.ipynb' + python_alone: + - added|modified: '**.py' javascript: - added|modified: '**.js' html: @@ -151,8 +153,8 @@ jobs: run: poetry run mypy ${{ steps.filter.outputs.python_files }} - name: pylint - if: steps.filter.outputs.python == 'true' - run: poetry run pylint ${{ steps.filter.outputs.python_files }} + if: steps.filter.outputs.python_alone == 'true' + run: poetry run pylint ${{ steps.filter.outputs.python_alone_files }} - name: bandit if: steps.filter.outputs.python == 'true' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fecd0f4e..b6b35c6b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: blacken-docs args: ['--line-length=100'] - additional_dependencies: ['black==23.7.0'] + additional_dependencies: ['black==24.3.0'] # flake8 - repo: https://github.com/pycqa/flake8 @@ -402,7 +402,7 @@ repos: #### git # don't commit to main - id: no-commit-to-branch - args: ['-b main'] + args: ['--branch', 'main'] # checks for files that contain merge conflict strings - id: check-merge-conflict args: ['--assume-in-merge']