Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
ebac9e8e
"vscode:/vscode.git/clone" did not exist on "26671aa3e34cde5cbdea511b79b904cbdfbb729d"
Unverified
Commit
ebac9e8e
authored
Jun 02, 2024
by
James Lamb
Committed by
GitHub
Jun 02, 2024
Browse files
[ci] upgrade linters to latest version (#6472)
parent
89a47046
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
15 additions
and
2 deletions
+15
-2
.ci/get_workflow_status.py
.ci/get_workflow_status.py
+1
-0
.nuget/create_nuget.py
.nuget/create_nuget.py
+1
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+2
-2
docs/conf.py
docs/conf.py
+1
-0
helpers/check_dynamic_dependencies.py
helpers/check_dynamic_dependencies.py
+1
-0
helpers/parameter_generator.py
helpers/parameter_generator.py
+1
-0
python-package/lightgbm/__init__.py
python-package/lightgbm/__init__.py
+1
-0
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-0
python-package/lightgbm/callback.py
python-package/lightgbm/callback.py
+1
-0
python-package/lightgbm/dask.py
python-package/lightgbm/dask.py
+1
-0
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+1
-0
python-package/lightgbm/libpath.py
python-package/lightgbm/libpath.py
+1
-0
python-package/lightgbm/plotting.py
python-package/lightgbm/plotting.py
+1
-0
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+1
-0
No files found.
.ci/get_workflow_status.py
View file @
ebac9e8e
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
TRIGGER_PHRASE: Code phrase that triggers workflow.
TRIGGER_PHRASE: Code phrase that triggers workflow.
"""
"""
import
json
import
json
from
os
import
environ
from
os
import
environ
from
sys
import
argv
,
exit
from
sys
import
argv
,
exit
...
...
.nuget/create_nuget.py
View file @
ebac9e8e
# coding: utf-8
# coding: utf-8
"""Script for generating files with NuGet package metadata."""
"""Script for generating files with NuGet package metadata."""
import
datetime
import
datetime
import
sys
import
sys
from
pathlib
import
Path
from
pathlib
import
Path
...
...
.pre-commit-config.yaml
View file @
ebac9e8e
...
@@ -13,7 +13,7 @@ exclude: |
...
@@ -13,7 +13,7 @@ exclude: |
repos
:
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.
5
.0
rev
:
v4.
6
.0
hooks
:
hooks
:
-
id
:
end-of-file-fixer
-
id
:
end-of-file-fixer
-
id
:
trailing-whitespace
-
id
:
trailing-whitespace
...
@@ -25,7 +25,7 @@ repos:
...
@@ -25,7 +25,7 @@ repos:
args
:
[
"
--settings-path"
,
"
python-package/pyproject.toml"
]
args
:
[
"
--settings-path"
,
"
python-package/pyproject.toml"
]
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
# Ruff version.
rev
:
v0.
2.1
rev
:
v0.
4.7
hooks
:
hooks
:
# Run the linter.
# Run the linter.
-
id
:
ruff
-
id
:
ruff
...
...
docs/conf.py
View file @
ebac9e8e
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
# add these directories to sys.path here. If the directory is relative to the
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute.
# documentation root, use os.path.abspath to make it absolute.
"""Sphinx configuration file."""
"""Sphinx configuration file."""
import
datetime
import
datetime
import
os
import
os
import
sys
import
sys
...
...
helpers/check_dynamic_dependencies.py
View file @
ebac9e8e
...
@@ -12,6 +12,7 @@ Version history for these symbols can be found at the following:
...
@@ -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
* GLIBCXX: https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html
* OMP/GOMP: https://github.com/gcc-mirror/gcc/blob/master/libgomp/libgomp.map
* OMP/GOMP: https://github.com/gcc-mirror/gcc/blob/master/libgomp/libgomp.map
"""
"""
import
re
import
re
import
sys
import
sys
from
pathlib
import
Path
from
pathlib
import
Path
...
...
helpers/parameter_generator.py
View file @
ebac9e8e
...
@@ -6,6 +6,7 @@ with list of all parameters, aliases table and other routines
...
@@ -6,6 +6,7 @@ with list of all parameters, aliases table and other routines
along with parameters description in LightGBM/docs/Parameters.rst file
along with parameters description in LightGBM/docs/Parameters.rst file
from the information in LightGBM/include/LightGBM/config.h file.
from the information in LightGBM/include/LightGBM/config.h file.
"""
"""
import
re
import
re
from
collections
import
defaultdict
from
collections
import
defaultdict
from
pathlib
import
Path
from
pathlib
import
Path
...
...
python-package/lightgbm/__init__.py
View file @
ebac9e8e
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
Contributors: https://github.com/microsoft/LightGBM/graphs/contributors.
Contributors: https://github.com/microsoft/LightGBM/graphs/contributors.
"""
"""
from
pathlib
import
Path
from
pathlib
import
Path
from
.basic
import
Booster
,
Dataset
,
Sequence
,
register_logger
from
.basic
import
Booster
,
Dataset
,
Sequence
,
register_logger
...
...
python-package/lightgbm/basic.py
View file @
ebac9e8e
# coding: utf-8
# coding: utf-8
"""Wrapper for C API of LightGBM."""
"""Wrapper for C API of LightGBM."""
import
abc
import
abc
import
ctypes
import
ctypes
import
inspect
import
inspect
...
...
python-package/lightgbm/callback.py
View file @
ebac9e8e
# coding: utf-8
# coding: utf-8
"""Callbacks library."""
"""Callbacks library."""
from
collections
import
OrderedDict
from
collections
import
OrderedDict
from
dataclasses
import
dataclass
from
dataclasses
import
dataclass
from
functools
import
partial
from
functools
import
partial
...
...
python-package/lightgbm/dask.py
View file @
ebac9e8e
...
@@ -6,6 +6,7 @@ dask.Array and dask.DataFrame collections.
...
@@ -6,6 +6,7 @@ dask.Array and dask.DataFrame collections.
It is based on dask-lightgbm, which was based on dask-xgboost.
It is based on dask-lightgbm, which was based on dask-xgboost.
"""
"""
import
operator
import
operator
import
socket
import
socket
from
collections
import
defaultdict
from
collections
import
defaultdict
...
...
python-package/lightgbm/engine.py
View file @
ebac9e8e
# coding: utf-8
# coding: utf-8
"""Library with training routines of LightGBM."""
"""Library with training routines of LightGBM."""
import
copy
import
copy
import
json
import
json
import
warnings
import
warnings
...
...
python-package/lightgbm/libpath.py
View file @
ebac9e8e
# coding: utf-8
# coding: utf-8
"""Find the path to LightGBM dynamic library files."""
"""Find the path to LightGBM dynamic library files."""
from
pathlib
import
Path
from
pathlib
import
Path
from
platform
import
system
from
platform
import
system
from
typing
import
List
from
typing
import
List
...
...
python-package/lightgbm/plotting.py
View file @
ebac9e8e
# coding: utf-8
# coding: utf-8
"""Plotting library."""
"""Plotting library."""
import
math
import
math
from
copy
import
deepcopy
from
copy
import
deepcopy
from
io
import
BytesIO
from
io
import
BytesIO
...
...
python-package/lightgbm/sklearn.py
View file @
ebac9e8e
# coding: utf-8
# coding: utf-8
"""Scikit-learn wrapper interface for LightGBM."""
"""Scikit-learn wrapper interface for LightGBM."""
import
copy
import
copy
from
inspect
import
signature
from
inspect
import
signature
from
pathlib
import
Path
from
pathlib
import
Path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment