Skip to content

Commit 77f5b18

Browse files
authored
Merge pull request #100 from bsweger/bs/fix-build-more-linting
Fix build, more linting
2 parents 26c9689 + 04e46c7 commit 77f5b18

File tree

19 files changed

+49
-21
lines changed

19 files changed

+49
-21
lines changed

.github/dependabot.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,3 @@ updates:
3434
update-types:
3535
- patch
3636
- minor
37-
38-

.github/workflows/ci.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030

3131
- name: Install uv 🌟
3232
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
33+
with:
34+
version: "0.9.16"
3335

3436
- name: Set nox session matrices 🧩
3537
id: set-matrix
@@ -49,6 +51,8 @@ jobs:
4951

5052
- name: Install uv 🌟
5153
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
54+
with:
55+
version: "0.9.16"
5256

5357
- name: Lint 🧹
5458
run: uvx nox --session lint
@@ -68,6 +72,8 @@ jobs:
6872

6973
- name: Install uv 🌟
7074
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
75+
with:
76+
version: "0.9.16"
7177

7278
- name: Generate coverage report 📊
7379
# The coverage session runs the test suite using the latest stable
@@ -99,6 +105,8 @@ jobs:
99105

100106
- name: Install uv 🌟
101107
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
108+
with:
109+
version: "0.9.16"
102110

103111
- name: Run nox test session ${{ matrix.nox_tests }} 🧪
104112
run: uvx nox --session ${{ matrix.nox_tests }}
@@ -118,6 +126,8 @@ jobs:
118126

119127
- name: Install uv 🌟
120128
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
129+
with:
130+
version: "0.9.16"
121131

122132
- name: Run nox docs session 📜
123133
run: uvx nox --session docs

.github/workflows/publish-docs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636

3737
- name: Install uv 🌟
3838
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
39+
with:
40+
version: "0.9.16"
3941

4042
- name: Build Sphinx docs 🗿
4143
shell: bash
@@ -62,4 +64,3 @@ jobs:
6264
with:
6365
artifact_name: static-docs
6466
token: ${{ github.token }}
65-

.github/workflows/publish-pypi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232

3333
- name: Install uv 🌟
3434
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
35+
with:
36+
version: "0.9.16"
3537

3638
- name: Build package for distribution 🛠️
3739
run: |

.github/workflows/run-checks.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install uv 🌟
3131
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
3232
with:
33-
version: "0.7.3"
33+
version: "0.9.16"
3434

3535
- name: Set nox session matrices 🧩
3636
id: set-matrix
@@ -58,7 +58,7 @@ jobs:
5858
- name: Install uv 🌟
5959
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
6060
with:
61-
version: "0.7.3"
61+
version: "0.9.16"
6262

6363
- name: Run nox test_dev_install session ${{ matrix.nox_test_dev_install }} 🧪
6464
run: uvx nox --session ${{ matrix.nox_test_dev_install }}
@@ -82,7 +82,7 @@ jobs:
8282
- name: Install uv 🌟
8383
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
8484
with:
85-
version: "0.7.3"
85+
version: "0.9.16"
8686

8787
- name: Run nox test_pypi_install session ${{ matrix.nox_test_pypi_install }} 🧪
8888
run: uvx nox --session ${{ matrix.nox_test_pypi_install }}
@@ -104,7 +104,7 @@ jobs:
104104
- name: Install uv 🌟
105105
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 #v7.1.4
106106
with:
107-
version: "0.7.3"
107+
version: "0.9.16"
108108

109109
- name: Build package for distribution 🛠️
110110
run: uv build

.pre-commit-config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,22 @@ repos:
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
2222
rev: v6.0.0
2323
hooks:
24-
- id: trailing-whitespace
24+
- id: check-merge-conflict
25+
- id: check-toml
2526
- id: check-yaml
2627
args: [--allow-multiple-documents]
2728
- id: debug-statements
2829
- id: detect-aws-credentials
2930
args: [--allow-missing-credentials]
3031
- id: detect-private-key
31-
- id: double-quote-string-fixer
32+
- id: end-of-file-fixer
33+
- id: trailing-whitespace
3234
- repo: https://github.com/codespell-project/codespell
3335
rev: v2.4.1
3436
hooks:
3537
- id: codespell
3638
args: ['--skip', 'test/__snapshots__/*.*', '--ignore-words-list', 'parsin']
39+
- repo: https://github.com/rhysd/actionlint
40+
rev: v1.7.9
41+
hooks:
42+
- id: actionlint

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ project uses [Semantic Versioning](https://semver.org/).
1010
### Added
1111

1212
- Add a config mechanism that works via config.toml or env variables
13+
- Add new hooks to the .pre-commit-config.yaml template
1314

1415
### Changed
1516

@@ -23,6 +24,7 @@ project uses [Semantic Versioning](https://semver.org/).
2324
- Set logging level via application configuration instead of hard-coding
2425
- Add cooldown to project Dependabot settings
2526
- Switching default quote style from single to double
27+
- Pin GitHub actions uv installs to the same version
2628

2729
## 0.5.7
2830

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# project information
7171
now = datetime.now()
7272
project = "pyprefab"
73-
copyright = f'{now.year}, Becky Sweger | Last update {now.strftime("%B %d, %Y")}'
73+
copyright = f"{now.year}, Becky Sweger | Last update {now.strftime('%B %d, %Y')}"
7474
author = "Becky Sweger"
7575

7676
version = metadata.version("pyprefab")

src/pyprefab/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ def main(
241241
package=name,
242242
directory=str(target_dir),
243243
error=str(e),
244-
traceback=traceback.format_exc())
244+
traceback=traceback.format_exc(),
245+
)
245246
raise typer.Exit(1)
246247

247248
logger.debug("package created", package=name, directory=str(target_dir))

0 commit comments

Comments
 (0)