Skip to content

Commit

Permalink
Merge branch 'main' into use-github-attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed May 11, 2024
2 parents ffcd93d + b650238 commit 36244e4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Global owner
* @edgarrmondragon
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-json
Expand All @@ -21,14 +21,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.1
rev: 0.28.3
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.4.4
hooks:
- id: ruff
name: Ruff lint
Expand All @@ -55,7 +55,7 @@ repos:
- pydoclint==0.4.1

- repo: https://github.com/pre-commit/pre-commit
rev: v3.7.0
rev: v3.7.1
hooks:
- id: validate_manifest

Expand All @@ -66,12 +66,12 @@ repos:
args: [--all]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.7.0"
rev: "1.8.0"
hooks:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.1.26
rev: 0.1.42
hooks:
- id: pip-compile
files: ^pyproject\.toml$
Expand Down
5 changes: 3 additions & 2 deletions code_samples/duckdb_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# ruff: noqa: I001, PTH123

# start example
from pathlib import Path

import citric
import duckdb

Expand All @@ -14,8 +16,7 @@
"secret",
)

with open("responses.csv", "wb") as file:
file.write(client.export_responses(12345, file_format="csv"))
Path("responses.csv").write_bytes(client.export_responses(12345, file_format="csv"))

duckdb.execute("CREATE TABLE responses AS SELECT * FROM 'responses.csv'")
duckdb.sql("""
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/test_rpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import csv
import io
import json
import operator
import typing as t
import uuid
from datetime import datetime
Expand Down Expand Up @@ -207,7 +208,7 @@ def test_group(client: citric.Client, survey_id: int):

questions = sorted(
client.list_questions(survey_id, group_id),
key=lambda q: q["qid"],
key=operator.itemgetter("qid"),
)

assert questions[0]["question"] == "<p><strong>First question</p>"
Expand Down

0 comments on commit 36244e4

Please sign in to comment.