Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.6.17"
version: "0.9.28"
- name: Install dependencies
run: |
uv sync --group docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.9.5"
version: "0.9.28"
- name: Install dependencies (including dev)
run: uv sync --group dev
- name: Run pre-commit
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.6.17"
version: "0.9.28"
- name: Build and publish
run: |
uv build
Expand Down
43 changes: 22 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
fail_fast: false

repos:
# Python linting and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.7
rev: v0.14.10
hooks:
- id: ruff
args: [--fix, --ignore, E722, --exclude, "__init__.py"]
- id: ruff-check
args: [--fix, --ignore, E722]
- id: ruff-format
- repo: https://github.com/PyCQA/isort
rev: 6.0.1

# Type checking
- repo: local
hooks:
- id: isort
args:
- --line-length=79
- id: ty
name: ty check
entry: bash -c 'ty check suthing test'
language: system
pass_filenames: false
always_run: true

# YAML formatting
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
rev: v2.15.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '4', --preserve-quotes]

# JSON formatting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: pretty-format-json
args: [--autofix, --indent, '4', --no-sort-keys]
files: ^(?!.*jsonld)$
exclude: \.jsonld$

# TOML formatting and sorting
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
rev: v2.15.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.2
rev: v0.24.3
hooks:
- id: toml-sort
args: [-ia]
- repo: local
hooks:
- id: ty
name: ty check
entry: bash -c 'ty check suthing test'
language: system
pass_filenames: false
always_run: true
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ A Python utility package providing tools for file handling, timing, profiling, a
[![PyPI Downloads](https://static.pepy.tech/badge/suthing)](https://pepy.tech/projects/suthing)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![pre-commit](https://github.com/growgraph/suthing/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/growgraph/suthing/actions/workflows/pre-commit.yml)
[![pytest](https://github.com/growgraph/suthing/actions/workflows/pytest.yml/badge.svg)](https://github.com/growgraph/suthing/actions/workflows/pytest.yml)
<!-- [![Documentation Status](https://readthedocs.org/projects/suthing/badge/?version=latest)](https://suthing.readthedocs.io/en/latest/?badge=latest) -->
[![PyPI version](https://badge.fury.io/py/suthing.svg)](https://badge.fury.io/py/suthing)
[![PyPI Downloads](https://static.pepy.tech/badge/suthing)](https://pepy.tech/projects/suthing)

## Features

Expand Down
21 changes: 14 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ docs = [
]

[project]
authors = [{email = "abelikov@gmail.com", name = "Alexander Belikov"}]
authors = [{email = "alexander@growgraph.dev", name = "Alexander Belikov"}]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python"
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython"
]
dependencies = [
"dataclass-wizard>=0.34.0,<0.35",
"dataclass-wizard>=0.33.1",
"mkdocs-gen-files>=0.5.0",
"pandas>=2.0.3,<3",
"pandas>=2.3.3",
"python-dotenv>=1.0.0,<2",
"pyyaml>=3.10",
"strenum>=0.4.15"
Expand All @@ -38,11 +39,17 @@ keywords = [
license = "MIT"
name = "suthing"
readme = "README.md"
requires-python = ">=3.10, <4"
version = "0.5.0"
requires-python = ">=3.11"
version = "0.5.1"

[project.urls]
Homepage = "https://github.com/growgraph/suthing"

[tool.hatch.build.targets.sdist]
include = ["suthing"]

[tool.hatch.build.targets.wheel]
include = ["suthing"]

[tool.mypy]
ignore_missing_imports = true
1 change: 1 addition & 0 deletions suthing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"Return",
"SProfiler",
"profile",
"timeit",
"secureit",
"FileHandle",
]
Binary file modified test/data/example.jsonld.gz
Binary file not shown.
Loading