зеркало из https://github.com/microsoft/LightGBM.git
[ci] upgrade linters to latest version (#6472)
This commit is contained in:
Родитель
89a470466d
Коммит
ebac9e8e27
|
@ -6,6 +6,7 @@
|
|||
|
||||
TRIGGER_PHRASE: Code phrase that triggers workflow.
|
||||
"""
|
||||
|
||||
import json
|
||||
from os import environ
|
||||
from sys import argv, exit
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# coding: utf-8
|
||||
"""Script for generating files with NuGet package metadata."""
|
||||
|
||||
import datetime
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
|
|
@ -13,7 +13,7 @@ exclude: |
|
|||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
|
@ -25,7 +25,7 @@ repos:
|
|||
args: ["--settings-path", "python-package/pyproject.toml"]
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.2.1
|
||||
rev: v0.4.7
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute.
|
||||
"""Sphinx configuration file."""
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -12,6 +12,7 @@ Version history for these symbols can be found at the following:
|
|||
* GLIBCXX: https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html
|
||||
* OMP/GOMP: https://github.com/gcc-mirror/gcc/blob/master/libgomp/libgomp.map
|
||||
"""
|
||||
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
|
|
@ -6,6 +6,7 @@ with list of all parameters, aliases table and other routines
|
|||
along with parameters description in LightGBM/docs/Parameters.rst file
|
||||
from the information in LightGBM/include/LightGBM/config.h file.
|
||||
"""
|
||||
|
||||
import re
|
||||
from collections import defaultdict
|
||||
from pathlib import Path
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
Contributors: https://github.com/microsoft/LightGBM/graphs/contributors.
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from .basic import Booster, Dataset, Sequence, register_logger
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# coding: utf-8
|
||||
"""Wrapper for C API of LightGBM."""
|
||||
|
||||
import abc
|
||||
import ctypes
|
||||
import inspect
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# coding: utf-8
|
||||
"""Callbacks library."""
|
||||
|
||||
from collections import OrderedDict
|
||||
from dataclasses import dataclass
|
||||
from functools import partial
|
||||
|
|
|
@ -6,6 +6,7 @@ dask.Array and dask.DataFrame collections.
|
|||
|
||||
It is based on dask-lightgbm, which was based on dask-xgboost.
|
||||
"""
|
||||
|
||||
import operator
|
||||
import socket
|
||||
from collections import defaultdict
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# coding: utf-8
|
||||
"""Library with training routines of LightGBM."""
|
||||
|
||||
import copy
|
||||
import json
|
||||
import warnings
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# coding: utf-8
|
||||
"""Find the path to LightGBM dynamic library files."""
|
||||
|
||||
from pathlib import Path
|
||||
from platform import system
|
||||
from typing import List
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# coding: utf-8
|
||||
"""Plotting library."""
|
||||
|
||||
import math
|
||||
from copy import deepcopy
|
||||
from io import BytesIO
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# coding: utf-8
|
||||
"""Scikit-learn wrapper interface for LightGBM."""
|
||||
|
||||
import copy
|
||||
from inspect import signature
|
||||
from pathlib import Path
|
||||
|
|
Загрузка…
Ссылка в новой задаче