File tree Expand file tree Collapse file tree 4 files changed +27
-12
lines changed Expand file tree Collapse file tree 4 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Continuous Integration
2
2
3
- # alwas run CI on new commits to any branch
3
+ # always run CI on new commits to any branch
4
4
on : push
5
5
6
6
jobs :
20
20
- name : Set up Docker Buildx
21
21
uses : docker/setup-buildx-action@v3
22
22
with :
23
- # 'driver: docker' allows one build to re-use images from a prior build
23
+ # 'driver: docker' allows one build to reuse images from a prior build
24
24
# ref: https://github.com/docker/setup-buildx-action/issues/251
25
25
driver : docker
26
26
install : true
Original file line number Diff line number Diff line change @@ -11,14 +11,8 @@ repos:
11
11
- id : check-toml
12
12
- id : end-of-file-fixer
13
13
- id : trailing-whitespace
14
- - repo : https://github.com/pycqa/isort
15
- rev : 5.13.2
16
- hooks :
17
- - id : isort
18
- name : isort (python)
19
- args : ["--settings-path", "pyproject.toml"]
20
14
- repo : https://github.com/pre-commit/mirrors-mypy
21
- rev : v1.14.0
15
+ rev : v1.14.1
22
16
hooks :
23
17
- id : mypy
24
18
args : ["--config-file", "pyproject.toml"]
31
25
hooks :
32
26
# Run the linter.
33
27
- id : ruff
34
- args : ["--config", "pyproject.toml"]
28
+ args : ["--config", "pyproject.toml", "--fix" ]
35
29
types_or : [jupyter, python]
36
30
# Run the formatter.
37
31
- id : ruff-format
51
45
rev : v1.35.1
52
46
hooks :
53
47
- id : yamllint
48
+ - repo : https://github.com/codespell-project/codespell
49
+ rev : v2.3.0
50
+ hooks :
51
+ - id : codespell
52
+ additional_dependencies : [tomli]
53
+ args : ["--toml", "pyproject.toml"]
Original file line number Diff line number Diff line change 1
1
# Testing ` lightgbm.dask `
2
2
3
- [ ![ GitHub Actions status ] ( https://github.com/jameslamb/lightgbm-dask-testing/workflows/Continuous%20Integration /badge.svg?branch=main )] ( https://github.com/jameslamb/lightgbm-dask-testing/actions )
3
+ [ ![ GitHub Actions] ( https://github.com/jameslamb/lightgbm-dask-testing/actions/ workflows/main.yml /badge.svg?branch=main )] ( https://github.com/jameslamb/lightgbm-dask-testing/actions/workflows/main.yml )
4
4
5
5
This repository can be used to test and develop changes to LightGBM's Dask integration.
6
6
It contains the following useful features:
@@ -110,7 +110,7 @@ pip install --upgrade awscli
110
110
Next, configure your shell to make authenticated requests to AWS.
111
111
If you've never done this, you can see [ the AWS CLI docs] ( https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html ) .
112
112
113
- The rest of this section assums that the shell variables ` AWS_SECRET_ACCESS_KEY ` and ` AWS_ACCESS_KEY_ID ` have been sett.
113
+ The rest of this section assumes that the shell variables ` AWS_SECRET_ACCESS_KEY ` and ` AWS_ACCESS_KEY_ID ` have been sett.
114
114
115
115
I like to set these by keeping them in a file
116
116
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ select = [
8
8
" E" ,
9
9
# pyflakes
10
10
" F" ,
11
+ # isort
12
+ " I" ,
11
13
# NumPy-specific rules
12
14
" NPY" ,
13
15
# pylint
@@ -18,6 +20,19 @@ select = [
18
20
" SIM401" ,
19
21
]
20
22
23
+ [tool .ruff .lint .isort ]
24
+
25
+ # prevent ruff from thinking that 'lightgbm.dask' imports should
26
+ # come after all others
27
+ known-third-party = [
28
+ " dask" ,
29
+ " dask_cloudprovider" ,
30
+ " lightgbm" ,
31
+ " pandas" ,
32
+ " scipy" ,
33
+ " sklearn" ,
34
+ ]
35
+
21
36
[tool .ruff .lint .per-file-ignores ]
22
37
"*.ipynb" = [
23
38
# (pylint) Unnecessary list() call
You can’t perform that action at this time.
0 commit comments