mirror of
https://github.com/creyD/autopep8_action.git
synced 2026-04-12 11:30:29 +02:00
Removed dependencies parameter
This commit is contained in:
@@ -11,7 +11,6 @@ The following parameters can be used in your custom action configuration.
|
||||
| commit_message | :x: | 'Adjusted files for PEP-8 compliance' | Custom git commit message|
|
||||
| commit_options | :x: | - | Custom git commit options|
|
||||
| file_pattern | :x: | '*' | Custom file pattern for `git add`|
|
||||
| dependencies | :x: | 'requirements.txt' | Path for the repositories 'requirements.txt'. If you have none, you may skip this.|
|
||||
| checkpath | :x: | '.' | The path autopep8 checks |
|
||||
| options | :x: | ' ' | Parameters to use with autopep8 |
|
||||
| dry | :x: | false | Dry-run the action to fail when detecting PEP-8 uncompliant files, instead of automatically fixing them. |
|
||||
|
||||
@@ -15,10 +15,6 @@ inputs:
|
||||
description: File pattern used for `git add`
|
||||
required: false
|
||||
default: '*'
|
||||
dependencies:
|
||||
description: Path for the repositories 'requirements.txt'. If you have none, you may skip this.
|
||||
required: false
|
||||
default: 'requirements.txt'
|
||||
checkpath:
|
||||
description: Path autopep8 checks
|
||||
required: false
|
||||
|
||||
@@ -29,10 +29,6 @@ echo "Installing autopep8..."
|
||||
pip install -q --upgrade pip
|
||||
pip install -q autopep8
|
||||
|
||||
# Install custom project dependencies if applicable
|
||||
pip install -r $INPUT_DEPENDENCIES || echo "No dependency file found."
|
||||
|
||||
# Apply PEP 8
|
||||
echo "Running autopep8..."
|
||||
autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user