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 28, 2024
1 parent 2c69085 commit e18e66a
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 19 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 @@ -3,7 +3,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 @@ -13,14 +13,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
85 changes: 71 additions & 14 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 All @@ -24,7 +24,7 @@ classifiers = [
]
dependencies = [
"typing-extensions>=4.12.2",
"sghi-commons @ git+https://github.com/savannahghi/[email protected].0",
"sghi-commons @ git+https://github.com/savannahghi/[email protected].1",
]
description = "API specification for components of a simple ETL workflow."
dynamic = ["version"]
Expand All @@ -40,33 +40,33 @@ requires-python = ">=3.11" # Support Python 3.10+.

[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",
"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 @@ -279,6 +279,63 @@ where = ["src"]
root = "."

[tool.tox]
env_list = ["{py311, py312, py313}", "coveralls", "docs", "package"]
isolated_build = true
requires = ["tox>=4.16", "tox-uv>=1.15.0"]
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"]
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"]

[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
"""

[tool.tox1]
legacy_tox_ini = """
[tox]
env_list = {py311, py312}, coveralls, docs, package
Expand Down
6 changes: 4 additions & 2 deletions test/sghi/etl/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def dispose(self) -> None:


@dataclass(frozen=True, slots=True)
class TestWorkflowDefinition(WorkflowDefinition[Iterable[int], Iterable[str]]):
class SimpleWorkflowDefinition(
WorkflowDefinition[Iterable[int], Iterable[str]],
):
"""A simple :class:`WorkflowDefinition` implementation."""

@property
Expand Down Expand Up @@ -283,7 +285,7 @@ class TestWorkflow(TestCase):
def setUp(self) -> None:
super().setUp()
self._instance: WorkflowDefinition[Iterable[int], Iterable[str]]
self._instance = TestWorkflowDefinition()
self._instance = SimpleWorkflowDefinition()

def test_epilogue_return_value(self) -> None:
"""The default implementation of
Expand Down

0 comments on commit e18e66a

Please sign in to comment.