Skip to content

Commit

Permalink
Update Python in dev containers and add .gitattributes (#2021)
Browse files Browse the repository at this point in the history
* Update .devcontainer Dockerfile and create .gitattributes

Signed-off-by: jorturfer <[email protected]>

* Update some endlines

Signed-off-by: jorturfer <[email protected]>

* Update python3 automation method

Signed-off-by: jorturfer <[email protected]>
  • Loading branch information
JorTurFer authored Aug 9, 2021
1 parent dbdba1e commit b27de0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ RUN apt-get update \
&& apt-get install -y docker-ce-cli \
#
# Install pip & pre-commit
&& apt-get -y install python-pip \
&& pip install --no-cache-dir pre-commit \
&& apt-get -y install python3-pip \
&& python3 -m pip install --no-cache-dir pre-commit \
#
# Clean up
&& apt-get autoremove -y \
Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# normalize all introduced text files to LF line endings (recognized by git)
* text=auto
# additionally declare text file types
*.sh text eol=lf

0 comments on commit b27de0c

Please sign in to comment.