File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,21 @@ jobs:
31
31
python-version : 3.8
32
32
33
33
- name : Install packages
34
- run : pip install black blackdoc flake8 pylint
34
+ run : |
35
+ pip install black blackdoc flake8 pylint
36
+ sudo apt-get install dos2unix
35
37
36
38
- name : Formatting check (black and flake8)
37
39
run : make check
38
40
39
41
- name : Linting (pylint)
40
42
run : make lint
41
43
44
+ - name : Line breaks check (dos2unix)
45
+ run : |
46
+ dos2unix **/*.py **/*.md
47
+ if [[ $(git ls-files -m) ]]; then git --no-pager diff HEAD; exit 1; fi
48
+
42
49
test :
43
50
name : ${{ matrix.os }} - Python ${{ matrix.python-version }}
44
51
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -25,12 +25,15 @@ jobs:
25
25
26
26
# Install formatting tools
27
27
- name : Install formatting tools
28
- run : pip install black blackdoc flake8
28
+ run : |
29
+ pip install black blackdoc flake8
30
+ sudo apt-get install dos2unix
29
31
30
32
# Run "make format" and commit the change to the PR branch
31
33
- name : Commit to the PR branch if any changes
32
34
run : |
33
35
make format
36
+ dos2unix **/*.py **/*.md
34
37
if [[ $(git ls-files -m) ]]; then
35
38
git config --global user.name 'actions-bot'
36
39
git config --global user.email '58130806+actions-bot@users.noreply.github.com'
You can’t perform that action at this time.
0 commit comments