Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -Ue .[test]
pip install -Ue . --group test
pip install -Ue .

- name: Run tests
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ repos:
- id: conventional-pre-commit
stages: [commit-msg]
args: ["--strict"]
- repo: https://github.com/astral-sh/ty-pre-commit
rev: v0.0.57
hooks:
- id: ty
stages: [manual]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.2.0
hooks:
Expand Down
25 changes: 21 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
#!/usr/bin/make -f

.PHONY: dist pushrelease pushreleasetest clean lint lint-fix format

dist:
python3 setup.py sdist bdist_wheel
python3 setup.py sdist bdist_wheel

pushreleasetest:
python3 -m twine upload --repository testpypi dist/*
python3 -m twine upload --repository testpypi dist/*

pushrelease:
python3 -m twine upload dist/*
python3 -m twine upload dist/*

clean:
$(RM) -r dist
$(RM) -r dist

lint:
-prek run -a

lint-fix:
-prek run -a --hook-stage manual ruff-fix

format:
-prek run -a --hook-stage manual ruff-format

ty:
-prek run -a --hook-stage manual ty

mypy:
-prek run -a --hook-stage manual mypy
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ requires-python = ">=3.8"
[project.optional-dependencies]
xml = ["defusedxml"]
hal = ["uritemplate"]

[dependency-groups]
test = [
"pytest",
"pytest-cov",
Expand All @@ -70,6 +72,21 @@ exclude_lines = [
"pragma: no cover",
]

[tool.ty.terminal]
output-format = "concise"

[tool.ty.environment]
python-version = "3.8"

[tool.mypy]
python_version = "3.10"
strict = true
show_error_codes = true
explicit_package_bases = true
namespace_packages = true
mypy_path = ["httoop"]
files = ["httoop/"]

[tool.ruff]
line-length = 180
target-version = "py37"
Expand Down
Loading