Skip to content

Commit

Permalink
Update to 3.13 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 authored Dec 11, 2024
1 parent 6243823 commit d67c5b1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 38 deletions.
1 change: 0 additions & 1 deletion .github/workflows/autoformat-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
merge_group:

jobs:
autoformat-and-lint:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
merge_group:

jobs:
build:
Expand All @@ -19,7 +18,7 @@ jobs:
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.x'
cache: 'pip'

- name: 📦 Install dependencies
Expand Down
71 changes: 36 additions & 35 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "vbl-aquarium"
dynamic = ["version"]
description = 'Collection of Pydantic models describing data objects passed between Virtual Brain Lab projects.'
readme = "README.md"
requires-python = ">=3.8, <3.13"
requires-python = ">=3.8"
license = "MIT"
keywords = ['pydantic', "virtualbrainlab", "neuroscience"]
authors = [
Expand All @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
Expand All @@ -43,44 +44,44 @@ path = "src/vbl_aquarium/__about__.py"
exclude = ["/models"]

[tool.hatch.envs.default]
python="3.12"
python="3.13"
dependencies = [
"coverage[toml]>=6.5",
"mypy>=1.0.0",
"pytest",
# "coverage[toml]>=6.5",
# "mypy>=1.0.0",
# "pytest",
]

[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
check = "mypy --strict --install-types --non-interactive {args:src/vbl_aquarium}"

[tool.coverage.run]
source_pkgs = ["vbl_aquarium", "tests"]
branch = true
parallel = true
omit = [
"src/vbl_aquarium/__about__.py",
]

[tool.coverage.paths]
vbl_aquarium = ["src/vbl_aquarium", "*/vbl-aquarium/src/vbl_aquarium"]
tests = ["tests", "*/vbl-aquarium/tests"]
#[tool.hatch.envs.default.scripts]
#test = "pytest {args:tests}"
#test-cov = "coverage run -m pytest {args:tests}"
#cov-report = [
# "- coverage combine",
# "coverage report",
#]
#cov = [
# "test-cov",
# "cov-report",
#]
#check = "mypy --strict --install-types --non-interactive {args:src/vbl_aquarium}"

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
#[tool.coverage.run]
#source_pkgs = ["vbl_aquarium", "tests"]
#branch = true
#parallel = true
#omit = [
# "src/vbl_aquarium/__about__.py",
#]
#
#[tool.coverage.paths]
#vbl_aquarium = ["src/vbl_aquarium", "*/vbl-aquarium/src/vbl_aquarium"]
#tests = ["tests", "*/vbl-aquarium/tests"]
#
#[tool.coverage.report]
#exclude_lines = [
# "no cov",
# "if __name__ == .__main__.:",
# "if TYPE_CHECKING:",
#]

[tool.ruff.lint]
ignore=["A003", "EM101", "FBT002", "T201", "TCH001", "TRY002", "TRY003"]

0 comments on commit d67c5b1

Please sign in to comment.