Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ in
in/
out
out/

# temp
.temp.md
25 changes: 7 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
Expand All @@ -23,7 +24,7 @@ repos:
- id: prettier

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.0
rev: 0.33.2
hooks:
- id: check-github-workflows
- id: check-renovate
Expand All @@ -33,26 +34,14 @@ repos:
hooks:
- id: actionlint

- repo: https://github.com/mrtazz/checkmake
rev: 0.2.2
- repo: https://github.com/compwa/taplo-pre-commit
rev: v0.9.3
hooks:
- id: checkmake
- id: taplo-format

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
rev: v0.12.2
hooks:
- id: ruff-format
- id: ruff
- id: ruff-check
args: [--fix]

- repo: https://github.com/python-poetry/poetry
rev: 2.1.3
hooks:
- id: poetry-check
args: [--lock]

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.11.0-1
hooks:
- id: shfmt
exclude_types: [] # enable for zsh
2 changes: 1 addition & 1 deletion .renovaterc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "github>DeadNews/renovate-config"]
"extends": ["config:recommended", "github>deadnews/renovate-config"]
}
9 changes: 9 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
[formatting]
align_entries = true
allowed_blank_lines = 1
column_width = 80

[[rule]]
include = ["**/pyproject.toml"]
keys = ["dependencies"]

[rule.formatting]
reorder_keys = true
2 changes: 1 addition & 1 deletion .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ extend-exclude = ["CHANGELOG.md"]

[default]
extend-ignore-re = [
"[a-zA-Z]{0,3}", # ignore short words
"[a-zA-Z]{0,3}", # Ignore short words
]
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
.PHONY: all clean test default checks pc find
.PHONY: all clean default install lock update check pc test docs run

default: checks
default: check

install:
pre-commit install
poetry sync --no-root

uv sync
update:
poetry up --latest
uv sync --upgrade

checks: pc
check: pc
pc:
pre-commit run -a

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

> [Vapoursynth](https://github.com/vapoursynth/vapoursynth) scripts

[![CI: pre-commit](https://results.pre-commit.ci/badge/github/DeadNews/encode-scripts/main.svg)](https://results.pre-commit.ci/latest/github/DeadNews/encode-scripts/main)
[![CI: pre-commit](https://results.pre-commit.ci/badge/github/deadnews/encode-scripts/main.svg)](https://results.pre-commit.ci/latest/github/deadnews/encode-scripts/main)

## Deps

<https://github.com/DeadNews/dnfunc>
<https://github.com/deadnews/dnfunc>
1,270 changes: 0 additions & 1,270 deletions poetry.lock

This file was deleted.

54 changes: 22 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
[tool.poetry]
name = "encode-scripts"
version = "0.0.0"
description = "Vapoursynth scripts"
authors = ["DeadNews <deadnewsgit@gmail.com>"]
[project]
name = "encode-scripts"
description = "Vapoursynth scripts"
version = "0.0.0"
authors = [{ name = "deadnews", email = "deadnewsgit@gmail.com" }]
requires-python = ">=3.13"

[tool.poetry.dependencies]
python = "^3.12"
vapoursynth = "^70"
dnfunc = "^0.1.0"
pyyaml = "^6.0.2"
dependencies = ["vapoursynth>=72", "dnfunc>=0.2.0", "pyyaml>=6.0.2"]

[tool.poetry.group.lint.dependencies]
ruff = "^0.12.1"

[tool.poetry.group.runtime.dependencies]
vspreview = "^0.13.0"
numpy = "^2.3.1"

[tool.pyright]
typeCheckingMode = "off"
[dependency-groups]
dev = ["ruff>=0.12.1", "vspreview>=0.13.0", "numpy>=2.3.1"]

[tool.ruff]
line-length = 99
target-version = "py312" # Until Poetry v2

[tool.ruff.format]
line-ending = "lf"
line-length = 99
format.line-ending = "lf"

[tool.ruff.lint]
flake8-annotations.ignore-fully-untyped = true
flake8-tidy-imports.ban-relative-imports = "all"
pycodestyle.max-doc-length = 129
pycodestyle.max-line-length = 149
pydocstyle.convention = "google"

select = ["ALL"]
ignore = [
"COM812", # Trailing comma missing
Expand All @@ -45,12 +38,9 @@ ignore = [
"T201", # `print` found
]

[tool.ruff.lint.flake8-annotations]
ignore-fully-untyped = true

[tool.ruff.lint.pycodestyle]
max-doc-length = 129
max-line-length = 149
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["ANN", "D", "E501", "PLC1901", "PLR2004", "S"]

[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyright]
typeCheckingMode = "off"
711 changes: 711 additions & 0 deletions uv.lock

Large diffs are not rendered by default.