Skip to content

Commit c4577d8

Browse files
committed
Lint
1 parent edce098 commit c4577d8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,24 @@
1010
import re
1111
import subprocess
1212
import sys
13-
import shutil
1413
from pathlib import Path
1514

16-
from setuptools import find_packages, setup, Extension
15+
from setuptools import Extension, find_packages, setup
1716
from setuptools.command.build_ext import build_ext
1817

1918
# Read the README file
2019
with open("README.md", "r") as f:
2120
long_description = f.read()
2221

22+
2323
class CMakeExtension(Extension):
2424
def __init__(self, name, sourcedir=""):
2525
Extension.__init__(self, name, sources=[])
2626
self.sourcedir = os.path.abspath(sourcedir)
2727

28+
2829
class CMakeBuild(build_ext):
29-
def build_extension(self, ext):
30+
def build_extension(self, ext): # noqa C901
3031
extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
3132

3233
# Ensure the extension goes into the pytorch_tokenizers package directory
@@ -123,6 +124,7 @@ def build_extension(self, ext):
123124
["cmake", "--build", "."] + build_args, cwd=build_temp, check=True
124125
)
125126

127+
126128
setup(
127129
name="pytorch-tokenizers",
128130
version="0.1.0",

test/test_python_bindings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
Test script for PyTorch Tokenizers Python bindings
1010
"""
1111

12-
import os
1312
import sys
1413
import unittest
1514

0 commit comments

Comments
 (0)