Skip to content

Commit

Permalink
chore(deps): upgrade project dependencies
Browse files Browse the repository at this point in the history
Upgrade all project dependencies.
  • Loading branch information
kennedykori committed Oct 26, 2024
1 parent 23a5851 commit b04f47d
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 83 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
python-version:
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Set up project using python ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -12,14 +12,14 @@ repos:
- id: check-yaml

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.19.0
hooks:
- id: pyupgrade
args:
- --py311-plus

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.1
rev: v0.7.1
hooks:
- id: ruff
args:
Expand Down
150 changes: 70 additions & 80 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools~=70.3.0",
"setuptools~=75.2.0",
"setuptools_scm[toml]~=8.1.0"
]

Expand Down Expand Up @@ -40,34 +40,34 @@ requires-python = ">=3.11" # Support Python 3.11+.

[project.optional-dependencies]
dev = [
"pre-commit~=3.7.1",
"pre-commit~=4.0.1",
]

docs = [
"furo==2024.5.6",
"jaraco.packaging~=10.2.2",
"furo==2024.8.6",
"jaraco.packaging~=10.2.3",
"rst.linker~=2.6.0",
"Sphinx~=7.3.7",
"Sphinx~=8.1.3",
"sphinx-favicon~=1.0.1",
"sphinx-hoverxref~=1.4.0",
"sphinx-hoverxref~=1.4.1",
"sphinx-inline-tabs~=2023.4.21",
"sphinx-lint~=0.9.1",
"sphinx-notfound-page~=1.0.2",
"sphinx-lint~=1.0.0",
"sphinx-notfound-page~=1.0.4",
]

test = [
"coverage~=7.6.0",
"coverage~=7.6.4",
"coveralls~=4.0.1",
"factory-boy~=3.3.0",
"factory-boy~=3.3.1",
"packaging",
"pyright>=1.1.371",
"pytest~=8.2.2",
"pyright>=1.1.386",
"pytest~=8.3.3",
"pytest-cov~=5.0.0",
"pytest-forked~=1.6.0",
"pytest-sugar~=1.0.0",
"pytest-xdist~=3.6.1",
"ruff~=0.5.1",
"tox~=4.16.0",
"ruff~=0.7.1",
"tox~=4.23.2",
"tox-gh-actions~=3.2.0",
]

Expand Down Expand Up @@ -256,71 +256,61 @@ where = ["src"]
root = "."

[tool.tox]
legacy_tox_ini = """
[tox]
env_list = {py311, py312}, coveralls, docs, package
isolated_build = true
no_package = false
requires =
tox>4
skip_missing_interpreters = true
[gh-actions]
python =
3.11: py311
3.12: py312, coveralls, docs, package
[testenv]
commands =
ruff check .
ruff format --check .
pyright .
coverage erase
pytest {posargs:.}
coverage html
deps =
.
description = test and lint the project
download = true
extras =
test
set_env =
PYTHONPATH = {toxinidir}/src
PYRIGHT_PYTHON_FORCE_VERSION = latest
;If running outside Github, ensure that the the `COVERALLS_REPO_TOKEN`
;environment variable is set.
[testenv:coveralls]
commands =
coveralls --service=github
description = submit coverage results to coverall.io
extras =
test
pass_env =
COVERALLS_REPO_TOKEN
GITHUB_*
[testenv:docs]
changedir = docs
commands =
sphinx-build -EW --keep-going -b html . {toxinidir}/docs/build/html
sphinx-lint -i api
description = build sphinx documentation
extras =
docs
env_list = ["{py311, py312, py313}", "coveralls", "docs", "package"]
isolated_build = true
requires = ["tox>=4.16", "uv>=0.4.27"]
no_package = false
skip_missing_interpreters = true

[tool.tox.env_run_base]
allowlist_externals = ["uv"]
commands = [
["ruff", "check", "."],
["ruff", "format", "--check", "."],
["pyright", "."],
["coverage", "erase"],
["pytest", { replace = "posargs", default = ["."], extend = true}],
["coverage", "html"],
]
deps = ["."]
description = "test and lint the project"
download = true
extras = ["test"]
install_command = "uv pip install {opts} {packages}"
list_dependencies_command = "uv pip freeze"
set_env ={ PYTHONPATH = "{toxinidir}/src", PYRIGHT_PYTHON_FORCE_VERSION = "latest" }

[tool.tox.env.coveralls]
# If running outside Github, ensure that the the `COVERALLS_REPO_TOKEN`
# environment variable is set.
commands = [["coveralls", "--service=github"]]
description = "submit coverage results to coverall.io"
extras = ["test"]
pass_env = ["COVERALLS_REPO_TOKEN", "GITHUB_*"]

[tool.tox.env.docs]
changedir = "docs"
commands = [
["sphinx-build", "-EW", "--keep-going", "-b", "html", ".", "{toxinidir}/docs/build/html"],
["sphinx-lint", "-i", "api"]
]
description = "build sphinx documentation"
extras = ["docs"]

[testenv:package]
commands =
python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)"
python -m build
depends = testenv
deps =
build
description = build the library
skip_install = true
[tool.tox.env.package]
commands = [
["python", "-c", "import shutil; shutil.rmtree('dist', ignore_errors=True)"],
["python", "-m", "build"]
]
depends = ["testenv"]
deps = ["build"]
description = "build the library"
skip_install = true

[tool.tox.gh-actions]
# python = { "3.11" = ["py311"], "3.12" = ["py312", "coveralls", "docs", "package"], "3.13" = ["py313"] }
python = """
3.11: py311
3.12: py312, coveralls, docs, package
3.13
"""

0 comments on commit b04f47d

Please sign in to comment.