Skip to content

Commit

Permalink
updated linters and fixed docker compose v2 (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaCigarini authored Aug 27, 2024
1 parent 38136b2 commit 79f9e15
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ repos:
args: ["--rcfile", ".github/configurations/python_linters/.pylintrc"]

- repo: https://github.com/pycqa/bandit
rev: 1.7.4
rev: 1.7.9
hooks:
- id: bandit
args: ["-c", ".github/configurations/python_linters/.bandit.yaml"]

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 7.1.1
hooks:
- id: flake8
exclude: docs/conf.py
args: ["--config", ".github/configurations/python_linters/.flake8"]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--settings-path", ".github/configurations/python_linters/.isort.cfg", "--filter-files", "--skip", "venv"]

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.8.0
hooks:
- id: black
args: ["--config", ".github/configurations/python_linters/.black"]

- repo: https://github.com/PyCQA/autoflake
rev: v1.7.7
rev: v2.3.1
hooks:
- id: autoflake
args: ["-i", "--remove-all-unused-imports", "--remove-unused-variables", "--ignore-init-module-imports", "--ignore-pass-statements"]
16 changes: 8 additions & 8 deletions actions/services/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ runs:
using: "composite"
steps:

- name: Create mongo docker-compose file
- name: Create mongo docker compose file
if: inputs.use_mongo
run: |
echo "version: '3.8'" > mongo.yml
Expand All @@ -74,7 +74,7 @@ runs:
shell:
bash

- name: Create postgres docker-compose file
- name: Create postgres docker compose file
if: inputs.use_postgres
run: |
echo "version: '3.8'" > postgres.yml
Expand All @@ -96,7 +96,7 @@ runs:
shell:
bash

- name: Create elasticsearch docker-compose file
- name: Create elasticsearch docker compose file
if: inputs.use_elastic_search
run: |
echo "version: '3.8'" > elastic_search.yml
Expand All @@ -117,7 +117,7 @@ runs:
shell:
bash

- name: Create memcached docker-compose file
- name: Create memcached docker compose file
if: inputs.use_memcached
run: |
echo "version: '3.8'" > memcached.yml
Expand All @@ -130,7 +130,7 @@ runs:
shell:
bash

- name: Create redis docker-compose file
- name: Create redis docker compose file
if: inputs.use_redis
run: |
echo "version: '3.8'" > redis.yml
Expand All @@ -143,7 +143,7 @@ runs:
shell:
bash

- name: Create rabbitmq docker-compose file
- name: Create rabbitmq docker compose file
if: inputs.use_rabbitmq
run: |
echo "version: '3.8'" > rabbitmq.yml
Expand All @@ -157,9 +157,9 @@ runs:
shell:
bash

- name: Execute docker-compose up
- name: Execute docker compose up
run: |
CLI=docker-compose
CLI="docker compose"
if [[ ${{ inputs.use_postgres }} != 'false' ]]; then
CLI="${CLI} -f postgres.yml"
fi
Expand Down
12 changes: 6 additions & 6 deletions configurations/python_linters/requirements-linters.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
black==23.11.0
isort==5.12.0
flake8==6.1.0
autoflake==2.3.1
bandit==1.7.9
black==24.8.0
flake8-django==1.4
pylint==2.17.7
flake8==7.1.1
isort==5.13.2
pylint-django==2.5.5
bandit==1.7.5
autoflake==2.2.1
pylint==3.2.6

0 comments on commit 79f9e15

Please sign in to comment.