Use pyproject.toml to conform with PEP 621

This commit is contained in:
Cosmin Ciocan
2024-01-02 11:16:26 +01:00
parent 7d8e04622c
commit 2a5a7ffeb7
4 changed files with 299 additions and 22 deletions
+2 -6
View File
@@ -3,14 +3,10 @@ import math
import os
import re
import shutil
import sys
from typing import List
import pytest
sys.path.append(".")
from nvcc4jupyter.plugin import NVCCPlugin
@@ -42,9 +38,9 @@ def copy_source_to_group(
@pytest.fixture(autouse=True, scope="function")
def before_each(plugin: NVCCPlugin):
shutil.rmtree(plugin.workdir, ignore_errors=True) # before test
shutil.rmtree(plugin.workdir, ignore_errors=True) # before test
yield
pass # after test
pass # after test
def test_save_source(plugin: NVCCPlugin, sample_cuda_code: str) -> None: