Skip to content

Commit

Permalink
Merge pull request #125 from Lightmatter/develop
Browse files Browse the repository at this point in the history
Catch up main
  • Loading branch information
samamorgan authored Jan 15, 2025
2 parents 3ae45c3 + 5019eb8 commit c2f5291
Show file tree
Hide file tree
Showing 9 changed files with 971 additions and 826 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
# Limit pull requests to 0 to only propose security updates
open-pull-requests-limit: 1
schedule:
interval: "weekly"
target-branch: "develop"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
target-branch: "develop"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout ${{ github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-autoupdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-yaml
args: [--unsafe]
Expand All @@ -9,7 +9,7 @@ repos:

## Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.8.6
hooks:
- id: ruff
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.9"
jobs:
post_create_environment:
- pip install poetry
Expand Down
1,741 changes: 935 additions & 806 deletions poetry.lock

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ classifiers = [
"Bug Tracker" = "https://github.com/lightmatter/welkin-health/issues"

[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.31.0"
portalocker = "^2.8.2"
python = "^3.9"
inflection = "^0.5.1"
portalocker = "^2.8.2"
requests = "^2.31.0"

[tool.poetry.group.dev.dependencies]
pre-commit = "^3.5.0"
ruff = "^0.3.6"
pre-commit = "^4.0.1"
ruff = "^0.9.1"

[tool.poetry.group.test.dependencies]
pytest = "^8.0.2"
pytest-cov = "^4.1.0"
pytest = "^8.3.4"
pytest-cov = "^6.0.0"
pytest-dotenv = "^0.5.2"
pytest-vcr = "^1.0.2"
pytest-xdist = "^3.5.0"
pytest-xdist = "^3.6.1"

[tool.poetry.group.docs.dependencies]
Sphinx = "7.1.2"
sphinx-autoapi = "^3.0.0"
sphinx-rtd-theme = "^2.0.0"
myst-parser = "^2.0.0"
myst-parser = "^3.0.1"
Sphinx = "^7.4.7"
sphinx-autoapi = "^3.4.0"
sphinx-rtd-theme = "^3.0.2"

[build-system]
requires = ["poetry-core"]
Expand All @@ -58,7 +58,7 @@ env_files = [".env", ".env.example"]
cache-dir = "~/.cache/ruff"
extend-exclude = ["*migrations/*"]
line-length = 92
target-version = "py38"
target-version = "py39"
show-fixes = true

[tool.ruff.lint]
Expand Down
1 change: 1 addition & 0 deletions welkin/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: RUF022
from welkin.models.assessment import (
Assessment,
AssessmentRecord,
Expand Down
4 changes: 2 additions & 2 deletions welkin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def reset_file_offsets(files: list) -> None:
fp.seek(0)


@lru_cache(maxsize=None)
@lru_cache
def to_camel_case(s: str) -> str:
"""Convert a string to camelCase.
Expand All @@ -219,7 +219,7 @@ def to_camel_case(s: str) -> str:
return inflection.camelize(to_snake_case(s), uppercase_first_letter=False)


@lru_cache(maxsize=None)
@lru_cache
def to_snake_case(s: str) -> str:
"""Convert a string to snake_case.
Expand Down

0 comments on commit c2f5291

Please sign in to comment.