Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
FredHappyface committed Mar 17, 2024
1 parent 4d58972 commit 93b7ae0
Show file tree
Hide file tree
Showing 30 changed files with 86 additions and 69 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.3
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format

- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.351
rev: v1.1.354
hooks:
- id: pyright

Expand Down
6 changes: 3 additions & 3 deletions documentation/reference/layeredimage/io/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## blendModeLookup

[Show source in common.py:14](../../../../layeredimage/io/common.py#L14)
[Show source in common.py:15](../../../../layeredimage/io/common.py#L15)

Get the blendmode from a lookup table.

Expand All @@ -29,7 +29,7 @@ def blendModeLookup(

## expandLayer

[Show source in common.py:44](../../../../layeredimage/io/common.py#L44)
[Show source in common.py:45](../../../../layeredimage/io/common.py#L45)

#### Arguments

Expand Down Expand Up @@ -58,7 +58,7 @@ def expandLayer(

## expandLayersToCanvas

[Show source in common.py:26](../../../../layeredimage/io/common.py#L26)
[Show source in common.py:27](../../../../layeredimage/io/common.py#L27)

Return layers and throw a warning if the image has groups.

Expand Down
4 changes: 2 additions & 2 deletions documentation/reference/layeredimage/io/gif.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## openLayer_GIF

[Show source in gif.py:13](../../../../layeredimage/io/gif.py#L13)
[Show source in gif.py:14](../../../../layeredimage/io/gif.py#L14)

Open a .gif file into a layered image.

Expand All @@ -28,7 +28,7 @@ def openLayer_GIF(file: str) -> LayeredImage: ...

## saveLayer_GIF

[Show source in gif.py:31](../../../../layeredimage/io/gif.py#L31)
[Show source in gif.py:32](../../../../layeredimage/io/gif.py#L32)

Save a layered image as .gif.

Expand Down
8 changes: 4 additions & 4 deletions documentation/reference/layeredimage/io/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## exportFlatImage

[Show source in __init__.py:114](../../../../layeredimage/io/__init__.py#L114)
[Show source in __init__.py:115](../../../../layeredimage/io/__init__.py#L115)

Export the layered image to a unilayer image file.

Expand All @@ -31,7 +31,7 @@ def exportFlatImage(fileName: str, layeredImage: LayeredImage) -> None: ...

## extNotRecognised

[Show source in __init__.py:26](../../../../layeredimage/io/__init__.py#L26)
[Show source in __init__.py:27](../../../../layeredimage/io/__init__.py#L27)

Output the file extension not recognised error.

Expand All @@ -45,7 +45,7 @@ def extNotRecognised(fileName: str) -> None: ...

## openLayerImage

[Show source in __init__.py:35](../../../../layeredimage/io/__init__.py#L35)
[Show source in __init__.py:36](../../../../layeredimage/io/__init__.py#L36)

Open a layer image file into a layer image object.

Expand Down Expand Up @@ -79,7 +79,7 @@ def openLayerImage(file: str | Path) -> LayeredImage: ...

## saveLayerImage

[Show source in __init__.py:76](../../../../layeredimage/io/__init__.py#L76)
[Show source in __init__.py:77](../../../../layeredimage/io/__init__.py#L77)

Save a layered image to a file.

Expand Down
14 changes: 7 additions & 7 deletions documentation/reference/layeredimage/io/layered.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

## _saveLayer_LAYERED

[Show source in layered.py:104](../../../../layeredimage/io/layered.py#L104)
[Show source in layered.py:105](../../../../layeredimage/io/layered.py#L105)

Save a layered image as .layered.

Expand All @@ -35,7 +35,7 @@ def _saveLayer_LAYERED(

## grabLayer_LAYERED

[Show source in layered.py:82](../../../../layeredimage/io/layered.py#L82)
[Show source in layered.py:83](../../../../layeredimage/io/layered.py#L83)

Grab an image from .layered.

Expand All @@ -55,7 +55,7 @@ def grabLayer_LAYERED(

## openLayer_LAYERED

[Show source in layered.py:20](../../../../layeredimage/io/layered.py#L20)
[Show source in layered.py:21](../../../../layeredimage/io/layered.py#L21)

Open a .layered file into a layered image.

Expand All @@ -73,7 +73,7 @@ def openLayer_LAYERED(file: str) -> LayeredImage: ...

## openLayer_LAYEREDC

[Show source in layered.py:141](../../../../layeredimage/io/layered.py#L141)
[Show source in layered.py:142](../../../../layeredimage/io/layered.py#L142)

Open a .layeredc file into a layered image.

Expand All @@ -91,7 +91,7 @@ def openLayer_LAYEREDC(file: str) -> LayeredImage: ...

## saveLayer_LAYERED

[Show source in layered.py:99](../../../../layeredimage/io/layered.py#L99)
[Show source in layered.py:100](../../../../layeredimage/io/layered.py#L100)

Save a layered image as .layered.

Expand All @@ -109,7 +109,7 @@ def saveLayer_LAYERED(fileName: str, layeredImage: LayeredImage) -> None: ...

## saveLayer_LAYEREDC

[Show source in layered.py:146](../../../../layeredimage/io/layered.py#L146)
[Show source in layered.py:147](../../../../layeredimage/io/layered.py#L147)

Save a layeredc image as .layered.

Expand All @@ -127,7 +127,7 @@ def saveLayer_LAYEREDC(fileName: str, layeredImage: LayeredImage) -> None: ...

## writeImage_LAYERED

[Show source in layered.py:126](../../../../layeredimage/io/layered.py#L126)
[Show source in layered.py:127](../../../../layeredimage/io/layered.py#L127)

Write an image to the archive.

Expand Down
4 changes: 2 additions & 2 deletions documentation/reference/layeredimage/io/lsr.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## openLayer_LSR

[Show source in lsr.py:12](../../../../layeredimage/io/lsr.py#L12)
[Show source in lsr.py:13](../../../../layeredimage/io/lsr.py#L13)

Open a .lsr file into a layered image.

Expand All @@ -28,7 +28,7 @@ def openLayer_LSR(file: str) -> LayeredImage: ...

## saveLayer_LSR

[Show source in lsr.py:37](../../../../layeredimage/io/lsr.py#L37)
[Show source in lsr.py:38](../../../../layeredimage/io/lsr.py#L38)

Save a layered image as .lsr.

Expand Down
6 changes: 3 additions & 3 deletions documentation/reference/layeredimage/io/ora.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## addLayer_ORA

[Show source in ora.py:129](../../../../layeredimage/io/ora.py#L129)
[Show source in ora.py:130](../../../../layeredimage/io/ora.py#L130)

Update the project with a shiny new layer.

Expand All @@ -25,7 +25,7 @@ def addLayer_ORA(project: Any, layer: Any, blendLookup: dict[BlendType, str]) ->

## openLayer_ORA

[Show source in ora.py:15](../../../../layeredimage/io/ora.py#L15)
[Show source in ora.py:16](../../../../layeredimage/io/ora.py#L16)

Open an .ora file into a layered image.

Expand All @@ -43,7 +43,7 @@ def openLayer_ORA(file: str) -> LayeredImage: ...

## saveLayer_ORA

[Show source in ora.py:85](../../../../layeredimage/io/ora.py#L85)
[Show source in ora.py:86](../../../../layeredimage/io/ora.py#L86)

Save a layered image as .ora.

Expand Down
4 changes: 2 additions & 2 deletions documentation/reference/layeredimage/io/pdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## openLayer_PDN

[Show source in pdn.py:15](../../../../layeredimage/io/pdn.py#L15)
[Show source in pdn.py:16](../../../../layeredimage/io/pdn.py#L16)

Open a .pdn file into a layered image.

Expand All @@ -28,7 +28,7 @@ def openLayer_PDN(file: str) -> LayeredImage: ...

## saveLayer_PDN

[Show source in pdn.py:54](../../../../layeredimage/io/pdn.py#L54)
[Show source in pdn.py:55](../../../../layeredimage/io/pdn.py#L55)

Save a layered image as .pdn.

Expand Down
4 changes: 2 additions & 2 deletions documentation/reference/layeredimage/io/psd.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## openLayer_PSD

[Show source in psd.py:14](../../../../layeredimage/io/psd.py#L14)
[Show source in psd.py:15](../../../../layeredimage/io/psd.py#L15)

Open a .psd file into a layered image.

Expand All @@ -28,7 +28,7 @@ def openLayer_PSD(file: str) -> LayeredImage: ...

## saveLayer_PSD

[Show source in psd.py:84](../../../../layeredimage/io/psd.py#L84)
[Show source in psd.py:85](../../../../layeredimage/io/psd.py#L85)

Save a layered image as .psd.

Expand Down
4 changes: 2 additions & 2 deletions documentation/reference/layeredimage/io/tiff.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## openLayer_TIFF

[Show source in tiff.py:13](../../../../layeredimage/io/tiff.py#L13)
[Show source in tiff.py:14](../../../../layeredimage/io/tiff.py#L14)

Open a .tiff or a .tif file into a layered image.

Expand All @@ -28,7 +28,7 @@ def openLayer_TIFF(file: str) -> LayeredImage: ...

## saveLayer_TIFF

[Show source in tiff.py:52](../../../../layeredimage/io/tiff.py#L52)
[Show source in tiff.py:53](../../../../layeredimage/io/tiff.py#L53)

Save a layered image as .tiff or .tif.

Expand Down
4 changes: 2 additions & 2 deletions documentation/reference/layeredimage/io/webp.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## openLayer_WEBP

[Show source in webp.py:13](../../../../layeredimage/io/webp.py#L13)
[Show source in webp.py:14](../../../../layeredimage/io/webp.py#L14)

Open a .webp file into a layered image.

Expand All @@ -28,7 +28,7 @@ def openLayer_WEBP(file: str) -> LayeredImage: ...

## saveLayer_WEBP

[Show source in webp.py:27](../../../../layeredimage/io/webp.py#L27)
[Show source in webp.py:28](../../../../layeredimage/io/webp.py#L28)

Save a layered image as .webp.

Expand Down
4 changes: 2 additions & 2 deletions documentation/reference/layeredimage/io/xcf.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## openLayer_XCF

[Show source in xcf.py:14](../../../../layeredimage/io/xcf.py#L14)
[Show source in xcf.py:15](../../../../layeredimage/io/xcf.py#L15)

Open an .xcf file into a layered image.

Expand All @@ -28,7 +28,7 @@ def openLayer_XCF(file: str) -> LayeredImage: ...

## saveLayer_XCF

[Show source in xcf.py:134](../../../../layeredimage/io/xcf.py#L134)
[Show source in xcf.py:135](../../../../layeredimage/io/xcf.py#L135)

Save a layered image as .xcf.

Expand Down
Loading

0 comments on commit 93b7ae0

Please sign in to comment.