-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '903abb481295b315f5c4b399a52ece79da35756d'
- Loading branch information
Showing
238 changed files
with
33,293 additions
and
25,136 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ColumnLimit: 110 | ||
IndentWidth: 4 | ||
AccessModifierOffset: -4 | ||
|
||
AllowShortIfStatementsOnASingleLine: true | ||
PointerAlignment: Left | ||
AllowShortBlocksOnASingleLine: Always | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortLambdasOnASingleLine: None | ||
BreakBeforeBraces: Custom | ||
AlwaysBreakTemplateDeclarations: true | ||
BraceWrapping: | ||
SplitEmptyFunction: false | ||
AfterCaseLabel: true | ||
AfterClass: false | ||
AfterControlStatement: MultiLine | ||
AfterEnum: false | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
BeforeCatch: true | ||
BeforeElse: true | ||
SplitEmptyRecord: false | ||
SplitEmptyNamespace: false | ||
AllowAllConstructorInitializersOnNextLine: true | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
AllowShortCaseLabelsOnASingleLine: true |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
>>> s2 = "cetain" |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
bench/results/* linguist-vendored | ||
docs/img/* linguist-vendored | ||
*.impl linguist-language=C++ | ||
*.incl linguist-language=C++ |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Keep GitHub Actions up to date with GitHub's Dependabot... | ||
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" # Group all Actions updates into a single larger pull request | ||
schedule: | ||
interval: weekly |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Coverage of Test Build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
|
||
jobs: | ||
tests: | ||
name: "Generate coverage report for tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
submodules: 'true' | ||
- uses: "actions/setup-python@v5" | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest hypothesis pandas coverage cython | ||
- name: Generate cython | ||
run: | | ||
chmod +x ./src/rapidfuzz/generate.sh | ||
./src/rapidfuzz/generate.sh | ||
# for cython tests inplace installation is required | ||
- name: build | ||
run: CXXFLAGS=-DCYTHON_TRACE_NOGIL=1 pip install -e . -v | ||
|
||
- name: Test with pytest and generate coverage info | ||
run: | | ||
PYTHONPATH=$(pwd)/src coverage run -m pytest tests | ||
coverage xml | ||
coverage report | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
flags: unittests | ||
fail_ci_if_error: true | ||
verbose: true |
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
Oops, something went wrong.