Skip to content

Commit

Permalink
chore: cruft update
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber authored Nov 6, 2023
1 parent 3282454 commit d6ea969
Show file tree
Hide file tree
Showing 6 changed files with 1,155 additions and 1,005 deletions.
3 changes: 2 additions & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/radix-ai/poetry-cookiecutter",
"commit": "715f2bb25440f8fb18576a499be7c16207336191",
"commit": "0ebc888c020aad416bcca536e5f828545706f490",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -10,6 +10,7 @@
"author_name": "Laurent Sorber",
"author_email": "[email protected]",
"python_version": "3.8",
"docker_image": "python:$PYTHON_VERSION-slim",
"development_environment": "strict",
"with_conventional_commits": "1",
"with_fastapi_api": "1",
Expand Down
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"vscode": {
"extensions": [
"charliermarsh.ruff",
"ms-python.mypy-type-checker",
"ms-python.python",
"ryanluker.vscode-coverage-gutters",
"tamasfe.even-better-toml",
Expand All @@ -24,16 +25,18 @@
"source.organizeImports": true
},
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"[toml]": {
"editor.formatOnSave": false
},
"editor.rulers": [
100
],
"files.autoSave": "onFocusChange",
"mypy-type-checker.importStrategy": "fromEnvironment",
"python.defaultInterpreterPath": "/opt/my-package-env/bin/python",
"python.formatting.provider": "black",
"python.linting.mypyEnabled": true,
"python.terminal.activateEnvironment": false,
"python.testing.pytestEnabled": true,
"ruff.importStrategy": "fromEnvironment",
Expand Down
30 changes: 12 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
hooks:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
- id: python-check-mock-methods
- id: python-use-type-annotations
Expand All @@ -16,7 +16,7 @@ repos:
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -51,19 +51,20 @@ repos:
require_serial: true
language: system
stages: [commit-msg]
- id: ruff
name: ruff
entry: ruff
args: ["--extend-fixable=ERA001,F401,F841,T201,T203"]
- id: ruff-check
name: ruff check
entry: ruff check
args: ["--force-exclude", "--extend-fixable=ERA001,F401,F841,T201,T203"]
require_serial: true
language: system
types: [python]
- id: black
name: black
entry: black
types_or: [python, pyi]
- id: ruff-format
name: ruff format
entry: ruff format
args: [--force-exclude]
require_serial: true
language: system
types: [python]
types_or: [python, pyi]
- id: shellcheck
name: shellcheck
entry: shellcheck
Expand All @@ -74,13 +75,6 @@ repos:
name: poetry check
entry: poetry check
language: system
files: pyproject.toml
pass_filenames: false
- id: poetry-lock-check
name: poetry lock check
entry: poetry lock
args: [--check]
language: system
pass_filenames: false
- id: mypy
name: mypy
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV PYTHONFAULTHANDLER 1
ENV PYTHONUNBUFFERED 1

# Install Poetry.
ENV POETRY_VERSION 1.4.2
ENV POETRY_VERSION 1.6.1
RUN --mount=type=cache,target=/root/.cache/pip/ \
pip install poetry~=$POETRY_VERSION

Expand Down
Loading

0 comments on commit d6ea969

Please sign in to comment.