-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize CI, Update Dependencies, Confirm Support For Python 3.9-3.13 (
#7)
- Loading branch information
1 parent
4746487
commit 38f03ec
Showing
9 changed files
with
155 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run Checks | ||
|
||
on: [ push, pull_request, workflow_dispatch ] | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
run: curl -sSL https://install.python-poetry.org | python3 - | ||
|
||
- name: Configure Poetry | ||
run: poetry config virtualenvs.in-project true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run Ruff linter | ||
run: poetry run ruff check . --no-fix | ||
|
||
- name: Run Ruff formatter | ||
run: poetry run ruff format . --check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ MANIFEST.in | |
dist/ | ||
.venv/ | ||
.idea/ | ||
.ruff_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "to-ascii" | ||
version = "6.0.1" | ||
version = "6.1.0" | ||
description = "Convert videos, images, gifs, and even live video to ASCII art!" | ||
authors = ["Milo Weinberg <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -12,13 +12,13 @@ repository = "https://github.com/Iapetus-11/To-ASCII" | |
keywords = ["ascii", "color", "colors", "ascii-art", "video", "image", "nim"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
numpy = "^1.23.1" | ||
opencv-python = "^4.6.0" | ||
colorama = "^0.4.5" | ||
python = ">=3.9,<4.0" | ||
numpy = "2.0" | ||
opencv-python = "^4.10.0.84" | ||
colorama = "^0.4.6" | ||
nimporter = { version = "^1.1.0", optional = true} | ||
pydantic = "^1.9.1" | ||
click = { version = "^8.1.3", optional = true} | ||
click = "^8.1.8" | ||
|
||
[tool.poetry.extras] | ||
speedups = ["nimporter"] | ||
|
@@ -28,24 +28,12 @@ cli = ["click"] | |
toascii = "toascii.cli:toascii_command" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
isort = "^5.10.1" | ||
black = "^22.8.0" | ||
ruff = "^0.1.4" | ||
ruff = "^0.9.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py38'] | ||
include = '\.pyi?$' | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 100 | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
#ignore = ["E501", "E266", "E203", "E741", "W293", "W291"] | ||
target-version = "py38" | ||
target-version = "py39" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters