Skip to content

Commit e484a58

Browse files
authored
Merge pull request #468 from lsst/tickets/DM-48788
DM-48788: Switch to ruff format
2 parents f992f36 + e6d62a5 commit e484a58

57 files changed

Lines changed: 143 additions & 112 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,13 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- id: check-toml
9-
- repo: https://github.com/psf/black
10-
rev: 25.1.0
11-
hooks:
12-
- id: black
13-
# It is recommended to specify the latest version of Python
14-
# supported by your project here, or alternatively use
15-
# pre-commit's default_language_version, see
16-
# https://pre-commit.com/#top_level-default_language_version
17-
language_version: python3.11
18-
- repo: https://github.com/pycqa/isort
19-
rev: 6.0.0
20-
hooks:
21-
- id: isort
22-
name: isort (python)
239
- repo: https://github.com/astral-sh/ruff-pre-commit
2410
# Ruff version.
25-
rev: v0.9.3
11+
rev: v0.9.4
2612
hooks:
2713
- id: ruff
14+
args: [--fix]
15+
- id: ruff-format
2816
- repo: https://github.com/numpy/numpydoc
2917
rev: "v1.8.0"
3018
hooks:

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import numpy as np
2+
13
import lsst.afw.image as afwImage
24
import lsst.afw.table as afwTable
35
import lsst.pex.config as pexConfig
46
import lsst.pipe.base as pipeBase
5-
import numpy as np
67
from lsst.geom import Point2I
78
from lsst.pipe.base import connectionTypes
89

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from collections.abc import Mapping
22

3+
import numpy as np
4+
35
import lsst.afw.image as afwImage
46
import lsst.afw.table as afwTable
57
import lsst.pex.config as pexConfig
68
import lsst.pipe.base as pipeBase
7-
import numpy as np
89
from lsst.geom import Point2I
910
from lsst.pipe.base import connectionTypes
1011

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from collections.abc import Mapping
22

3+
import numpy as np
4+
35
import lsst.afw.image as afwImage
46
import lsst.afw.math as afwMath
57
import lsst.afw.table as afwTable
68
import lsst.pex.config as pexConfig
79
import lsst.pipe.base as pipeBase
8-
import numpy as np
910
from lsst.geom import Point2I
1011
from lsst.pipe.base import connectionTypes
1112

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV4.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from collections.abc import Mapping
22

3+
import numpy as np
4+
35
import lsst.afw.image as afwImage
46
import lsst.afw.math as afwMath
57
import lsst.afw.table as afwTable
68
import lsst.pex.config as pexConfig
79
import lsst.pipe.base as pipeBase
8-
import numpy as np
910
from lsst.geom import Point2I
1011
from lsst.pipe.base import connectionTypes
1112

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV5.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import math
22
from collections.abc import Mapping
33

4+
import numpy as np
5+
46
import lsst.afw.image as afwImage
57
import lsst.afw.math as afwMath
68
import lsst.afw.table as afwTable
79
import lsst.pex.config as pexConfig
810
import lsst.pipe.base as pipeBase
9-
import numpy as np
1011
from lsst.geom import Point2I
1112
from lsst.pipe.base import connectionTypes
1213

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV6.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import math
22
from collections.abc import Mapping
33

4+
import numpy as np
5+
46
import lsst.afw.image as afwImage
57
import lsst.afw.math as afwMath
68
import lsst.afw.table as afwTable
79
import lsst.pex.config as pexConfig
810
import lsst.pipe.base as pipeBase
9-
import numpy as np
1011
from lsst.geom import Point2I
1112
from lsst.pipe.base import connectionTypes
1213

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV7.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import math
22
from collections.abc import Mapping
33

4+
import numpy as np
5+
46
import lsst.afw.image as afwImage
57
import lsst.afw.math as afwMath
68
import lsst.afw.table as afwTable
79
import lsst.pex.config as pexConfig
810
import lsst.pipe.base as pipeBase
9-
import numpy as np
1011
from lsst.geom import Point2I
1112
from lsst.pipe.base import connectionTypes
1213

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import operator
44
from collections.abc import Mapping
55

6+
import numpy as np
7+
68
import lsst.afw.image as afwImage
79
import lsst.afw.math as afwMath
810
import lsst.afw.table as afwTable
911
import lsst.pex.config as pexConfig
1012
import lsst.pipe.base as pipeBase
11-
import numpy as np
1213
from lsst.geom import Point2I
1314
from lsst.pipe.base import connectionTypes
1415

doc/_static/pipe_base/PipelineTask_Examples/aperturePipelineTaskV9.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import operator
44
from collections.abc import Mapping
55

6+
import numpy as np
7+
68
import lsst.afw.image as afwImage
79
import lsst.afw.math as afwMath
810
import lsst.afw.table as afwTable
911
import lsst.pex.config as pexConfig
1012
import lsst.pipe.base as pipeBase
11-
import numpy as np
1213
from lsst.geom import Point2I
1314
from lsst.pipe.base import connectionTypes
1415

0 commit comments

Comments
 (0)