Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major Refactor: Add Ruff Linting, Nox, and Pre-Commit Hook #266

Open
wants to merge 119 commits into
base: main
Choose a base branch
from

Commits on Feb 21, 2024

  1. added ruff and nox.

    BalzaniEdoardo committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    58d7c2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    720dcd4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cdda670 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. adds src to ruff config

    billbrod committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    2b94867 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d25dea2 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Configuration menu
    Copy the full SHA
    fbb55c9 View commit details
    Browse the repository at this point in the history
  2. basic precommit confi

    hmd101 committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    e5adecc View commit details
    Browse the repository at this point in the history
  3. ruff linter added to ci

    hmd101 committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    870d2d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. formatter added

    hmd101 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    dc40707 View commit details
    Browse the repository at this point in the history
  2. default check added to ci

    hmd101 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    c802033 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f61b94 View commit details
    Browse the repository at this point in the history
  4. test

    hmd101 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    b0a392c View commit details
    Browse the repository at this point in the history
  5. test

    hmd101 committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    48a571d View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. ruff badge added to readme

    hmd101 committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    4302b55 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    8d44d45 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83a3e41 View commit details
    Browse the repository at this point in the history
  3. ruff check runs

    hmd101 committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1badbad View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. linting merge

    hmd101 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    3fe5fec View commit details
    Browse the repository at this point in the history
  2. toml formatting

    hmd101 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    0c50992 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7f8aec4 View commit details
    Browse the repository at this point in the history
  4. pre-commit edits

    hmd101 committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    3e78c47 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Configuration menu
    Copy the full SHA
    089497c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ae3d11 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2024

  1. Configuration menu
    Copy the full SHA
    1e9fc9c View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2024

  1. Configuration menu
    Copy the full SHA
    1d8a57f View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Configuration menu
    Copy the full SHA
    e0678b8 View commit details
    Browse the repository at this point in the history
  2. test

    hmd101 committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    8272ba2 View commit details
    Browse the repository at this point in the history
  3. .

    hmd101 committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    34524f5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    593fd23 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9b5fb54 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    38a4150 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. updating some deprecated imports, isinstance for union of types, unso…

    …rted imports, f-strings, replaced single quote with double quotes and deleted trailing whitespace
    hmd101 committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    c1fd8bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bb4333 View commit details
    Browse the repository at this point in the history
  3. Revert "notebooks 00-quickstart and 02-eigendistortions line-length c…

    …orrection"
    
    This reverts commit 4bb4333.
    hmd101 committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    7786cad View commit details
    Browse the repository at this point in the history
  4. Revert "updating some deprecated imports, isinstance for union of typ…

    …es, unsorted imports, f-strings, replaced single quote with double quotes and deleted trailing whitespace"
    
    This reverts commit c1fd8bc.
    hmd101 committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    79e93d3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3bb9ce1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    633d489 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    47acd99 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    618ef87 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    43937bc View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. Configuration menu
    Copy the full SHA
    01bbaf9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb714bf View commit details
    Browse the repository at this point in the history
  3. removing # noqa: UP035 tag

    hmd101 committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    8724a2b View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Configuration menu
    Copy the full SHA
    fa29088 View commit details
    Browse the repository at this point in the history
  2. pytest ini_options adjustments to accomodate module not implemented e…

    …rror when runnin nox sesssion tests
    hmd101 committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    13f3db2 View commit details
    Browse the repository at this point in the history
  3. updating test session in nox file to install all dependencies as list…

    …es in toml file and fixing none-type error in eigendistortions.py
    hmd101 committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    d3e825c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4aa2765 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. resolving some too long lines

    hmd101 committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    180a17e View commit details
    Browse the repository at this point in the history
  2. resolving merge conflict

    hmd101 committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    5c16f7e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cec2844 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1230ef6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d367c22 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. .

    hmd101 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    5b76b6a View commit details
    Browse the repository at this point in the history
  2. some more fixes

    hmd101 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    f3eb287 View commit details
    Browse the repository at this point in the history
  3. removed .keys() from dictionary iteration, replaced if-else with 1-l…

    …iners, used f-strings, shortened if statements with boolean expressions, added contextlib for with statements, and refactored lambda expressions into methods.
    hmd101 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    46bc834 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. ignored SIM105 or do we want to use contextlib package instead of try…

    …-except-pass blocks?
    hmd101 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    e10f8dd View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Configuration menu
    Copy the full SHA
    d375f32 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07fd3ef View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    bda1de7 View commit details
    Browse the repository at this point in the history
  2. removing too long lines

    hmd101 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    45a9890 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d7fbd6e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e623302 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4d29fd9 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. too long lines fixed

    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    4abbc02 View commit details
    Browse the repository at this point in the history
  2. in optimizer_step in metamer.py condensed if statements and added che…

    …ck for index out of bound
    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    309e040 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    302e97e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3fba75b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    73db7cf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0c720a6 View commit details
    Browse the repository at this point in the history
  7. updating union syntax to python 3.10 bar version, unrelated 420 sha-e…

    …rrors and 2 failed tests asserting x < some threshold
    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    d8e1f6a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7d77488 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8555474 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bd9b0ec View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d1ab319 View commit details
    Browse the repository at this point in the history
  12. added predicate ignore-init-module-imports to tool.ruff.lint in pypro…

    …ject.toml and set it to true
    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    d028c67 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eabaf30 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1952d40 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5f54512 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    daa38ee View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1203e89 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4e0fa0d View commit details
    Browse the repository at this point in the history
  19. cutting line lenght

    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    f08c142 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    a5fb657 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    4150226 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    b2c5a18 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    718440d View commit details
    Browse the repository at this point in the history
  24. .

    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    47aa63d View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    07ff382 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    12daada View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    bd34ed0 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    bfda72c View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    3db6e8b View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    6413588 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    bb9c581 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    b1e771b View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    cca5220 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    aec45b7 View commit details
    Browse the repository at this point in the history
  35. shortening lines

    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    f47db30 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    1d34294 View commit details
    Browse the repository at this point in the history
  37. .

    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    380112f View commit details
    Browse the repository at this point in the history
  38. fixing too long lines

    hmd101 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    eb56114 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    e6f10f2 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    4e62eae View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. reformatting

    hmd101 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    1bc6ed1 View commit details
    Browse the repository at this point in the history
  2. resolving merge conflict

    hmd101 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    b2c81cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a4e2f57 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    244948d View commit details
    Browse the repository at this point in the history
  5. fixing linting error

    hmd101 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    9d572e7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3c1b3db View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9975ef0 View commit details
    Browse the repository at this point in the history
  8. formatting fix

    hmd101 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    a159b1d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5c9e28d View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    6050344 View commit details
    Browse the repository at this point in the history
  2. imports sorted in init

    hmd101 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    fb2f5a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3951c79 View commit details
    Browse the repository at this point in the history
  4. unused imports uncommented

    hmd101 committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    c2912b0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e13a7ad View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    54ebe85 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a777133 View commit details
    Browse the repository at this point in the history