Skip to content

Commit

Permalink
Adapt to PEP 735
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkersigirci committed Oct 26, 2024
1 parent 2bd3365 commit 65bc00a
Show file tree
Hide file tree
Showing 5 changed files with 205 additions and 187 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: ./.github/actions/setup-python
- name: Install the Project with Test Dependencies
run: |
make install
make install-test
- name: Test the Project
run: |
make test-all-parallel
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
# args: [requirements.in, -o, requirements.txt]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.7.1
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ install-no-cache: ## Installs the development version of the package without cac
uv sync --frozen --no-cache
$(MAKE) install-precommit

# FIXME: Currently not supported by uv
# install-test: ## Install only test version of the package
install-test: ## Install only test version of the package
uv sync --frozen --only-group test

install-precommit: ## Install pre-commit hooks
uv run pre-commit install

install-lint:
uv pip install ruff==0.6.9
uv pip install ruff==0.7.1

install-doc:
uv pip install mkdocs mkdocs-material mkdocstrings[python]
Expand Down
45 changes: 25 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,8 @@ classifiers = [
dependencies = []

[tool.uv]
dev-dependencies = [
"pre-commit",
"ruff==0.6.9",
"mypy",
# "scalene~=1.5.21.2",
## DOCS
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
# "mdx-include",
# "mkdocs-markdownextradata-plugin",
## TEST
"pytest",
"pytest-cov",
"pytest-rerunfailures",
"pytest-xdist",
# "pytest-timeout",
## Jupyter
"ipykernel>=6.29.4",
]
default-groups = ["dev", "doc", "test"]


[tool.pytest.ini_options]
minversion = "7.0.0"
Expand Down Expand Up @@ -203,3 +185,26 @@ allow-direct-references = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"mypy>=1.13.0",
"pre-commit>=4.0.1",
"ruff>=0.7.1",
# "scalene~=1.5.21.2",
]
doc = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.5.42",
"mkdocstrings[python]>=0.26.2",
# "mdx-include",
# "mkdocs-markdownextradata-plugin",
]
test = [
"pytest-cov>=5.0.0",
"pytest-rerunfailures>=14.0",
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
# "pytest-timeout",
]
Loading

0 comments on commit 65bc00a

Please sign in to comment.