From a0439acf83089cabfe0731155b87a0fca7b3b099 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sat, 30 Dec 2023 06:55:26 +0000 Subject: [PATCH 1/5] Create sweep.yaml --- sweep.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sweep.yaml diff --git a/sweep.yaml b/sweep.yaml new file mode 100644 index 00000000..89e1d027 --- /dev/null +++ b/sweep.yaml @@ -0,0 +1,27 @@ +# Sweep AI turns bugs & feature requests into code changes (https://sweep.dev) +# For details on our config file, check out our docs at https://docs.sweep.dev/usage/config + +# This setting contains a list of rules that Sweep will check for. If any of these rules are broken in a new commit, Sweep will create an pull request to fix the broken rule. +rules: + - "All new business logic should have corresponding unit tests." + - "Refactor large functions to be more modular." + - "Add docstrings to all functions and file headers." + +# This is the branch that Sweep will develop from and make pull requests to. Most people use 'main' or 'master' but some users also use 'dev' or 'staging'. +branch: 'main' + +# By default Sweep will read the logs and outputs from your existing Github Actions. To disable this, set this to false. +gha_enabled: True + +# This is the description of your project. It will be used by sweep when creating PRs. You can tell Sweep what's unique about your project, what frameworks you use, or anything else you want. +# +# Example: +# +# description: sweepai/sweep is a python project. The main api endpoints are in sweepai/api.py. Write code that adheres to PEP8. +description: '' + +# This sets whether to create pull requests as drafts. If this is set to True, then all pull requests will be created as drafts and GitHub Actions will not be triggered. +draft: False + +# This is a list of directories that Sweep will not be able to edit. +blocked_dirs: [] From fe50e0cd1c890154ce8944b522d5de4304651e32 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sat, 30 Dec 2023 06:55:26 +0000 Subject: [PATCH 2/5] Create sweep template --- .github/ISSUE_TEMPLATE/sweep-template.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/sweep-template.yml diff --git a/.github/ISSUE_TEMPLATE/sweep-template.yml b/.github/ISSUE_TEMPLATE/sweep-template.yml new file mode 100644 index 00000000..44116f53 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/sweep-template.yml @@ -0,0 +1,15 @@ +name: Sweep Issue +title: 'Sweep: ' +description: For small bugs, features, refactors, and tests to be handled by Sweep, an AI-powered junior developer. +labels: sweep +body: + - type: textarea + id: description + attributes: + label: Details + description: Tell Sweep where and what to edit and provide enough context for a new developer to the codebase + placeholder: | + Unit Tests: Write unit tests for . Test each function in the file. Make sure to test edge cases. + Bugs: The bug might be in . Here are the logs: ... + Features: the new endpoint should use the ... class from because it contains ... logic. + Refactors: We are migrating this function to ... version because ... \ No newline at end of file From fd1a83afa066ac699c538812a223286eb926e659 Mon Sep 17 00:00:00 2001 From: Alejandro Gil Date: Wed, 3 Jan 2024 06:54:57 -0700 Subject: [PATCH 3/5] Fixing test_automata.py DFA error in Pypy3.9 and 3.10 --- tests/test_automata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_automata.py b/tests/test_automata.py index 1bceb733..9b57c45b 100644 --- a/tests/test_automata.py +++ b/tests/test_automata.py @@ -360,7 +360,7 @@ def test_strings_dfa(): domain = "abcd" words = set() - for i in xrange(1, len(domain) + 1): + for i in range(1, len(domain) + 1): # Replace xrange with range since xrange is failing in Pypy3.9 and 3.10 words.update("".join(p) for p in permutations(domain[:i])) words = sorted(words) dfa = fsa.strings_dfa(words) From b18b9e5513af25d522c991b10c7921dee5c13b57 Mon Sep 17 00:00:00 2001 From: Alejandro Gil Date: Wed, 3 Jan 2024 07:05:38 -0700 Subject: [PATCH 4/5] Fix test_analysis.py Deprecation warning in Pypy3.10 --- tests/test_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_analysis.py b/tests/test_analysis.py index c46a70db..425415f4 100644 --- a/tests/test_analysis.py +++ b/tests/test_analysis.py @@ -520,7 +520,7 @@ def test_stop_lang(): def test_issue358(): - t = analysis.RegexTokenizer("\w+") + t = analysis.RegexTokenizer(r"\w+") with pytest.raises(analysis.CompositionError): _ = t | analysis.StandardAnalyzer() From b479b22cc942d938ce2b699522b9b660dd30970a Mon Sep 17 00:00:00 2001 From: Alejandro Gil Date: Wed, 3 Jan 2024 08:00:18 -0700 Subject: [PATCH 5/5] Update Readme.md with a working documentation link and some other extra information and fixes. --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index e11d0352..45faaa69 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,7 @@ Whoosh might be useful in the following circumstances: * When an easy-to-use Pythonic interface is more important to you than raw speed. -Whoosh was created and is maintained by Matt Chaput. It was originally created -for use in the online help system of Side Effects Software's 3D animation +Whoosh was created by Matt Chaput and is maintained currently by the Sygil-Dev Organization. It was originally created for use in the online help system of Side Effects Software's 3D animation software Houdini. Side Effects Software Inc. graciously agreed to open-source the code. @@ -43,28 +42,29 @@ Installing Whoosh If you have ``setuptools`` or ``pip`` installed, you can use ``easy_install`` or ``pip`` to download and install Whoosh automatically:: + # install the old version from Pypi $ easy_install Whoosh - + or - + $ pip install Whoosh + + + # Install the development version from Github. + $ pip install git+https://github.com/Sygil-Dev/whoosh.git Learning more ============= -* Read the online documentation at https://whoosh.readthedocs.org/en/latest/ +* Read the online documentation at https://docs.red-dove.com/whoosh/ (Search DOES work). -* Join the Whoosh mailing list at http://groups.google.com/group/whoosh +* Read the old online documentation at https://whoosh.readthedocs.org/en/latest/ (Search DOES NOT work). -* File bug reports and view the Whoosh wiki at - http://bitbucket.org/mchaput/whoosh/ +* File bug reports and issues at https://github.com/Sygil-Dev/whoosh/issues -Getting the source +Getting the source. ================== -Download source releases from PyPI at http://pypi.python.org/pypi/Whoosh/ - -You can check out the latest version of the source code using Mercurial:: - - hg clone http://bitbucket.org/mchaput/whoosh +You can check out the latest version of the source code on GitHub using git: + $ git clone https://github.com/Sygil-Dev/whoosh.git