Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate to starflow #5225

Open
wants to merge 344 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
344 commits
Select commit Hold shift + click to select a range
f3c4f88
lint: ignore ruff SIM117 (#90)
mr-cal Jun 9, 2023
afc4246
chore(deps): update dependency tox-gh to v1.2.0 (#92)
renovate[bot] Jun 11, 2023
f40aae9
chore(deps): update dependency lint/ruff to v0.0.272 (#91)
renovate[bot] Jun 11, 2023
0b9e9cf
meta: update versioning scheme (#86)
mr-cal Jun 13, 2023
296c5dd
lint: fix mypy config to 'recurse' (#94)
tigarmo Jun 14, 2023
72c7781
chore(deps): update development dependencies (non-major) (#95)
renovate[bot] Jun 14, 2023
8c64fc4
meta: add dirty flag to versioning scheme (#96)
mr-cal Jun 16, 2023
0f6657d
ci: lint docs in all directories (#98)
mr-cal Jun 20, 2023
9985d46
tools: fix 'setuptools.package.find' directive (#97)
tigarmo Jun 20, 2023
25d1c10
tests: provide a fixture with the project's 'main' module (#99)
tigarmo Jun 21, 2023
61afd7e
coverage: automatically exclude type checking blocks (#100)
lengau Jun 22, 2023
ab5e737
ruff: remove type-checking guard blocks (#101)
lengau Jun 22, 2023
3f7c6fa
tox: pass CI environment variable (#102)
lengau Jun 22, 2023
6363b31
tools: Add release GH action (#103)
lengau Jun 23, 2023
3769823
pyproject: only include the actual package in wheel file (#108)
lengau Jun 26, 2023
8b8fed8
tox: improve UX (#106)
lengau Jun 29, 2023
3244cc2
ci: separate unit and integration tests (#107)
lengau Jun 29, 2023
41f0124
ci: make release publisher workflow fetch correct tags (#110)
lengau Jul 3, 2023
c634986
renovate: fix scheduling (#113)
lengau Jul 6, 2023
6a8bb7f
chore(deps): update development dependencies (non-major) (#115)
renovate[bot] Jul 11, 2023
5faae73
chore(deps): update release-drafter/release-drafter action to v5.24.0…
renovate[bot] Aug 15, 2023
be3ae62
chore(deps): update dependency lint/ruff to v0.0.284 (#119)
renovate[bot] Aug 15, 2023
366e466
chore(deps): update dependency tox-gh to v1.3.1 (#121)
renovate[bot] Aug 15, 2023
2a28541
chore(deps): update documentation dependencies (#120)
renovate[bot] Aug 15, 2023
3fca437
chore(deps): update dependency docs/sphinx to v7
renovate[bot] Aug 15, 2023
841c322
Update pyproject.toml
lengau Aug 15, 2023
9d017f3
chore(deps): update dependency docs/furo to v2023.8.19 (#122)
renovate[bot] Aug 23, 2023
25c3c1d
chore(deps): update dependency lint/ruff to v0.0.285 (#123)
renovate[bot] Aug 23, 2023
a913629
chore(deps): update development dependencies (non-major) (#124)
renovate[bot] Aug 23, 2023
8322768
docs: add conventional commits as part of the style
sergiusens Aug 24, 2023
fe1f9b0
ci: check for conventional commits
sergiusens Aug 24, 2023
6577523
ci(renovate): allow more branches (#126)
mr-cal Sep 11, 2023
de65e53
ci(renovate): run tests on renovate branches (#127)
mr-cal Sep 19, 2023
edf7d5a
chore: skip typing checkers in "_version.py" (#128)
mr-cal Sep 21, 2023
04f5a63
chore(deps): update dependency docs/furo to v2023.9.10 (#129)
renovate[bot] Sep 22, 2023
4e97b3f
chore(deps): update dependency lint/ruff to v0.0.290 (#130)
renovate[bot] Sep 22, 2023
3d09653
style: ensure ruff picks up pydantic.validator for class methods (#134)
lengau Oct 2, 2023
aa095b1
chore(deps): update actions/checkout action to v4 (#132)
renovate[bot] Oct 3, 2023
c3c3313
chore(deps): update dependency lint/ruff to v0.0.291 (#131)
renovate[bot] Oct 3, 2023
a8e334e
chore(deps): update dependency lint/ruff to v0.1.0 (#138)
renovate[bot] Oct 20, 2023
e668f36
chore(deps): update release-drafter/release-drafter action to v5.25.0…
renovate[bot] Oct 21, 2023
62cafda
chore(deps): update dependency docs/sphinx-lint to v0.8.1 (#141)
renovate[bot] Oct 21, 2023
6f1c345
chore(deps): update development dependencies (non-major) (#137)
renovate[bot] Oct 21, 2023
6b79ebe
chore(deps): update dependency lint/ruff to v0.1.1 (#142)
renovate[bot] Oct 22, 2023
eae2528
ci: colorize tox (#145)
mr-cal Nov 5, 2023
f78477e
feat(ruff): allow use Any in star args and kwargs (#144)
syu-w Nov 5, 2023
bd97d83
chore(deps): include ruff in dev updates (#146)
lengau Nov 5, 2023
406c056
chore: update renovate config (#143)
lengau Nov 5, 2023
624e393
build: run Renovate immediately on craft-* patch releases (#147)
lengau Nov 9, 2023
4ca930b
style(lint): bump max function args to 8 (#149)
lengau Nov 10, 2023
b58ed6f
style(lint): private member access (#150)
lengau Nov 10, 2023
073e450
style(lint): disable magic value check in tests (#151)
lengau Nov 17, 2023
a48d590
style: stricter ruff linters (#139)
lengau Nov 20, 2023
cc5a039
chore(deps): update development dependencies (non-major) (#153)
renovate[bot] Nov 27, 2023
0eead76
chore(deps): update dependency docs/sphinx-lint to v0.9.0 (#152)
renovate[bot] Nov 27, 2023
36a4cbf
chore(deps): update dependency types/pyright to v1.1.338 (#155)
renovate[bot] Dec 4, 2023
54ea9f5
chore(deps): update webiny/action-conventional-commits action to v1.2…
renovate[bot] Dec 4, 2023
46e9d22
chore: make renovate update pre-commit-config (#156)
lengau Dec 5, 2023
86b7568
chore: use new mypy config `extra_checks` (#158)
mr-cal Dec 7, 2023
5d46027
chore(deps): update actions/setup-python action to v5 (#161)
renovate[bot] Dec 11, 2023
0d328c4
style: ignore docstring requirements for overrides (#159)
lengau Dec 12, 2023
4b2c78e
docs(HACKING): update commit message guidelines (#162)
mr-cal Dec 15, 2023
ade6eba
ci(deps): update artifact actions (#164)
lengau Jan 4, 2024
8931c9a
chore(deps): update actions/download-artifact action to v4 (#163)
renovate[bot] Jan 4, 2024
d6130fd
ci(deps): make renovate update pyright separately. (#165)
lengau Jan 4, 2024
48adeaf
chore(deps): update dependency docs/sphinx-lint to v0.9.1 (#166)
renovate[bot] Jan 6, 2024
cf0b86c
chore(deps): update dependency setuptools to v67.8.0 (#167)
renovate[bot] Jan 10, 2024
a1c10a7
chore(deps): update dependency setuptools to v69 (#168)
renovate[bot] Jan 11, 2024
621a105
chore(deps): update dependency lint/black to v24 (#169)
renovate[bot] Jan 30, 2024
f460547
chore(deps): update dependency docs/furo to v2024 (#173)
renovate[bot] Jan 31, 2024
2d56dce
chore(deps): update webiny/action-conventional-commits action to v1.3.0
renovate[bot] Jan 31, 2024
20eb129
build(deps): update pyright (#170)
lengau Jan 31, 2024
3feb312
chore(deps): update development dependencies (non-major) (#174)
renovate[bot] Jan 31, 2024
ceb64e2
ci: fix regex for pre-commit-config.yaml (#175)
tigarmo Jan 31, 2024
d79b26b
chore(deps): update dependency dev/pytest to v8 (#172)
renovate[bot] Jan 31, 2024
9815d93
chore(deps): update dependency black to v24 (#176)
renovate[bot] Feb 1, 2024
c6d29c3
chore(deps): update dependency ruff to v0.1.15 (#177)
renovate[bot] Feb 1, 2024
0cfc30a
chore(deps): update dependency yamllint to v1.33.0 (#178)
renovate[bot] Feb 1, 2024
5a0b0ea
chore(deps): update dependency lint/ruff to v0.2.0 (#181)
renovate[bot] Feb 5, 2024
4d11ec4
chore(deps): update github actions
renovate[bot] Feb 5, 2024
f6db1eb
chore: make pre-commit linters use lint group for renovate (#183)
lengau Feb 5, 2024
234b360
docs(HACKING): clarify commit header for merges (#184)
mr-cal Feb 5, 2024
5b1422b
ci(renovate): fix pre-commit dependency manager (#185)
lengau Feb 6, 2024
64dc591
chore(deps): update dependency docs/sphinx-autobuild to v2024 (#187)
renovate[bot] Feb 11, 2024
455aa11
chore(deps): update development dependencies (non-major) (#186)
renovate[bot] Feb 11, 2024
9d271a7
build: loosen requirements (#190)
lengau Feb 16, 2024
826a08e
chore(deps): update dependency types/pyright to v1.1.351 (#189)
renovate[bot] Feb 20, 2024
2130cd0
chore(deps): update development dependencies (non-major) (#191)
renovate[bot] Mar 3, 2024
d319ea9
chore: update ruff settings (#192)
mr-cal Mar 5, 2024
c9c4de1
chore(deps): update development dependencies (non-major) (#193)
renovate[bot] Mar 25, 2024
ef54940
chore(deps): update softprops/action-gh-release action to v2 (#194)
renovate[bot] Mar 25, 2024
bf22cfe
chore(deps): update dependency dev/pytest-cov to v5 (#195)
renovate[bot] Mar 28, 2024
5d10b2a
chore(deps): update dependency types/pyright to v1.1.356 (#196)
renovate[bot] Apr 1, 2024
955f445
chore(deps): update dependency types/pyright to v1.1.357 (#198)
renovate[bot] Apr 10, 2024
56b1e71
chore(deps): update dependency types/pyright to v1.1.358 (#202)
renovate[bot] Apr 12, 2024
09b91ba
chore: use ruff snap (#204)
lengau Apr 23, 2024
06f6913
chore(deps): update dependency types/pyright to v1.1.359 (#206)
renovate[bot] Apr 24, 2024
9191990
ci: update Python versions
lengau Apr 24, 2024
54b8fab
build: update minimum Python version to 3.10
lengau Apr 24, 2024
51a7a95
style: autoformat
lengau Apr 24, 2024
de9999b
chore: update python versions ruff uses
lengau Apr 24, 2024
a5b35ea
chore: update tox python versions
lengau Apr 24, 2024
439dad6
chore: switch to codespell snap (#205)
lengau Apr 25, 2024
cd48e13
docs: use canonical-sphinx (#209)
tigarmo Apr 25, 2024
3b02fb6
chore(deps): update development dependencies (non-major) (#210)
renovate[bot] May 21, 2024
aae9d00
style: replace black formatter with ruff format (#212)
lengau May 21, 2024
beee3a8
chore(deps): update dependency types/pyright to v1.1.364 (#216)
renovate[bot] May 26, 2024
5b5dbef
chore(deps): update dependency types/pyright to v1.1.365 (#217)
renovate[bot] Jun 4, 2024
1acd270
docs(HACKING): document branch names and changelog (#218)
mr-cal Jun 4, 2024
cd8da55
ci: run tests on Ubuntu 24.04 (#214)
lengau Jun 4, 2024
77ce088
ci: remove deprecated renovate config options (#215)
lengau Jun 4, 2024
7e0e942
chore: add Jira sync (#219)
lengau Jun 6, 2024
b727837
chore(deps): update dependency types/pyright to v1.1.366 (#220)
renovate[bot] Jun 11, 2024
1d72f49
chore: update line length configuration (#221)
lengau Jun 12, 2024
3f3b5f6
ci: update Release workflow (#224)
tigarmo Jul 10, 2024
dacbdeb
docs(HACKING): add details on changelog convention (#225)
mr-cal Jul 11, 2024
3616458
chore(deps): update dependency types/pyright to v1.1.371 (#222)
renovate[bot] Jul 16, 2024
76fac3f
chore(deps): update dependency tox-gh to v1.3.2 (#223)
renovate[bot] Jul 16, 2024
a90bcf7
docs: update hacking with explanation for exclamation point (#226)
mattculler Jul 18, 2024
73db57b
chore(deps): update development dependencies (non-major) (#227)
renovate[bot] Jul 24, 2024
d88dde5
chore(deps): update dependency pyright to v1.1.375 (#234)
renovate[bot] Aug 14, 2024
f972745
ci: update renovate config and workflow (#232)
lengau Aug 14, 2024
6bfb969
style: autoformat with ruff 0.6 (#238)
lengau Aug 27, 2024
2439a13
style(lint): autoformat (#239)
lengau Aug 30, 2024
e2f3adf
build(deps): update dependency pyright to v1.1.378 (#241)
renovate[bot] Sep 4, 2024
6b7fa70
ci(renovate): enable pre-commit support (#242)
lengau Sep 6, 2024
38e8a72
build(deps): update dependency pyright to v1.1.379 (#243)
renovate[bot] Sep 8, 2024
82d7be8
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.6…
renovate[bot] Sep 8, 2024
96d6635
build(deps): update pre-commit hook adrienverge/yamllint to v1.35.1 (…
renovate[bot] Sep 8, 2024
3327900
build(deps): update pre-commit hook psf/black to v24.8.0 (#247)
renovate[bot] Sep 9, 2024
4ff2076
build(deps): update pre-commit hook pre-commit/pre-commit-hooks to v4…
renovate[bot] Sep 9, 2024
afb80d1
chore(renovate): fewer PRs to hotfix branches (#237)
lengau Sep 14, 2024
b1ac980
build(deps): update dependency pyright to v1.1.380 (#249)
renovate[bot] Sep 14, 2024
197eaf7
build(deps): update dependency sphinx-lint to v1 (#250)
renovate[bot] Sep 14, 2024
ce9ccb9
build(deps): update dependency tox-gh to v1.3.3 (#248)
renovate[bot] Sep 14, 2024
e4faa8c
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.6…
renovate[bot] Sep 15, 2024
4525894
build(tools): add a Makefile that uses uv (#240)
lengau Sep 17, 2024
6e8f8a9
build(deps): update dependency tox-gh to v1.4.1 (#255)
renovate[bot] Sep 21, 2024
b8a847e
build(deps): update dependency pyright to v1.1.381 (#254)
renovate[bot] Sep 21, 2024
1567d4a
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.6…
renovate[bot] Sep 23, 2024
7d2790e
docs: update readme and template, fix build error (#258)
medubelko Sep 24, 2024
76f2dbd
docs(readme): add badges (#203)
lengau Sep 27, 2024
59e5c4b
ci: add security scan workflow (#259)
lengau Sep 28, 2024
42d6514
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.6…
renovate[bot] Sep 30, 2024
5e9c9eb
build(deps): update dependency pyright to v1.1.382.post1 (#264)
renovate[bot] Sep 30, 2024
1327ca6
docs: update commit headers for merges (#266)
mr-cal Oct 4, 2024
e4b6130
feat: port sphinx fixes (#267)
mattculler Oct 4, 2024
53a7bae
build(deps): update dependency pyright to v1.1.383 (#268)
renovate[bot] Oct 5, 2024
84c2a0e
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.6…
renovate[bot] Oct 6, 2024
44ce081
feat: upstream the good parts when rebasing application (#265)
mattculler Oct 11, 2024
9027b2c
fix: starbase breakage from #265 (#270)
mattculler Oct 11, 2024
7091ba1
chore(ci): generate release notes when publishing
tigarmo Oct 21, 2024
07e47ee
fix(test): removes bad "-" in test definitions (#274)
bepri Nov 7, 2024
f9efe7b
build(deps): update dependency pyright to v1.1.388 (#276)
renovate[bot] Nov 12, 2024
5ea4251
build(deps): update dependency tox-gh to v1.4.4 (#275)
renovate[bot] Nov 12, 2024
a411e24
ci: use starflow CI actions (#272)
lengau Nov 18, 2024
30d1d01
build(deps): update dependency pyright to v1.1.389 (#279)
renovate[bot] Nov 18, 2024
6aa7087
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.7…
renovate[bot] Nov 18, 2024
a235960
build(config): migrate config .github/renovate.json5 (#281)
renovate[bot] Nov 18, 2024
b5c869d
build(deps): update pre-commit hook pre-commit/pre-commit-hooks to v5…
renovate[bot] Nov 18, 2024
6278c8e
ci(rtd): pin python version to 3.12 (#284)
dariuszd21 Nov 28, 2024
dfe2e9a
docs: add release notes index and template (#286)
medubelko Nov 29, 2024
10c7eb4
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Dec 5, 2024
d0f4f16
build(deps): update dependency mypy to ~=1.13.0 (#282)
renovate[bot] Dec 5, 2024
d956942
build(deps): update dependency pytest-cov to v6 (#285)
renovate[bot] Dec 5, 2024
0ffe5a7
fix: fix issues found in common.mk with charmcraft (#289)
lengau Dec 9, 2024
8095ce8
feat(common.mk): group linters in CI (#292)
lengau Dec 9, 2024
ca8814a
build(deps): update dependency pyright to v1.1.390 (#290)
renovate[bot] Dec 9, 2024
533a546
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Dec 9, 2024
2a0a524
fix: Typos in doc and make files (#287)
upils Dec 9, 2024
b3a71bf
feat: register the 'slow' mark to pytest (#293)
upils Dec 10, 2024
512434d
ci: use starflow renovate config (#260)
lengau Dec 12, 2024
d236617
ci: use starflow renovate config (#260)
lengau Dec 12, 2024
e9f2f6b
fix: update renovate config (#296)
lengau Dec 12, 2024
4918168
fix: update renovate config (#298)
lengau Dec 12, 2024
0b70cf1
feat: use existing, then snap, then uv pyright (#299)
lengau Dec 13, 2024
b6842c0
ci: restrict pypi job to amd64
tigarmo Dec 13, 2024
bddd6ac
chore: add constraints needed by craft-store and craft-archives (#294)
lengau Dec 13, 2024
2375a1c
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Dec 16, 2024
b4a1f7a
docs: add app cadence, update deprecation notice in release notes index
medubelko Dec 16, 2024
913e475
chore: add CODEOWNERS file (#295)
lengau Dec 17, 2024
c5c7167
docs: remove release policy from rn index (#306)
medubelko Dec 19, 2024
45b6243
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Dec 24, 2024
4270834
build(deps): update dependency pyright to v1.1.391 (#311)
renovate[bot] Dec 24, 2024
a102dba
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.8…
renovate[bot] Jan 6, 2025
4083b5c
build(deps): update dependency mypy to ~=1.14.1 (#313)
renovate[bot] Jan 6, 2025
68d8d79
style: replace yamllint with prettier (#305)
lengau Jan 7, 2025
68ad84a
build(deps): update dependency canonical-sphinx to ~=0.3.0 (#317)
renovate[bot] Jan 13, 2025
c1f03c6
build(deps): lock file maintenance (#320)
renovate[bot] Jan 13, 2025
45ab05b
style: update linting configuration for ruff 0.9 (#319)
lengau Jan 13, 2025
55bf1ef
fix: use uv tool run for pre-commit if not global (#300)
lengau Jan 13, 2025
170dd5e
fix(common.mk): freeze UV by default. (#322)
lengau Jan 13, 2025
6681521
style(pyproject): make git_describe_command an array (#321)
lengau Jan 13, 2025
6f78e1a
feat: remove tox.ini (#310)
lengau Jan 13, 2025
f84c2df
build(deps): lock file maintenance (#326)
renovate[bot] Jan 18, 2025
7fbfea1
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9…
renovate[bot] Jan 18, 2025
4c45c0e
build(deps): remove pyright (#327)
lengau Jan 20, 2025
9b08557
fix(common.mk): docs ignores (#324)
lengau Jan 22, 2025
fbd7c43
docs: make minor improvements to release note template (#328)
medubelko Jan 23, 2025
de0d308
docs: fix spacing errors in README (#331)
bepri Jan 24, 2025
3b7289b
fix(common.mk): fix glob of prettier files (#332)
tigarmo Jan 25, 2025
d3d4189
docs: fix some formatting errors in README (#336)
bepri Jan 28, 2025
0bb0106
build!: switch from using extras to dependency groups (#330)
lengau Jan 28, 2025
764de6f
build(deps): update release-drafter/release-drafter action to v6.1.0 …
renovate[bot] Jan 28, 2025
b4cf8dd
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9…
renovate[bot] Jan 28, 2025
97abd69
fix(common.mk): skip frivolous link checks in lint-docs (#333)
medubelko Jan 29, 2025
05c018a
feat(make): Make groups configurable by version codename (#338)
lengau Jan 30, 2025
c0465a4
fix(make): generate a list of build dependencies and run one command …
lengau Jan 30, 2025
5cf4077
ci: fetch tags on readthedocs (#342)
tigarmo Jan 30, 2025
61931c2
fix(make): depend on build deps during setup (#341)
bepri Jan 30, 2025
067feab
build(deps): lock file maintenance (#343)
renovate[bot] Jan 31, 2025
8ba2f0a
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9…
renovate[bot] Feb 3, 2025
c9e090a
chore: hush some of the linter output (#345)
bepri Feb 7, 2025
7db121e
docs(HACKING): add note about revert commits (#346)
mr-cal Feb 7, 2025
b09d090
style: fix ruff warning
bepri Jan 27, 2025
8eca0b6
build(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9…
renovate[bot] Feb 10, 2025
ab3b82a
build(deps): update dependency mypy to ~=1.15.0 (#347)
renovate[bot] Feb 10, 2025
8c6820e
feat(docs): add redirects
medubelko Feb 11, 2025
daba40f
style(HACKING): fix typo (#349)
lengau Feb 11, 2025
b3e809a
build: migrate to pyproject for building with uv
bepri Jan 27, 2025
c8651d4
chore: replace black with ruff formatter
bepri Jan 27, 2025
928ab77
build: bring in starbase makefile
bepri Jan 28, 2025
d26f185
chore: move data_files and scripts from setup.py into pyproject.toml
bepri Jan 29, 2025
081a66d
build: remove all requirements files and generate requirements with uv
bepri Jan 29, 2025
6c02152
chore: migrate last of setup.py
bepri Jan 29, 2025
237e84d
chore: remove unused tools
bepri Jan 29, 2025
18a7596
build: delete tox.ini
bepri Jan 29, 2025
f2be4e2
chore: organize gitignore
bepri Jan 29, 2025
945ab15
style: bring in starbase formatter rules
bepri Jan 29, 2025
b2703f0
test: mark slow tests
bepri Jan 29, 2025
eef0002
chore: remove outdated/unused top-level files
bepri Jan 29, 2025
eeb8424
docs: delete now-obsolete TESTING.md
bepri Jan 29, 2025
591c198
docs: update HACKING.md with new environment information
bepri Jan 29, 2025
3d2480c
build: add python-apt wheels
bepri Jan 29, 2025
a347b7c
ci: update workflow files for starflow/uv
bepri Jan 29, 2025
82d8f2e
style: add pre-commit config
bepri Jan 29, 2025
0dedd09
ci(docs): update readthedocs config to use uv
bepri Jan 30, 2025
50c2c41
chore: correct all typing errors
bepri Jan 30, 2025
3aa02f5
style: run prettier
bepri Jan 30, 2025
022cdad
ci: configure starflow test run
bepri Jan 30, 2025
d4078a0
chore: move docutils into docs dependency group
bepri Jan 30, 2025
b98588d
chore: pin craft-application for test failures
bepri Jan 30, 2025
00223d8
fix(docs): properly ignore lines being too long for now
bepri Jan 30, 2025
963ad50
test(spread): remove nonexistent files from spread.yaml
bepri Jan 30, 2025
0dd7694
ci: make trivy ignore things we don't need to scan
bepri Jan 30, 2025
54b12c1
fix: adjust crystal plugin for new data_files location
bepri Feb 7, 2025
91a85eb
Merge remote-tracking branch 'starbase/main' into work/starflow-migra…
bepri Feb 11, 2025
e96fb3d
style: run formatters
bepri Feb 11, 2025
c4c4076
Merge branch 'main' into work/starflow-migration
bepri Feb 11, 2025
b5a60bd
ci(docs): update RTD configuration
bepri Feb 11, 2025
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
38 changes: 38 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Editor configuration options.
# See: https://spec.editorconfig.org/
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 88
trim_trailing_whitespace = true

[.editorconfig]
max_line_length = off

[{Makefile,*.mk}]
indent_style = tab

[{*.py,*.pyi}]
max_line_length = 88

[{*.bash,*.sh,*.zsh}]
indent_size = 2
tab_width = 2

[{*.har,*.json,*.json5}]
indent_size = 2
max_line_length = off

[{*.markdown,*.md,*.rst}]
ij_visual_guides = none

[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}]
max_line_length = off

[{*.yaml,*.yml}]
indent_size = 2
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ body:
id: additional-context
attributes:
label: Additional context

6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- [ ] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox run -m lint`?
- [ ] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`)
- [ ] Have you successfully run `make lint`?
- [ ] Have you successfully run `make test`?

-----
---
4 changes: 2 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ categories:
- title: "Tooling"
label:
- "tooling"
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
template: |
Special thanks to the contributors that made this release happen: $CONTRIBUTORS

## Full list of changes

$CHANGES
20 changes: 10 additions & 10 deletions .github/spread-problem-matcher.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"problemMatcher": [
"problemMatcher": [
{
"owner": "spread-error",
"pattern": [
{
"owner": "spread-error",
"pattern": [
{
"regexp": "^\\d+-\\d+-\\d+ \\d+:\\d+:\\d+ ((Error) (preparing|executing|restoring) .+) : .*$",
"message": 1,
"severity": 2
}
]
"regexp": "^\\d+-\\d+-\\d+ \\d+:\\d+:\\d+ ((Error) (preparing|executing|restoring) .+) : .*$",
"message": 1,
"severity": 2
}
]
]
}
]
}
6 changes: 3 additions & 3 deletions .github/workflows/check-renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
inputs:
enable_ssh_access:
type: boolean
description: 'Enable ssh access'
description: "Enable ssh access"
required: false
default: false

Expand All @@ -25,7 +25,7 @@ jobs:
with:
node-version: 22
- name: Install renovate
run: npm install --global renovate
run: npm install --global re2 renovate
- name: Enable ssh access
uses: mxschmitt/action-tmate@v3
if: ${{ inputs.enable_ssh_access }}
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Check renovate config
run: renovate-config-validator .github/renovate.json5
- name: Renovate dry-run
run: renovate --dry-run --autodiscover
run: renovate --dry-run=full --autodiscover --print-config
env:
RENOVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RENOVATE_USE_BASE_BRANCH_CONFIG: ${{ github.ref }}
9 changes: 0 additions & 9 deletions .github/workflows/cla-check.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check policy
on:
pull_request:
push:
branches:
- main
- hotfix/*
- work/check-policy # For development

jobs:
policy:
uses: canonical/starflow/.github/workflows/policy.yaml@main
python-scans:
name: Security scan
uses: canonical/starflow/.github/workflows/scan-python.yaml@main
with:
# 1. requirements-noble.txt can't build on jammy
# 2. Ignore requirements files in spread tests, as some of these intentionally
# contain vulnerable versions.
# 3. Docs contain requirements.txt files that don't specify versions.
requirements-find-args: '! -name requirements-noble.txt ! -path "./tests/spread*" ! -path "./docs/**"'
trivy-extra-args: "--severity HIGH,CRITICAL --ignore-unfixed --skip-dirs tests/spread/"
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on:
on:
pull_request:
push:
branches:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: QA
on:
push:
branches:
- "main"
- "feature/*"
- "hotfix/*"
- "release/*"
- "renovate/*"
pull_request:

jobs:
lint:
uses: canonical/starflow/.github/workflows/lint-python.yaml@main
test:
uses: canonical/starflow/.github/workflows/test-python.yaml@main
with:
# Snapcraft currently only tests on Python 3.12 on Ubuntu 24.04
fast-test-platforms: '["ubuntu-24.04"]'
lengau marked this conversation as resolved.
Show resolved Hide resolved
slow-test-platforms: '["ubuntu-24.04"]'
lowest-python-platform: "ubuntu-24.04"
fast-test-python-versions: '["3.12"]'
slow-test-python-versions: '["3.12"]'
lowest-python-version: "3.12"
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- name: Release Drafter
uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72 changes: 72 additions & 0 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Release
on:
push:
tags:
# These tags should be protected, remember to enable the rule:
# https://github.com/canonical/starbase/settings/tag_protection
- "[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write

jobs:
source-wheel:
runs-on: [self-hosted, jammy]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch tag annotations
run: |
# Note: we fetch the tags here instead of using actions/checkout's "fetch-tags"
# because of https://github.com/actions/checkout/issues/1467
git fetch --force --tags --depth 1
git describe --dirty --long --match '[0-9]*.[0-9]*.[0-9]*' --exclude '*[^0-9.]*'
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
check-latest: true
- name: Build packages
run: |
pip install build twine
python3 -m build
twine check dist/*
- name: Upload pypi packages artifact
uses: actions/upload-artifact@v4
with:
name: pypi-packages
path: dist/
pypi:
needs: ["source-wheel"]
runs-on: [self-hosted, jammy, amd64]
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Get packages
uses: actions/download-artifact@v4
with:
name: pypi-packages
path: dist/
- name: Publish to pypi
# Note: this action uses PyPI's support for Trusted Publishers
# It needs a configuration on the PyPI project - see:
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/#github-actions
uses: pypa/gh-action-pypi-publish@release/v1
github-release:
needs: ["source-wheel"]
runs-on: [self-hosted, jammy]
steps:
- name: Get pypi artifacts
uses: actions/download-artifact@v4
with:
name: pypi-packages
- name: Release
uses: softprops/action-gh-release@v2
with:
# Generate release notes on the new GH release
generate_release_notes: true
# Add wheel and source tarball
files: |
*.whl
*.tar.gz
17 changes: 0 additions & 17 deletions .github/workflows/security-scan.yaml

This file was deleted.

36 changes: 23 additions & 13 deletions .github/workflows/tics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: TICS
on:
push:
branches:
- main
# to easy test changes to the workflow
- tiobe
- main
# to easy test changes to the workflow
- tiobe

jobs:
CI:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -22,22 +22,32 @@ jobs:
sudo apt-get update
echo "::endgroup::"
echo "::group::apt-get install..."
sudo apt-get install -y python3 python3-dev libapt-pkg-dev libyaml-dev xdelta3 patchelf
sudo apt-get install -y python3 python3-dev libapt-pkg-dev libyaml-dev umoci
echo "::endgroup::"
echo "::group::pip install"
python -m pip install 'tox<5.0' tox-gh
echo "::group::snap install"
sudo snap install --classic astral-uv
echo "::endgroup::"
echo "::group::install requirements"
uv sync --frozen --group dev
echo "::endgroup::"

- name: Setup Tox environment
run: tox --workdir /tmp/tox run-parallel --parallel auto --parallel-no-spinner --parallel-live --colored yes -e test-all-py310 --notest
- name: Install project
run: |
python -m pip install -e .

- name: Test with tox
run: tox --workdir /tmp/tox run --skip-pkg-install --result-json results/tox-py310.json --colored yes -e test-all-py310
- name: Run coverage
run: |
make test-coverage

- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results-ubuntu-24.04
path: results/

- name: Run TICS analysis
uses: tiobe/tics-github-action@v3
env:
PATH: "/tmp/tox/test-all-py310/bin:/snap/bin:/home/runner/.local/bin:/home/runner/.cargo/bin:/bin:/usr/bin:/usr/local/bin:"
with:
mode: qserver
project: snapcraft
Expand Down
Loading
Loading