Check for CI env var instead of TRAVIS

develop
lethosor 2021-09-05 22:24:16 -04:00
parent 75f90bccb9
commit de241b47cc
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 1 additions and 1 deletions

@ -81,7 +81,7 @@ class Linter(object):
class NewlineLinter(Linter):
msg = 'Contains DOS-style newlines'
# git supports newline conversion. Catch in CI, ignore on Windows.
ignore = os.linesep != '\n' and not os.environ.get('TRAVIS')
ignore = os.linesep != '\n' and not os.environ.get('CI')
def check_line(self, line):
return '\r' not in line
def fix_line(self, line):