Skip to content

Commit

Permalink
chore: cruft update
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Nov 6, 2024
1 parent a92d634 commit 5d09f8b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "[email protected]:tekumara/python-typed-template.git",
"commit": "0f4759d4049e0ec77f9b351e39197cc01e0cb770",
"commit": "49cb14fd299526b393f6257238c2baf1f3b59725",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
default_stages: [pre-push]
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.23.2
rev: v1.27.0
hooks:
- id: typos
# formatters and linters are available in the virtualenv so they can be run from the makefile & vscode
Expand Down
11 changes: 6 additions & 5 deletions Makefile-common.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --warn-undefined-variables --check-symlink-times
SHELL = /bin/bash -o pipefail
.DEFAULT_GOAL := help
.PHONY: help clean install format check pyright test dist hooks install-hooks
Expand All @@ -11,7 +11,8 @@ venv ?= .venv
# this is a symlink so we set the --check-symlink-times makeflag above
python := $(venv)/bin/python
# use uv if present, else fall back to pip
pip = $(shell command -v uv >/dev/null && echo "uv pip" || echo "$(venv)/bin/pip")
# set VIRTUAL_ENV to avoid uv installing into a different activated venv
pip = $(shell command -v uv >/dev/null && echo "VIRTUAL_ENV=$(venv) uv pip" || echo "$(venv)/bin/pip")

$(python): $(if $(value CI),|,) .python-version
# create venv using system python even when another venv is active
Expand Down Expand Up @@ -53,9 +54,9 @@ test: $(venv)

## build python distribution
dist: $(venv)
# start with a clean slate (see setuptools/#2347)
rm -rf dist *.egg-info
$(venv)/bin/python -m build --sdist --wheel
# start with a clean slate (see setuptools/#2347)
rm -rf build dist *.egg-info
$(venv)/bin/python -m build --wheel

## publish to pypi
publish: $(venv)
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ select = [
"SIM", # flake8-simplify
"S113", # request-without-timeout
"A", # flake8-builtins
"ASYNC", # flake8-async
]

ignore = [
# allow untyped self and cls args
"ANN101",
Expand Down

0 comments on commit 5d09f8b

Please sign in to comment.