def _running_on_ci():
 env_vars = ['CI', 'BUILD_NUMBER']
 return any(((var in os.environ) for var in env_vars))

def _running_on_ci ( ) : env_vars = [ 'CI' , 'BUILD_NUMBER' ] return any ( ( ( var in os . environ ) for var in env_vars ) )
check if were currently running on a ci system .