Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update dev dependencies #1171

Merged
merged 5 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ repos:
- id: trailing-whitespace

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

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.5.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand All @@ -52,7 +52,7 @@ repos:
- pydoclint==0.4.1

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

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

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

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.2.13
rev: 0.2.32
hooks:
- id: pip-compile
files: ^pyproject\.toml$
Expand Down
57 changes: 16 additions & 41 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
# uv pip compile pyproject.toml --pre --python-version 3.12 --extra docs -o docs/requirements.txt
alabaster==0.7.16
# via sphinx
anyio==4.3.0
# via
# starlette
# watchfiles
astroid==3.2.2
astroid==3.2.4
# via sphinx-autoapi
autodocsumm==0.2.12
# via citric (pyproject.toml)
Expand All @@ -18,23 +14,15 @@ certifi==2024.7.4
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via uvicorn
colorama==0.4.6
# via sphinx-autobuild
docutils==0.21.2
# via
# citric (pyproject.toml)
# myst-parser
# sphinx
furo==2024.5.6
furo==2024.7.18
# via citric (pyproject.toml)
h11==0.14.0
# via uvicorn
idna==3.7
# via
# anyio
# requests
# via requests
imagesize==1.4.1
# via sphinx
jinja2==3.1.4
Expand All @@ -54,74 +42,61 @@ mdurl==0.1.2
# via markdown-it-py
myst-parser==3.0.1
# via citric (pyproject.toml)
packaging==24.0
packaging==24.1
# via sphinx
pygments==2.18.0
# via
# furo
# sphinx
pyyaml==6.0.1
pyyaml==6.0.2rc1
# via
# myst-parser
# sphinx-autoapi
requests==2.32.2
requests==2.32.3
# via
# citric (pyproject.toml)
# sphinx
sniffio==1.3.1
# via anyio
snowballstemmer==2.2.0
# via sphinx
soupsieve==2.5
# via beautifulsoup4
sphinx==7.3.7
sphinx==7.4.7
# via
# citric (pyproject.toml)
# autodocsumm
# furo
# myst-parser
# sphinx-autoapi
# sphinx-autobuild
# sphinx-basic-ng
# sphinx-copybutton
# sphinx-hoverxref
# sphinx-notfound-page
# sphinxcontrib-jquery
sphinx-autoapi==3.1.0
# via citric (pyproject.toml)
sphinx-autobuild==2024.4.16
sphinx-autoapi==3.2.1
# via citric (pyproject.toml)
sphinx-basic-ng==1.0.0b2
# via furo
sphinx-copybutton==0.5.2
# via citric (pyproject.toml)
sphinx-hoverxref==1.3.0
sphinx-hoverxref==1.4.0
# via citric (pyproject.toml)
sphinx-notfound-page==1.0.0
sphinx-notfound-page==1.0.4
# via citric (pyproject.toml)
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-devhelp==1.0.6
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.0.5
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jquery==4.1
# via sphinx-hoverxref
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.7
sphinxcontrib-qthelp==2.0.0
# via sphinx
sphinxcontrib-serializinghtml==1.1.10
sphinxcontrib-serializinghtml==2.0.0
# via sphinx
starlette==0.37.2
# via sphinx-autobuild
typing-extensions==4.12.0rc1
typing-extensions==4.12.2
# via beautifulsoup4
urllib3==2.2.2
# via requests
uvicorn==0.29.0
# via sphinx-autobuild
watchfiles==0.21.0
# via sphinx-autobuild
websockets==12.0
# via sphinx-autobuild
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def docs_serve(session: nox.Session) -> None:
"docs",
"build",
]
session.install("-v", "citric[docs] @ .")
session.install("-v", "citric[docs] @ .", "sphinx-autobuild")

build_dir = Path("build")
if build_dir.exists():
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@ optional-dependencies.dev = [
"requests-cache>=1.1",
]
optional-dependencies.docs = [
"autodocsumm>=0.2.5", # 0.2.4 has a problematic dependency 'Sphinx>=2.2.*'
"autodocsumm>=0.2.5", # 0.2.4 has a problematic dependency 'Sphinx>=2.2.*'
"docutils>=0.20",
"furo>=2024.1.29",
"myst-parser>=2",
"sphinx>=7",
"sphinx-autoapi>=3",
"sphinx-autobuild>=2021.3.14",
"sphinx-copybutton>=0.5.2",
"sphinx-hoverxref>=1.3",
"sphinx-notfound-page>=1",
Expand Down Expand Up @@ -207,8 +206,6 @@ lint.flake8-import-conventions.banned-from = [
"typing",
]
lint.flake8-import-conventions.extend-aliases.typing = "t"
lint.flake8-pytest-style.fixture-parentheses = false
lint.flake8-pytest-style.mark-parentheses = false
lint.flake8-quotes.docstring-quotes = "double"
lint.flake8-quotes.inline-quotes = "double"
lint.flake8-quotes.multiline-quotes = "double"
Expand Down Expand Up @@ -313,6 +310,7 @@ omit = [
]
precision = 2
show_missing = true
skip_covered = true

[tool.mypy]
enable_error_code = [
Expand Down
2 changes: 1 addition & 1 deletion src/citric/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def delete_survey(self, survey_id: int) -> types.OperationStatus:
"""
return self.session.delete_survey(survey_id)

def export_responses( # noqa: PLR0913
def export_responses(
self,
survey_id: int,
*,
Expand Down