renovate/lib/manager/pip_requirements/range.ts
2019-07-25 08:17:19 +02:00

9 lines
259 B
TypeScript

import { RangeConfig } from '../common';
import { RangeStrategy } from '../../versioning';
export function getRangeStrategy(config: RangeConfig): RangeStrategy {
if (config.rangeStrategy === 'auto') {
return 'pin';
}
return config.rangeStrategy;
}