looks 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- looks-0.0.1/.gitattributes +1 -0
- looks-0.0.1/.github/workflows/ci.yml +56 -0
- looks-0.0.1/.gitignore +120 -0
- looks-0.0.1/KICKOFF.md +96 -0
- looks-0.0.1/LICENSE +21 -0
- looks-0.0.1/PKG-INFO +24 -0
- looks-0.0.1/README.md +5 -0
- looks-0.0.1/looks/__init__.py +6 -0
- looks-0.0.1/looks/tests/__init__.py +3 -0
- looks-0.0.1/looks/tests/test_smoke.py +7 -0
- looks-0.0.1/pyproject.toml +156 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.ipynb linguist-documentation
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# wads CI — calls the reusable workflow hosted in i2mint/wads.
|
|
2
|
+
#
|
|
3
|
+
# All configuration comes from this repo's pyproject.toml [tool.wads.ci.*].
|
|
4
|
+
# To customize the workflow itself (rare), replace this file with the
|
|
5
|
+
# full inline template `wads/data/github_ci_uv.yml` from i2mint/wads.
|
|
6
|
+
#
|
|
7
|
+
# Pinning: `@master` floats with wads. If you need version stability for
|
|
8
|
+
# a release-sensitive repo, change `@master` to a wads tag (e.g. `@0.2.15`;
|
|
9
|
+
# tags have no `v` prefix). A stub whose `secrets:` block passes the JSON
|
|
10
|
+
# transport (the default below) needs a tag from a release after 0.2.14 —
|
|
11
|
+
# older tags don't declare that secret and GitHub then rejects the
|
|
12
|
+
# workflow at parse time.
|
|
13
|
+
# CI failure does not block a published release — it blocks the publish
|
|
14
|
+
# step itself — so floating master is generally safe.
|
|
15
|
+
#
|
|
16
|
+
# Permissions: GitHub validates that the caller grants AT LEAST the
|
|
17
|
+
# permissions any job in the called workflow requests — at workflow-parse
|
|
18
|
+
# time, not at run-time, even if the job would be skipped via `if:`.
|
|
19
|
+
# The reusable workflow needs:
|
|
20
|
+
# contents: write for the publish job's version-bump push-back
|
|
21
|
+
# and for the github-pages job's gh-pages branch push
|
|
22
|
+
# pages: write for the github-pages job's REST API Pages config
|
|
23
|
+
# Both default to `write` on org-account GITHUB_TOKEN and need to be
|
|
24
|
+
# granted explicitly on personal-account callers (where the default is
|
|
25
|
+
# read-only). No `id-token: write` needed — the publish-github-pages
|
|
26
|
+
# action uses peaceiris/actions-gh-pages (branch-based) + REST API,
|
|
27
|
+
# not the OIDC `actions/deploy-pages` flow.
|
|
28
|
+
name: Continuous Integration
|
|
29
|
+
on: [push, pull_request]
|
|
30
|
+
jobs:
|
|
31
|
+
ci:
|
|
32
|
+
uses: i2mint/wads/.github/workflows/uv-ci.yml@master
|
|
33
|
+
permissions:
|
|
34
|
+
contents: write
|
|
35
|
+
pages: write
|
|
36
|
+
# Transport: NAMED secrets, not the whole `secrets` context.
|
|
37
|
+
#
|
|
38
|
+
# The generated default is `WADS_CI_SECRETS_JSON: ${{ toJSON(toJSON(secrets)) }}`,
|
|
39
|
+
# which hands the reusable workflow every secret this repo can read. In a
|
|
40
|
+
# NEW repository that trips GitHub's malicious-workflow scanner — the run
|
|
41
|
+
# is created, then held with conclusion `action_required` and ZERO jobs,
|
|
42
|
+
# and the only place the reason appears is the run's HTML page:
|
|
43
|
+
# "GitHub detected that this workflow file may be malicious. It will not
|
|
44
|
+
# run until someone with write access approves it."
|
|
45
|
+
# `gh run view`, the jobs API, the check-runs API and the annotations API
|
|
46
|
+
# are all silent, and `POST .../approve` refuses ("not from a fork pull
|
|
47
|
+
# request"), so the run cannot be released from the CLI at all.
|
|
48
|
+
#
|
|
49
|
+
# Naming the three secrets this repo actually has both clears the scanner
|
|
50
|
+
# and is the smaller surface, which is what `wads-migrate ci-to-stub
|
|
51
|
+
# --transport named` exists to produce. Add a line here when you add a
|
|
52
|
+
# secret; an absent name is simply empty (every input is `required: false`).
|
|
53
|
+
secrets:
|
|
54
|
+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
55
|
+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
56
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
looks-0.0.1/.gitignore
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
.claude/handoffs/
|
|
2
|
+
.claude/scratch/
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
.DS_Store
|
|
11
|
+
# C extensions
|
|
12
|
+
*.so
|
|
13
|
+
|
|
14
|
+
# TLS certificates
|
|
15
|
+
## Ignore all PEM files anywhere
|
|
16
|
+
*.pem
|
|
17
|
+
## Also ignore any certs directory
|
|
18
|
+
certs/
|
|
19
|
+
|
|
20
|
+
# Distribution / packaging
|
|
21
|
+
.Python
|
|
22
|
+
build/
|
|
23
|
+
develop-eggs/
|
|
24
|
+
dist/
|
|
25
|
+
downloads/
|
|
26
|
+
eggs/
|
|
27
|
+
.eggs/
|
|
28
|
+
lib/
|
|
29
|
+
lib64/
|
|
30
|
+
parts/
|
|
31
|
+
sdist/
|
|
32
|
+
var/
|
|
33
|
+
wheels/
|
|
34
|
+
*.egg-info/
|
|
35
|
+
.installed.cfg
|
|
36
|
+
*.egg
|
|
37
|
+
MANIFEST
|
|
38
|
+
_build
|
|
39
|
+
|
|
40
|
+
# PyInstaller
|
|
41
|
+
# Usually these files are written by a python script from a template
|
|
42
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
43
|
+
*.manifest
|
|
44
|
+
*.spec
|
|
45
|
+
|
|
46
|
+
# Installer logs
|
|
47
|
+
pip-log.txt
|
|
48
|
+
pip-delete-this-directory.txt
|
|
49
|
+
|
|
50
|
+
# Unit test / coverage reports
|
|
51
|
+
htmlcov/
|
|
52
|
+
.tox/
|
|
53
|
+
.coverage
|
|
54
|
+
.coverage.*
|
|
55
|
+
.cache
|
|
56
|
+
nosetests.xml
|
|
57
|
+
coverage.xml
|
|
58
|
+
*.cover
|
|
59
|
+
.hypothesis/
|
|
60
|
+
.pytest_cache/
|
|
61
|
+
|
|
62
|
+
# Translations
|
|
63
|
+
*.mo
|
|
64
|
+
*.pot
|
|
65
|
+
|
|
66
|
+
# Django stuff:
|
|
67
|
+
*.log
|
|
68
|
+
local_settings.py
|
|
69
|
+
db.sqlite3
|
|
70
|
+
|
|
71
|
+
# Flask stuff:
|
|
72
|
+
instance/
|
|
73
|
+
.webassets-cache
|
|
74
|
+
|
|
75
|
+
# Scrapy stuff:
|
|
76
|
+
.scrapy
|
|
77
|
+
|
|
78
|
+
# Sphinx documentation
|
|
79
|
+
docs/_build/
|
|
80
|
+
docs/*
|
|
81
|
+
|
|
82
|
+
# PyBuilder
|
|
83
|
+
target/
|
|
84
|
+
|
|
85
|
+
# Jupyter Notebook
|
|
86
|
+
.ipynb_checkpoints
|
|
87
|
+
|
|
88
|
+
# pyenv
|
|
89
|
+
.python-version
|
|
90
|
+
|
|
91
|
+
# celery beat schedule file
|
|
92
|
+
celerybeat-schedule
|
|
93
|
+
|
|
94
|
+
# SageMath parsed files
|
|
95
|
+
*.sage.py
|
|
96
|
+
|
|
97
|
+
# Environments
|
|
98
|
+
.env
|
|
99
|
+
.venv
|
|
100
|
+
env/
|
|
101
|
+
venv/
|
|
102
|
+
ENV/
|
|
103
|
+
env.bak/
|
|
104
|
+
venv.bak/
|
|
105
|
+
|
|
106
|
+
# Spyder project settings
|
|
107
|
+
.spyderproject
|
|
108
|
+
.spyproject
|
|
109
|
+
|
|
110
|
+
# Rope project settings
|
|
111
|
+
.ropeproject
|
|
112
|
+
|
|
113
|
+
# mkdocs documentation
|
|
114
|
+
/site
|
|
115
|
+
|
|
116
|
+
# mypy
|
|
117
|
+
.mypy_cache/
|
|
118
|
+
|
|
119
|
+
# PyCharm
|
|
120
|
+
.idea
|
looks-0.0.1/KICKOFF.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# looks — kickoff
|
|
2
|
+
|
|
3
|
+
*Written 2026-09-02 by the session that built the Que Calor music videos and hit the gap this package fills. Delete this file once `docs/` and `README.md` carry its content.*
|
|
4
|
+
|
|
5
|
+
## What this is
|
|
6
|
+
|
|
7
|
+
A **facade over video stylization** — named effects that compile to a backend command, with a per-effect **licence tier** so a caller can demand "commercial-safe only" and get a refusal rather than a surprise.
|
|
8
|
+
|
|
9
|
+
PyPI has ~8 ffmpeg wrappers. None of them is this. The two missing things:
|
|
10
|
+
|
|
11
|
+
1. **A registry of named effects carrying a licence tier.** Every existing wrapper assumes you know what you're linking.
|
|
12
|
+
2. **Pure-data effect specs, separable from execution** — the `falaw.Plan` shape. A `Look` should be inspectable, persistable, diffable and *costable* before anything runs.
|
|
13
|
+
|
|
14
|
+
**It is an extraction, not greenfield.** `muvid/visualize/visuals.py` already has ~80% of the shape: a frozen `VisualPlan` (ffmpeg inputs + filter chains + output label), a `register_visual` open-closed registry, and an escape hatch for non-ffmpeg backends that return a rendered path. Generalise that from *audio→video* to *video→video*. Read it before designing anything.
|
|
15
|
+
|
|
16
|
+
Background: **thorwhalen/muvid#63** is the proposal issue and has a long comment recording a measured design constraint (below). Read both.
|
|
17
|
+
|
|
18
|
+
## Non-negotiables
|
|
19
|
+
|
|
20
|
+
- **Zero hard media dependencies.** `pyproject.toml` declares nothing but stdlib; every backend is an optional extra. Specifically **never** depend on `av` (its wheel bundles `libx264`/`libx265` GPL-2.0+ dylibs under BSD-3 metadata) and **never** on `imageio-ffmpeg` (bundles an `--enable-gpl` binary). ffmpeg is *shelled out to*, never linked.
|
|
21
|
+
- **The licence tier is a refusal, not a warning**, and it is the default ceiling. `Look.max_tier` defaults to "shells out to a copyleft binary is fine"; a restricted-tier effect **raises** unless explicitly opted into. Same rule the video_gen group states for the falaw licence ledger: unknown is a refusal.
|
|
22
|
+
- **Keep two things out** or this becomes a second muvid:
|
|
23
|
+
- **Execution and muxing.** muvid's `assemble.py` owns a bounded-memory invariant won after 30-cut OOM kills. A convenience `looks.render(clip, look)` *will* get used and *will* rebuild one big `-filter_complex`.
|
|
24
|
+
- **Cut/EDL decisions.** An `Effect.at` says *where a look applies*, never *where a cut is*.
|
|
25
|
+
- Follow the house style: functional over OOP, dataclasses for data, `Protocol` over ABC, keyword-only past the 3rd argument, no magic numbers, module docstring on every module.
|
|
26
|
+
|
|
27
|
+
## Validated starting material — a real look, already built
|
|
28
|
+
|
|
29
|
+
The Que Calor V2 stylizer works and is in `~/Downloads/que_calor/work/style/` (see that folder's `README.md` and `LEDGER.md`). It is the first real customer and should become an example. What it established, all measured:
|
|
30
|
+
|
|
31
|
+
- **The chain that works:** flatten (`cv2.pyrMeanShiftFiltering`) → 3D LUT (`lut3d`) → posterise. Frame-independent by construction — no temporal state, one fixed LUT — so it **cannot flicker**. Measured frame-to-frame change was 0.89–1.12× the source's own.
|
|
32
|
+
- **`pyrMeanShiftFiltering`, never `edgePreservingFilter`.** The latter smooths *across* object boundaries and dissolves figures into the background. Mean-shift clusters in colour *and* position, so boundaries survive. This is the difference between a stylised look and the mushy-edges artefact.
|
|
33
|
+
- **A gradient-map LUT is the right vehicle when the target's hue tracks its lightness.** Measure the target before assuming a filter. The reference here had **no black, no white and no outlines** — so the classic "cartoonify" (bilateral + adaptive-threshold black edges) would have been exactly wrong.
|
|
34
|
+
- **The flattening scale must be per-source, and this is the subtle one.** The downscale/upscale round trip — not the filter's colour radius — governs retained sharpness (measured post-LUT: ~150 at full res, ~85 at 0.75, ~44 at 0.5; the radius barely moves it). A single global setting made the *softest* source softer still, so it became the mushiest thing on screen. **The right auto-rule normalises the OUTPUT across sources, not the input** — don't "sharpen the soft one"; measure post-effect sharpness per source and pick parameters that land them in family. Full detail in the muvid#63 comment.
|
|
35
|
+
|
|
36
|
+
That last point is the strongest argument for the design: an `Effect`'s parameters must resolve against *the clip they apply to*, not be fixed at the top of a `Look`.
|
|
37
|
+
|
|
38
|
+
## Refactor out of `mixing`, in this order
|
|
39
|
+
|
|
40
|
+
1. `mixing/video/video_util.py` entire — `SOCIAL_SIZES`, `resize_to_dimensions` (stretch/fit/fill/social), `normalize_video_dimensions`, plus the duplicated centre-crop in `thumbnail.py`. This is the geometry tier.
|
|
41
|
+
2. The six transitions in `video_concat.py` (`crossfade_transition` et al).
|
|
42
|
+
|
|
43
|
+
Do this as a *deprecation-free* move — the group's prime directive is clean shape over backward compatibility, and mixing has no external users for these.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# How to run this session
|
|
48
|
+
|
|
49
|
+
## 1. Set up the project with `wads` — do this first
|
|
50
|
+
|
|
51
|
+
Use the `wads` scaffolding, not a hand-rolled `pyproject.toml`:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
python -c "from wads.populate import populate_pkg_dir; populate_pkg_dir('$PP/t/looks', description='A facade over video stylization: named effects with licence tiers', root_url='https://github.com/thorwhalen')"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Read `~/.claude/skills/python-project-structure/SKILL.md` and the `wads-migrate` skill first. The CI is driven entirely by `[tool.wads.ci]` in `pyproject.toml`.
|
|
58
|
+
|
|
59
|
+
## 2. Claim the name on PyPI immediately, at 0.0.0
|
|
60
|
+
|
|
61
|
+
**Before writing real code.** `looks` was verified free on 2026-09-02, but a name is only yours once published. Publish a stub at version `0.0.0`, confirm it appears, and only then invest.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
gh repo create thorwhalen/looks --public --source=. --remote=origin
|
|
65
|
+
priv git_ops set-repo-secrets thorwhalen/looks # ← BEFORE the first push, or CI 403s on publish
|
|
66
|
+
git add -A && git commit -m "looks: scaffolding" && git push -u origin main
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**`priv git_ops set-repo-secrets thorwhalen/looks` must run before you push.** A repo without `PYPI_PASSWORD` fails the publish step with a 403 and you discover it after the fact — this has bitten several packages in this fleet.
|
|
70
|
+
|
|
71
|
+
Then watch it: `gh run watch` / `gh run list -R thorwhalen/looks`. Confirm `pip index versions looks` (or the PyPI JSON API) shows 0.0.0 before continuing.
|
|
72
|
+
|
|
73
|
+
## 3. Then: as soon as anything works, push and let CI publish
|
|
74
|
+
|
|
75
|
+
Don't batch. The point of steps 2–3 is to prove the whole path — name, secrets, CI, PyPI — while the package is trivial and a failure costs nothing. A merge to the default branch publishes.
|
|
76
|
+
|
|
77
|
+
## 4. Research before designing
|
|
78
|
+
|
|
79
|
+
**Search what already exists first**, with `ir` (the local agentic retrieval substrate — load its `ir-search` skill). Search the local ecosystem *and* your own past sessions: this fleet has a lot of prior art on ffmpeg filter chains, colour handling and registries, and `muvid.visualize` is only the most obvious piece.
|
|
80
|
+
|
|
81
|
+
Then **trigger your own research** into `docs/`, and use it to plan. Concretely:
|
|
82
|
+
|
|
83
|
+
- Put every research output in `docs/` as a dated, referenced note. Version-anchor claims about fast-moving dependencies — an unanchored finding about a library is a future bug.
|
|
84
|
+
- Fan out agents on the questions that actually branch the design. Good candidates: what the effect-spec type should be (survey `falaw.Plan`, `an`'s `VisualPlan`, `burns.BurnsPath`); what the licence tiers should be and how each backend maps onto them; whether the GLSL/shader path is worth a backend; what the state of neural restyling is *with commercially-usable licences* (note AnimeGANv2 and White-box Cartoonization are both non-commercial — that killed the obvious route here).
|
|
85
|
+
- **Give agents the measured facts above** rather than letting them rediscover them. They cost real time to establish.
|
|
86
|
+
|
|
87
|
+
## 5. Land things
|
|
88
|
+
|
|
89
|
+
Branch → PR → CI green → squash-merge → back to main. Merging publishes; that's intended.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Open questions for the owner
|
|
94
|
+
|
|
95
|
+
- **Should `burns` become a `looks` backend, or stay separate?** `burns.BurnsPath.evaluate(t) -> Rect` already *is* a pan/zoom spec, render-agnostic and JSON-serialisable, and `burns/backends.py`'s docstring names an ffmpeg fast-path as its intended second backend. There is a real argument that geometry-over-time belongs in `burns` and only *pixel* effects belong here. Decide before writing a second geometry type.
|
|
96
|
+
- **Does `looks` own normalisation as well as stylization?** The Que Calor edit needed both — a measured per-clip continuity grade *and* an extreme look. They compile to the same `vf` insertion point. Treating them as one vocabulary is tempting and probably right, but say so deliberately.
|
looks-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 thorwhalen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
looks-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: looks
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A facade over video stylization: named effects with licence tiers
|
|
5
|
+
Project-URL: Homepage, https://github.com/thorwhalen/looks
|
|
6
|
+
Project-URL: Repository, https://github.com/thorwhalen/looks
|
|
7
|
+
Project-URL: Documentation, https://thorwhalen.github.io/looks
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
13
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
14
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
15
|
+
Provides-Extra: docs
|
|
16
|
+
Requires-Dist: sphinx-rtd-theme>=1.0; extra == 'docs'
|
|
17
|
+
Requires-Dist: sphinx>=6.0; extra == 'docs'
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# looks
|
|
21
|
+
|
|
22
|
+
A facade over video stylization: named effects that compile to a backend command, each carrying a **licence tier** so a caller can demand commercial-safe-only and get a refusal rather than a surprise.
|
|
23
|
+
|
|
24
|
+
Under construction — see `KICKOFF.md`.
|
looks-0.0.1/README.md
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"hatchling",
|
|
4
|
+
]
|
|
5
|
+
build-backend = "hatchling.build"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "looks"
|
|
9
|
+
version = "0.0.1"
|
|
10
|
+
description = "A facade over video stylization: named effects with licence tiers"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
keywords = []
|
|
14
|
+
authors = []
|
|
15
|
+
license = "MIT"
|
|
16
|
+
license-files = ["LICENSE"]
|
|
17
|
+
dependencies = []
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://github.com/thorwhalen/looks"
|
|
22
|
+
Repository = "https://github.com/thorwhalen/looks"
|
|
23
|
+
Documentation = "https://thorwhalen.github.io/looks"
|
|
24
|
+
|
|
25
|
+
[project.optional-dependencies]
|
|
26
|
+
dev = [
|
|
27
|
+
"pytest>=7.0",
|
|
28
|
+
"pytest-cov>=4.0",
|
|
29
|
+
"ruff>=0.1.0",
|
|
30
|
+
]
|
|
31
|
+
docs = [
|
|
32
|
+
"sphinx>=6.0",
|
|
33
|
+
"sphinx-rtd-theme>=1.0",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[tool.ruff]
|
|
37
|
+
line-length = 88
|
|
38
|
+
target-version = "py310"
|
|
39
|
+
exclude = [
|
|
40
|
+
"**/*.ipynb",
|
|
41
|
+
".git",
|
|
42
|
+
".venv",
|
|
43
|
+
"build",
|
|
44
|
+
"dist",
|
|
45
|
+
"tests",
|
|
46
|
+
"examples",
|
|
47
|
+
"scrap",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[tool.ruff.lint]
|
|
51
|
+
select = [
|
|
52
|
+
"D100",
|
|
53
|
+
]
|
|
54
|
+
ignore = [
|
|
55
|
+
"D203",
|
|
56
|
+
"E501",
|
|
57
|
+
"B905",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[tool.ruff.lint.pydocstyle]
|
|
61
|
+
convention = "google"
|
|
62
|
+
|
|
63
|
+
[tool.ruff.lint.per-file-ignores]
|
|
64
|
+
"**/tests/*" = [
|
|
65
|
+
"D",
|
|
66
|
+
]
|
|
67
|
+
"**/examples/*" = [
|
|
68
|
+
"D",
|
|
69
|
+
]
|
|
70
|
+
"**/scrap/*" = [
|
|
71
|
+
"D",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
[tool.pytest.ini_options]
|
|
75
|
+
minversion = "6.0"
|
|
76
|
+
testpaths = [
|
|
77
|
+
"looks",
|
|
78
|
+
]
|
|
79
|
+
doctest_optionflags = [
|
|
80
|
+
"ELLIPSIS",
|
|
81
|
+
"IGNORE_EXCEPTION_DETAIL",
|
|
82
|
+
]
|
|
83
|
+
addopts = "--doctest-modules"
|
|
84
|
+
|
|
85
|
+
[tool.wads.ci]
|
|
86
|
+
project_name = ""
|
|
87
|
+
|
|
88
|
+
[tool.wads.ci.commands]
|
|
89
|
+
pre_test = []
|
|
90
|
+
test = []
|
|
91
|
+
post_test = []
|
|
92
|
+
lint = []
|
|
93
|
+
format = []
|
|
94
|
+
|
|
95
|
+
[tool.wads.ci.env]
|
|
96
|
+
required_envvars = []
|
|
97
|
+
test_envvars = []
|
|
98
|
+
extra_envvars = []
|
|
99
|
+
|
|
100
|
+
[tool.wads.ci.env.defaults]
|
|
101
|
+
|
|
102
|
+
[tool.wads.ci.quality.ruff]
|
|
103
|
+
enabled = true
|
|
104
|
+
|
|
105
|
+
[tool.wads.ci.quality.black]
|
|
106
|
+
enabled = false
|
|
107
|
+
|
|
108
|
+
[tool.wads.ci.quality.mypy]
|
|
109
|
+
enabled = false
|
|
110
|
+
|
|
111
|
+
[tool.wads.ci.testing]
|
|
112
|
+
enabled = true
|
|
113
|
+
python_versions = [
|
|
114
|
+
"3.10",
|
|
115
|
+
"3.12",
|
|
116
|
+
]
|
|
117
|
+
pytest_args = [
|
|
118
|
+
"-v",
|
|
119
|
+
"--tb=short",
|
|
120
|
+
]
|
|
121
|
+
coverage_enabled = true
|
|
122
|
+
coverage_threshold = 0
|
|
123
|
+
coverage_report_format = [
|
|
124
|
+
"term",
|
|
125
|
+
"xml",
|
|
126
|
+
]
|
|
127
|
+
exclude_paths = [
|
|
128
|
+
"examples",
|
|
129
|
+
"scrap",
|
|
130
|
+
]
|
|
131
|
+
test_on_windows = true
|
|
132
|
+
|
|
133
|
+
[tool.wads.ci.metrics]
|
|
134
|
+
enabled = true
|
|
135
|
+
config_path = ".github/umpyre-config.yml"
|
|
136
|
+
storage_branch = "code-metrics"
|
|
137
|
+
python_version = "3.10"
|
|
138
|
+
force_run = false
|
|
139
|
+
|
|
140
|
+
[tool.wads.ci.build]
|
|
141
|
+
sdist = true
|
|
142
|
+
wheel = true
|
|
143
|
+
|
|
144
|
+
[tool.wads.ci.publish]
|
|
145
|
+
enabled = true
|
|
146
|
+
skip_ci_marker = "[skip ci]"
|
|
147
|
+
publish_marker = "[publish]"
|
|
148
|
+
|
|
149
|
+
[tool.wads.ci.docs]
|
|
150
|
+
enabled = true
|
|
151
|
+
builder = "epythet"
|
|
152
|
+
ignore_paths = [
|
|
153
|
+
"tests/",
|
|
154
|
+
"scrap/",
|
|
155
|
+
"examples/",
|
|
156
|
+
]
|