Skip to content

Commit

Permalink
apply consistent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Jan 8, 2024
1 parent bc7db51 commit e1e3e54
Show file tree
Hide file tree
Showing 13 changed files with 3,392 additions and 3,259 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tests/test_cydifflib_expect.html linguist-vendored
tests/test_cydifflib_expect.html linguist-vendored
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

*.cxx
*.cxx
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ cmake_policy(SET CMP0054 NEW)
set(SKBUILD_LINK_LIBRARIES_KEYWORD PRIVATE)

set(THREADS_PREFER_PTHREAD_FLAG ON)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_OSX_DEPLOYMENT_TARGET
"10.9"
CACHE STRING "Minimum OS X deployment version")
endif()

project(cydifflib LANGUAGES C CXX)

if (MSVC)
add_compile_options(/W4)
if(MSVC)
add_compile_options(/W4)
else()
add_compile_options(-Wall -Wextra -pedantic)
add_compile_options(-Wall -Wextra -pedantic)
endif()

find_package(PythonExtensions REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<p align="center">
<a href="https://github.com/rapidfuzz/CyDifflib/actions">
<img src="https://github.com/rapidfuzz/CyDifflib/workflows/Build/badge.svg"
alt="Continous Integration">
alt="Continuous Integration">
</a>
<a href="https://pypi.org/project/cydifflib/">
<img src="https://img.shields.io/pypi/v/cydifflib"
Expand Down Expand Up @@ -49,7 +49,7 @@ pip install git+https://github.com/rapidfuzz/CyDifflib.git@main

The library can be used in the same way as difflib. Just use the `cydifflib` module instead of `difflib`:
```python
#from difflib import SequenceMatcher
# from difflib import SequenceMatcher
from cydifflib import SequenceMatcher
```
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:
Expand Down
Loading

0 comments on commit e1e3e54

Please sign in to comment.