Skip to content

Commit

Permalink
icon
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvinayak committed Mar 25, 2020
1 parent 380351c commit 0a73b8e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-alpine
FROM python

LABEL "com.github.actions.name"="runnig Flake8 and black"
LABEL "com.github.actions.description"="run flake8 command and use black"
Expand All @@ -12,6 +12,8 @@ RUN pip install --upgrade pip
RUN pip install flake8
RUN pip install black

COPY entrypoint.sh /

COPY entrypoint.sh /entrypoint.sh
RUN pwd
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

echo "Running style checks on ${inputs.filename}"
flake8 ${inputs.filename}
flake8 ${inputs.filename}

echo "formating ${inputs.filename}"
black ${inputs.filename}
Expand Down
16 changes: 0 additions & 16 deletions github-recovery-codes.txt

This file was deleted.

0 comments on commit 0a73b8e

Please sign in to comment.