-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from tlambert03/linting
linting, ruff, python3.12+, tests
- Loading branch information
Showing
8 changed files
with
66 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run pre-commit | ||
run: pipx run pre-commit run --all-files | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install ".[dev]" | ||
- name: Test with pytest | ||
run: | | ||
pytest tests | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install ".[dev]" | ||
- name: Test with pytest | ||
run: | | ||
pytest --color=yes -v tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ requires = ["setuptools", "wheel"] | |
name = "witty" | ||
description = "Well-in-Time Compiler for Cython Modules" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
] | ||
|
@@ -16,12 +16,12 @@ authors = [ | |
{ email = "[email protected]", name = "Jan Funke" }, | ||
] | ||
dynamic = ["version"] | ||
dependencies = ["cython"] | ||
dependencies = ["cython", "setuptools; python_version >= '3.12'"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
'pytest', | ||
'black', | ||
'ruff', | ||
'mypy', | ||
'pdoc', | ||
'pre-commit' | ||
|
@@ -30,3 +30,7 @@ dev = [ | |
[project.urls] | ||
homepage = "https://github.com/funkelab/witty" | ||
repository = "https://github.com/funkelab/witty" | ||
|
||
[tool.ruff] | ||
target-version = "py39" | ||
src = ["src"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from .compile_module import compile_module | ||
|
||
__version__ = "0.1" | ||
|
||
__all__ = ["compile_module"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters