Skip to content

Commit

Permalink
updated isort for version 5 and removed -rc
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardochaves committed Aug 8, 2020
1 parent be90fc7 commit 8c5084c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Container image that runs your code
FROM ricardobchaves6/python-lint-image:1.1.0
FROM ricardobchaves6/python-lint-image:1.2.0

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ Basic:
```yml
steps:
- uses: actions/checkout@v1
- uses: ricardochaves/python-lint@v1.1.0
- uses: ricardochaves/python-lint@v1.2.0
```
Options:
```yml
steps:
- uses: actions/checkout@v1
- uses: ricardochaves/python-lint@v1.1.0
- uses: ricardochaves/python-lint@v1.2.0
with:
python-root-list: "python_alelo tests"
use-pylint: false
Expand Down Expand Up @@ -60,7 +60,7 @@ black --check $(extra-black-options) $(python-root-list)

mypy $(extra-mypy-options) $(python-root-list)"

isort -rc $(extra-isort-options) $(python-root-list) -c --diff
isort $(extra-isort-options) $(python-root-list) -c --diff
```

## Versions used
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ fi

if [ "$7" = true ] ; then

echo Running: isort -rc ${13} $1 -c --diff
echo Running: isort ${13} $1 -c --diff

isort -rc ${13} $1 -c --diff
isort ${13} $1 -c --diff
exit_code=$?

if [ "$exit_code" = "0" ]; then
Expand Down

0 comments on commit 8c5084c

Please sign in to comment.