nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: aeye-lab/pymovements
Pull request #101 (2023-02-03 12:00:58)

CI: Add src to pytest testpaths for running doctests
This way it is possible to simply run `pytest` and it will include the doctests too.

I will add some in-detail description on this to the CONTRIBUTION.md, as developers don't need to run tests for all python environments during development process.


Patch:
diff --git a/README.md b/README.md
index 1c14de0..78b4f26 100644
--- a/README.md
+++ b/README.md
@@ -8,10 +8,10 @@
 [![PyPI status](https://img.shields.io/pypi/status/pymovements.svg)](https://pypi.python.org/pypi/pymovements/)
 [![Python version](https://img.shields.io/pypi/pyversions/pymovements.svg)](https://pypi.python.org/pypi/pymovements/)
 ![Operating System](https://img.shields.io/badge/os-linux%20%7C%20macOS%20%7C%20windows-blue)
-[![GitHub license](https://badgen.net/github/license/aeye-lab/pymovements)](https://github.com/aeye-lab/pymovements/blob/master/LICENSE)
+[![License](https://img.shields.io/pypi/l/pymovements.svg)](https://github.com/aeye-lab/pymovements/blob/master/LICENSE)
 [![Test Status](https://img.shields.io/github/actions/workflow/status/aeye-lab/pymovements/tests.yml?label=tests)](https://github.com/aeye-lab/pymovements/actions/workflows/tests.yml)
 [![Documentation Status](https://readthedocs.org/projects/pymovements/badge/?version=latest)](https://pymovements.readthedocs.io/en/latest/?badge=latest)
-[![PyPI download month](https://img.shields.io/pypi/dm/pymovements.svg)](https://pypistats.org/packages/pymovements)
+[![PyPI downloads/month](https://img.shields.io/pypi/dm/pymovements.svg)](https://pypistats.org/packages/pymovements)
 
 
 pymovements is an open-source python package for processing eye movement data. It provides a simple
diff --git a/pylintrc b/pylintrc
index 649f86a..59e6a65 100644
--- a/pylintrc
+++ b/pylintrc
@@ -509,7 +509,7 @@ preferred-modules=
 
 # Exceptions that will emit a warning when being caught. Defaults to
 # "Exception"
-overgeneral-exceptions=Exception
+overgeneral-exceptions=builtins.Exception
 
 
 [TYPING]
diff --git a/tox.ini b/tox.ini
index aafb0ef..0e30c8e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -79,7 +79,6 @@ commands = pre-commit run --all-files --show-diff-on-failure
 
 
 [testenv:mypy]
-basepython = python3.8
 changedir = {toxinidir}
 deps =
     mypy
@@ -96,8 +95,10 @@ max-line-length = 100
 
 
 [pytest]
-testpaths = tests
-addopts = -ra -l --doctest-modules
+testpaths =
+    tests
+    src
+addopts = -ra -l -v --doctest-modules
 filterwarnings =
     ignore::DeprecationWarning:pkg_resources.*:
 


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 6676a70..72c88b6 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -60,12 +60,11 @@ jobs:
       fail-fast: false
       matrix:
         os:
-          - macos-latest
           - ubuntu-latest
-          - windows-latest
         tox_env:
           - flake8
           - pylint
+          - mypy
     steps:
       - uses: actions/checkout@v3
         with:
Repository: aeye-lab/pymovements
Pull request #858 (2024-10-23 06:08:51)

feat: add support for .ias files in stimulus.text.from_file()
default eyelink aoi files end in `.ias`, hence I add the file type to `from_file` for text stimulus 

codecov[bot]: ## [Codecov](https://app.codecov.io/gh/aeye-lab/pymovements/pull/858?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 99.93%. Comparing base [(`a8caf95`)](https://app.codecov.io/gh/aeye-lab/pymovements/commit/a8caf9505a715e2b797cad4cb1de5fabf02e2db8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab) to head [(`b2493e0`)](https://app.codecov.io/gh/aeye-lab/pymovements/commit/b2493e0c8fe7ece20ae4979b6c524832ca9591e9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab).

<details><summary>Additional details and impacted files</summary>


```diff
@@             Coverage Diff             @@
##              main     #858      +/-   ##
===========================================
- Coverage   100.00%   99.93%   -0.07%     
===========================================
  Files           72       72              
  Lines         3321     3321              
  Branches       594      594              
===========================================
- Hits          3321     3319       -2     
- Misses           0        1       +1     
- Partials         0        1       +1     
```

</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/aeye-lab/pymovements/pull/858?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aeye-lab).


Patch:
diff --git a/src/pymovements/stimulus/text.py b/src/pymovements/stimulus/text.py
index 397924a..3d18400 100644
--- a/src/pymovements/stimulus/text.py
+++ b/src/pymovements/stimulus/text.py
@@ -135,7 +135,7 @@ def from_file(
     if custom_read_kwargs is None:
         custom_read_kwargs = {}
 
-    valid_extensions = {'.csv', '.tsv', '.txt'}
+    valid_extensions = {'.csv', '.tsv', '.txt', '.ias'}
     if aoi_path.suffix in valid_extensions:
         stimulus_df = pl.read_csv(
             aoi_path,


Test patch:
diff --git a/tests/unit/stimulus/text_test.py b/tests/unit/stimulus/text_test.py
index 1fece5f..2cf9903 100644
--- a/tests/unit/stimulus/text_test.py
+++ b/tests/unit/stimulus/text_test.py
@@ -224,5 +224,5 @@ def test_text_stimulus_unsupported_format():
         )
     msg, = excinfo.value.args
     expected = 'unsupported file format ".pickle".Supported formats are: '\
-        '[\'.csv\', \'.tsv\', \'.txt\']'
+        '[\'.csv\', \'.ias\', \'.tsv\', \'.txt\']'
     assert msg == expected