Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 8163971

Browse files
author
bswck
committed
Upgrade to bswck/skeleton@0.0.2rc-83-g3b14b33
Skeleton revision: https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33
1 parent 88f05f6 commit 8163971

32 files changed

+765
-338
lines changed

.copier-answers.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
_commit: 0bdf6a5
1+
_commit: 0.0.2rc-83-g3b14b33
22
_src_path: gh:bswck/skeleton
3-
author_username: bswck
3+
author: bswck
4+
cli: true
5+
copyright: Bartosz Sławecki
6+
description: Scalable semi-automated code quality refining.
47
docs: true
5-
docs_slug: autorefine
6-
email_address: bswck.dev@gmail.com
7-
github_username: bswck
8-
license_name: GPL-3.0
9-
org_full_name: Bartosz Sławecki
10-
package_name: autorefine
11-
project_description: Mechanize the refactoring process to operate on a large scale.
12-
publish_on_pypi: true
13-
pypi_project_description: Mechanize the refactoring process to operate on a large
14-
scale.
8+
email: bswck.dev@gmail.com
9+
github: bswck
10+
license: GPL-3.0
11+
package: autorefine
12+
precommit: true
13+
pypi: true
14+
pypi_description: Scalable semi-automated code quality refining.
1515
pypi_project_name: autorefine
16-
python_version: '3.8'
17-
repo_name: autorefine
16+
pypy: true
17+
python: '3.8'
18+
repo: autorefine
19+
rtd: autorefine
1820
tests: true
19-
use_precommit: true
2021
visibility: public
22+
wip: true

.github/FUNDING.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/%23%25%20if%20author_username%20%3D%3D%20%22bswck%22%20%25%23FUNDING.yml%23%25%20endif%20%25%23.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/%23%25%20if%20author%20%3D%3D%20%22bswck%22%20%25%23FUNDING.yml%23%25%20endif%20%25%23.jinja
44

5-
github: "bswck"
5+
github: "bswck"

.github/ISSUE_TEMPLATE/bug.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/ISSUE_TEMPLATE/bug.yml.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/ISSUE_TEMPLATE/bug.yml.jinja
44

55
# docs https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
66
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema

.github/ISSUE_TEMPLATE/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/ISSUE_TEMPLATE/config.yml.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/ISSUE_TEMPLATE/config.yml.jinja
44

55
blank_issues_enabled: true

.github/ISSUE_TEMPLATE/functionality.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/ISSUE_TEMPLATE/functionality.yml.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/ISSUE_TEMPLATE/functionality.yml.jinja
44

55
# docs https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
66
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Thank you for contributing to autorefine! 🎉
2+
Thank you for contributing to **autorefine**! 🎉
33
44
Provide a general summary of your proposed changes in the Title field above.
55
-->
@@ -22,7 +22,7 @@ This pull request is:
2222
- [ ] A new feature implementation
2323
- Please include the issue number, and create an issue if none exists, which must
2424
include a complete example of how the feature would look.
25-
- Please include: `Fixes: #<issue number>` in the commit message extended description.
25+
- Please include: `Fixes #<issue number>` in the commit message extended description.
2626
- Please include tests.
2727

2828
**Have a great day!**

.github/dependabot.yml

+21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
2+
# Instead of changing this particular file, you might want to alter the template:
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/dependabot.yml.jinja
4+
15
version: 2
26
updates:
37
- package-ecosystem: "gitsubmodule"
48
directory: "/"
59
schedule:
610
interval: "daily"
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
ignore:
16+
# Actions managed by https://github.com/bswck/skeleton
17+
- dependency-name: "actions/checkout"
18+
- dependency-name: "actions/setup-python"
19+
- dependency-name: "pypa/gh-action-pypi-publish"
20+
- dependency-name: "pypa/gh-action-pip-audit"
21+
- dependency-name: "actions/download-artifact"
22+
- dependency-name: "actions/upload-artifact"
23+
- dependency-name: "readthedocs/actions/preview"
24+
- package-ecosystem: "pip"
25+
directory: "/"
26+
schedule:
27+
interval: "daily"

.github/workflows/audit.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
2+
# Instead of changing this particular file, you might want to alter the template:
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/audit.yml.jinja
4+
5+
# IMPORTANT!
6+
# Pinned versions of actions and Poetry are managed in a different repository.
7+
# Do not submit PRs to this file unless for this repo specifically.
8+
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
9+
10+
name: "Audit"
11+
12+
on: ["push"]
13+
14+
jobs:
15+
pip-audit:
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- uses: "actions/checkout@v4"
19+
- name: "Install Poetry"
20+
run: "pipx install poetry==1.7.1"
21+
- name: "Set up Python 3.8"
22+
uses: "actions/setup-python@v5"
23+
with:
24+
cache: "poetry"
25+
- name: "Install the project"
26+
run: "poetry install"
27+
- name: "Set up Python location for pip-audit"
28+
shell: "bash"
29+
run: 'echo "PIPAPI_PYTHON_LOCATION=$(poetry env info -e)" >> $GITHUB_ENV'
30+
- name: "Audit"
31+
uses: "pypa/gh-action-pip-audit@v1.0.8"

.github/workflows/coverage.yml

+23-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/workflows/%23%25%20if%20public%20%25%23coverage.yml%23%25%20endif%20%25%23.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/%23%25%20if%20tests%20and%20public%20%25%23coverage.yml%23%25%20endif%20%25%23.jinja
4+
5+
# IMPORTANT!
6+
# Pinned versions of actions and Poetry are managed in a different repository.
7+
# Do not submit PRs to this file unless for this repo specifically.
8+
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
49

510
name: "Upload Coverage"
611

@@ -22,16 +27,21 @@ jobs:
2227
with:
2328
python-version: "3.8"
2429
- run: "pip install smokeshow"
25-
- uses: "dawidd6/action-download-artifact@v2"
30+
- uses: "actions/download-artifact@v4"
2631
with:
27-
workflow: "test.yml"
28-
commit: "${{github.event.workflow_run.head_sha}}"
29-
- run: "smokeshow upload coverage-html"
32+
pattern: "coverage-*"
33+
path: ".covfiles/"
34+
merge-multiple: true
35+
- run: "coverage combine .covfiles/coverage-*"
36+
- run: >
37+
poetry run coverage html
38+
--show-contexts
39+
--title "autorefine coverage for ${{github.sha}}"
40+
- run: "smokeshow upload coverage"
3041
env:
31-
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: "Coverage {coverage-percentage}"
32-
# 5 is set here while V2 is in development and coverage is far from complete
33-
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 91
34-
SMOKESHOW_GITHUB_CONTEXT: "coverage"
35-
SMOKESHOW_GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
36-
SMOKESHOW_GITHUB_PR_HEAD_SHA: "${{github.event.workflow_run.head_sha}}"
37-
SMOKESHOW_AUTH_KEY: "${{secrets.SMOKESHOW_AUTH_KEY}}"
42+
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: "Coverage {coverage-percentage}"
43+
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 91
44+
SMOKESHOW_GITHUB_CONTEXT: "coverage"
45+
SMOKESHOW_GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
46+
SMOKESHOW_GITHUB_PR_HEAD_SHA: "${{github.event.workflow_run.head_sha}}"
47+
SMOKESHOW_AUTH_KEY: "${{secrets.SMOKESHOW_AUTH_KEY}}"

.github/workflows/doclinks.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
2+
# Instead of changing this particular file, you might want to alter the template:
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/%23%25%20if%20docs%20%25%23doclinks.yml%23%25%20endif%20%25%23.jinja
4+
5+
# IMPORTANT!
6+
# Pinned versions of actions and Poetry are managed in a different repository.
7+
# Do not submit PRs to this file unless for this repo specifically.
8+
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
9+
10+
name: "ReadTheDocs Preview"
11+
12+
on:
13+
pull_request_target:
14+
types:
15+
- "opened"
16+
paths:
17+
- "docs/**"
18+
- "CHANGELOG.md"
19+
20+
permissions:
21+
pull-requests: "write"
22+
23+
jobs:
24+
documentation-links:
25+
runs-on: "ubuntu-latest"
26+
steps:
27+
- uses: "readthedocs/actions/preview@v1"
28+
with:
29+
project-slug: "autorefine"

.github/workflows/documentation-links.yml

-23
This file was deleted.

.github/workflows/lint.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/workflows/lint.yml.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/lint.yml.jinja
4+
5+
# IMPORTANT!
6+
# Pinned versions of actions and Poetry are managed in a different repository.
7+
# Do not submit PRs to this file unless for this repo specifically.
8+
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
49

510
name: "Lint"
611

@@ -12,11 +17,10 @@ jobs:
1217
steps:
1318
- uses: "actions/checkout@v4"
1419
- name: "Set up Python 3.8"
15-
uses: "actions/setup-python@v4"
20+
uses: "actions/setup-python@v5"
1621
with:
1722
python-version: "3.8"
1823
- name: "Install Ruff"
19-
run: |
20-
pip install ruff
24+
run: "pip install ruff"
2125
- name: "Analyze the code with Ruff"
2226
run: "ruff ."

.github/workflows/mypy.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/workflows/mypy.yml.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/mypy.yml.jinja
4+
5+
# IMPORTANT!
6+
# Pinned versions of actions and Poetry are managed in a different repository.
7+
# Do not submit PRs to this file unless for this repo specifically.
8+
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
49

510
name: "Mypy"
611

@@ -12,7 +17,7 @@ jobs:
1217
steps:
1318
- uses: "actions/checkout@v4"
1419
- name: "Install Poetry"
15-
run: "pipx install poetry"
20+
run: "pipx install poetry==1.7.1"
1621
- name: "Set up Python 3.8"
1722
uses: "actions/setup-python@v5"
1823
with:

.github/workflows/news.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
2+
# Instead of changing this particular file, you might want to alter the template:
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/news.yml.jinja
4+
5+
# IMPORTANT!
6+
# Pinned versions of actions and Poetry are managed in a different repository.
7+
# Do not submit PRs to this file unless for this repo specifically.
8+
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
9+
10+
name: "Check news entry"
11+
12+
on:
13+
pull_request:
14+
types:
15+
- "labeled"
16+
- "unlabeled"
17+
- "opened"
18+
- "reopened"
19+
- "synchronize"
20+
21+
jobs:
22+
check-news-entry:
23+
runs-on: "ubuntu-latest"
24+
25+
steps:
26+
- uses: "actions/checkout@v4"
27+
with:
28+
# `towncrier check` runs `git diff --name-only origin/main...`, which
29+
# needs a non-shallow clone.
30+
fetch-depth: 0
31+
32+
- name: "Check news entry"
33+
if: "!contains(github.event.pull_request.labels.*.name, 'skip news')"
34+
run: |
35+
pipx run towncrier check --compare-with origin/${{ github.base_ref }}

.github/workflows/release.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# This file was generated from bswck/skeleton@0bdf6a5.
1+
# This file was generated from bswck/skeleton@0.0.2rc-83-g3b14b33.
22
# Instead of changing this particular file, you might want to alter the template:
3-
# https://github.com/bswck/skeleton/tree/0bdf6a5/project/.github/workflows/%23%25%20if%20publish_on_pypi%20%25%23release.yml%23%25%20endif%20%25%23.jinja
3+
# https://github.com/bswck/skeleton/tree/0.0.2rc-83-g3b14b33/project/.github/workflows/%23%25%20if%20pypi%20%25%23release.yml%23%25%20endif%20%25%23.jinja
4+
5+
# IMPORTANT!
6+
# Pinned versions of actions and Poetry are managed in a different repository.
7+
# Do not submit PRs to this file unless for this repo specifically.
8+
# To change this workflow globally, submit a PR to https://github.com/bswck/skeleton.
49

510
name: "PyPI"
611

@@ -18,11 +23,9 @@ jobs:
1823
POETRY_VIRTUALENVS_CREATE: "false"
1924
steps:
2025
- uses: "actions/checkout@v4"
21-
- name: "Install poetry"
22-
run: |
23-
pipx install poetry
26+
- name: "Install Poetry"
27+
run: "pipx install poetry==1.7.1"
2428
- name: "Build with poetry"
25-
run: |
26-
poetry build
29+
run: "poetry build"
2730
- name: "Publish package distributions to PyPI"
2831
uses: "pypa/gh-action-pypi-publish@release/v1"

0 commit comments

Comments
 (0)