mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
* cleanup linters: get rid of pylint-pytest, run pylint only on dvc/ directory, etc. * remove pylint direcitves * Apply suggestions from code review * Update pyproject.toml
18 lines
414 B
Python
18 lines
414 B
Python
import os
|
|
|
|
# Increasing fd ulimit for tests
|
|
if os.name == "nt":
|
|
try:
|
|
import win32file
|
|
except ImportError:
|
|
pass
|
|
else:
|
|
win32file._setmaxstdio(4096)
|
|
else:
|
|
import resource
|
|
|
|
resource.setrlimit(resource.RLIMIT_NOFILE, (4096, 4096))
|
|
|
|
nproc_soft, nproc_hard = resource.getrlimit(resource.RLIMIT_NPROC)
|
|
resource.setrlimit(resource.RLIMIT_NPROC, (nproc_hard, nproc_hard))
|