Skip to content

Commit e1e3e54

Browse files
committed
apply consistent formatting
1 parent bc7db51 commit e1e3e54

File tree

13 files changed

+3392
-3259
lines changed

13 files changed

+3392
-3259
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tests/test_cydifflib_expect.html linguist-vendored
1+
tests/test_cydifflib_expect.html linguist-vendored

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ cython_debug/
151151
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
152152
#.idea/
153153

154-
*.cxx
154+
*.cxx

CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ cmake_policy(SET CMP0054 NEW)
44
set(SKBUILD_LINK_LIBRARIES_KEYWORD PRIVATE)
55

66
set(THREADS_PREFER_PTHREAD_FLAG ON)
7-
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
8-
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
7+
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
8+
set(CMAKE_OSX_DEPLOYMENT_TARGET
9+
"10.9"
10+
CACHE STRING "Minimum OS X deployment version")
911
endif()
1012

1113
project(cydifflib LANGUAGES C CXX)
1214

13-
if (MSVC)
14-
add_compile_options(/W4)
15+
if(MSVC)
16+
add_compile_options(/W4)
1517
else()
16-
add_compile_options(-Wall -Wextra -pedantic)
18+
add_compile_options(-Wall -Wextra -pedantic)
1719
endif()
1820

1921
find_package(PythonExtensions REQUIRED)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p align="center">
55
<a href="https://github.com/rapidfuzz/CyDifflib/actions">
66
<img src="https://github.com/rapidfuzz/CyDifflib/workflows/Build/badge.svg"
7-
alt="Continous Integration">
7+
alt="Continuous Integration">
88
</a>
99
<a href="https://pypi.org/project/cydifflib/">
1010
<img src="https://img.shields.io/pypi/v/cydifflib"
@@ -49,7 +49,7 @@ pip install git+https://github.com/rapidfuzz/CyDifflib.git@main
4949

5050
The library can be used in the same way as difflib. Just use the `cydifflib` module instead of `difflib`:
5151
```python
52-
#from difflib import SequenceMatcher
52+
# from difflib import SequenceMatcher
5353
from cydifflib import SequenceMatcher
5454
```
5555
The official [documentation of difflib](https://docs.python.org/3.10/library/difflib.html) explains how to use the library. If you work with a library which internally uses some of the algorithms of difflib it is possible to replace the implementation before importing this library. E.g. for `thefuzz` this can be done in the following way:

0 commit comments

Comments
 (0)