Skip to content

Remove unused imports based on lint workflow errors#6

Merged
nafasebra merged 3 commits into
nafasebra:mainfrom
PsymoNiko:main
May 1, 2026
Merged

Remove unused imports based on lint workflow errors#6
nafasebra merged 3 commits into
nafasebra:mainfrom
PsymoNiko:main

Conversation

@PsymoNiko

Copy link
Copy Markdown
Contributor
2026-05-01T11:58:58.9692204Z ##[group]Run ruff check .
ruff check .
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.11.15/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.15/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.15/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.15/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.15/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.15/x64/lib
F401 [*] `pathlib.Path` imported but unused
  --> scripts/labeler.py:15:21
   |
13 | import sys
14 | from github import Github
15 | from pathlib import Path
   |                     ^^^^
16 | from typing import Dict, List, Set
   |
help: Remove unused import: `pathlib.Path`

F401 [*] `typing.List` imported but unused
  --> scripts/labeler.py:16:26
   |
14 | from github import Github
15 | from pathlib import Path
16 | from typing import Dict, List, Set
   |                          ^^^^
   |
help: Remove unused import: `typing.List`

F401 [*] `os` imported but unused
 --> src/tinypixels/compressor.py:1:8
  |
1 | import os
  |        ^^
2 | import sys
3 | import argparse
  |
help: Remove unused import: `os`

F401 [*] `sys` imported but unused
 --> src/tinypixels/compressor.py:2:8
  |
1 | import os
2 | import sys
  |        ^^^
3 | import argparse
4 | from pathlib import Path
  |
help: Remove unused import: `sys`

F401 [*] `argparse` imported but unused
 --> src/tinypixels/compressor.py:3:8
  |
1 | import os
2 | import sys
3 | import argparse
  |        ^^^^^^^^
4 | from pathlib import Path
5 | from PIL import Image
  |
help: Remove unused import: `argparse`

F401 [*] `pathlib.Path` imported but unused
 --> tests/test_compressor.py:2:21
  |
1 | import pytest
2 | from pathlib import Path
  |                     ^^^^
3 | from PIL import Image
4 | import shutil
  |
help: Remove unused import: `pathlib.Path`

F401 [*] `shutil` imported but unused
 --> tests/test_compressor.py:4:8
  |
2 | from pathlib import Path
3 | from PIL import Image
4 | import shutil
  |        ^^^^^^
5 |
6 | from tinypixels.compressor import format_size, compress_image, compress_folder
  |
help: Remove unused import: `shutil`

Found 7 errors.
[*] 7 fixable with the `--fix` option.
Process completed with exit code 1.

@github-actions github-actions Bot added the enhancement New feature or request label May 1, 2026

@PsymoNiko PsymoNiko left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflows checked @nafasebra

@nafasebra nafasebra merged commit b3b5761 into nafasebra:main May 1, 2026
4 checks passed
@nafasebra

Copy link
Copy Markdown
Owner

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants