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

feat: Added generation for Safe-DS stubs files #33

Merged
merged 122 commits into from
Dec 7, 2023
Merged

Commits on Oct 13, 2023

  1. Added stub generator and functionality for generating a module + impo…

    …rts + package information + class + methods + attr
    Masara committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    bb1e449 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7a067c View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2023

  1. Configuration menu
    Copy the full SHA
    d756015 View commit details
    Browse the repository at this point in the history
  2. Refactoring & some small fixes

    Masara committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    59d2732 View commit details
    Browse the repository at this point in the history
  3. Refactoring

    Masara committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    a2baa05 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Configuration menu
    Copy the full SHA
    50e18c0 View commit details
    Browse the repository at this point in the history
  2. fixes & refactoring

    Masara committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    4a3b8bd View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Fixed a bug in the get_api call | Stub-Generator: some fixes and adde…

    …d TODO messages for the SafeDS Stubs, if unallowed type hints were used
    Masara committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    975293b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    519aaae View commit details
    Browse the repository at this point in the history
  3. Refactoring stubs generator: Access to data of the API via API class,…

    … so that one can access the dictionaries directly and does not have to iterate over all lists.
    Masara committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    78143ea View commit details
    Browse the repository at this point in the history
  4. some fixes

    Masara committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    aa6e543 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Fixed a bug in _get_api.py which prevented analysing packages with di…

    …fferent path lengths. Fixed a bug _ast_visitor.py for the api data creation, in which the id of modules did not correctly represent their path.
    Masara committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    5e51e2e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cfa90eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3a61470 View commit details
    Browse the repository at this point in the history
  4. Created new package for stubs generation functions, created test file…

    … (w/o tests), fixed a bug where creating directories for stubs would cause an exception
    Masara committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    87d8886 View commit details
    Browse the repository at this point in the history
  5. Added test cases for files, directories, classes, functions and attri…

    …butes that have the same name as the source package
    Masara committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3d8aee4 View commit details
    Browse the repository at this point in the history
  6. Merge remote-tracking branch 'origin/fixes-path_lengths-module_id' in…

    …to fixes-path_lengths-module_id
    Masara committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    7201cda View commit details
    Browse the repository at this point in the history
  7. linter fix

    Masara committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    7f4dd64 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e5b023f View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2023

  1. Configuration menu
    Copy the full SHA
    cbf2efa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ad4b69 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

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

    Masara committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    e433458 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    082b1b9 View commit details
    Browse the repository at this point in the history
  4. Linter fix

    Masara committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    291e13c View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. Added a TODO for stubs if a class has multiple inheritances, empty en…

    …um or class body are removed, added static modifier for class attributes, adjusted todo messages for stubs, added () for class constructors
    Masara committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    3872ee0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c902f5 View commit details
    Browse the repository at this point in the history
  3. Refactoring

    Masara committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    37efa81 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

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

Commits on Nov 13, 2023

  1. Merge branch 'main' into stubs_generation

    # Conflicts:
    #	src/safeds_stubgen/api_analyzer/_ast_visitor.py
    Masara committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    3321666 View commit details
    Browse the repository at this point in the history
  2. Attributes, Parameter and Enum instances will be converted to camelCa…

    …se for Safe-DS stubs and will also be checked for keyword and escaped if necessary. Function names will also be converted to camelCase. Added unit test for the _convert_snake_to_camel_case function
    Masara committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    852767f View commit details
    Browse the repository at this point in the history
  3. Refactoring

    Masara committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    ef587b6 View commit details
    Browse the repository at this point in the history
  4. Test snapshot update

    Masara committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    d04c4f7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    541fd4d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    79fd8a2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1cda792 View commit details
    Browse the repository at this point in the history
  8. Adjusted test snapshots

    Masara committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    9ec9516 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    507e3f0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    912b6ca View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. Configuration menu
    Copy the full SHA
    35f0dd1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    164a416 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. Removed automatic trailing whitespace trimming for .ambr (test snapsh…

    …ot) files; refactoring _generate_stubs.py; replaced _files.py with Path.glob
    Masara committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    c2f34fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc188d4 View commit details
    Browse the repository at this point in the history
  3. Updated test snapshots

    Masara committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    804f86a View commit details
    Browse the repository at this point in the history
  4. Updated test snapshots

    Masara committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    6cd1892 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Configuration menu
    Copy the full SHA
    d29d3d4 View commit details
    Browse the repository at this point in the history
  2. Issue #34: Test fixes

    Masara committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    b6a7051 View commit details
    Browse the repository at this point in the history
  3. Issue #34: Test and bug fixes

    Masara committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    6b0e74e View commit details
    Browse the repository at this point in the history
  4. Issue #34: Test and bug fixes

    Masara committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    46e75fe View commit details
    Browse the repository at this point in the history
  5. Issue #34: Test and bug fixes

    Masara committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    fa6c5ab View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. Issue #34: Added TODOs for the stub generator if parameters, attribut…

    …es or results have no type information.
    Masara committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    9eb19f5 View commit details
    Browse the repository at this point in the history
  2. Issue #35 & #36 added variance parsing api_analyzer; added variance a…

    …nd constraints to stubs generator
    Masara committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    69d421f View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. Configuration menu
    Copy the full SHA
    477a386 View commit details
    Browse the repository at this point in the history
  2. Big overhaul of the tests: Removed redundant test data files and merg…

    …ed test data packages. Added some new tests and removed redundant tests.
    Masara committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    f1bf09f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb2256b View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

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

Commits on Nov 24, 2023

  1. Configuration menu
    Copy the full SHA
    7085ee0 View commit details
    Browse the repository at this point in the history
  2. Stubs generator: Added @pythonModule annotation for package informati…

    …on, class names will also be converted to camelCase and be checked for keywords, abstract classes won't have inheritance information, add @pure annotation for functions, fixed bugs and adjusted tests
    Masara committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    b7a7730 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. AST Visitor: Parameter can have callables as type, fixed representati…

    …on for multiple result types, added better type inference for results & added qname field for NamedTypes
    Masara committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    6466dfb View commit details
    Browse the repository at this point in the history
  2. Added handling for final type attributes and UpperCamelCase stub name…

    …s for classes. Adjusted test snapshots and added tests
    Masara committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    4aea41e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4bff2cb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8b44fe6 View commit details
    Browse the repository at this point in the history
  5. fixed a test snapshot bug where return types would be unsorted and mi…

    …xed up with every test run
    Masara committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    efaab1f View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Configuration menu
    Copy the full SHA
    f448d1e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75df41e View commit details
    Browse the repository at this point in the history
  3. Adjusted test snapshots

    Masara committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    684d40a View commit details
    Browse the repository at this point in the history
  4. API-Analyzer: Better handling for Any types and illegal list and set …

    …types; Stubs-Generator: fixed string literal types
    Masara committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    d6b8bf7 View commit details
    Browse the repository at this point in the history
  5. Added more test cases

    Masara committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    e171213 View commit details
    Browse the repository at this point in the history
  6. Refactoring tests

    Masara committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    006f98b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5bd771d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    852d48f View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Configuration menu
    Copy the full SHA
    f0ffa79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b29c16 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    757b667 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b654b68 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0a2b3cf View commit details
    Browse the repository at this point in the history
  6. Updated snapshot tests

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    509fb30 View commit details
    Browse the repository at this point in the history
  7. Updated snapshot tests

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    7e7eb94 View commit details
    Browse the repository at this point in the history
  8. Linter and bug fixes

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    e5b5b1a View commit details
    Browse the repository at this point in the history
  9. Linter and bug fixes

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    794020d View commit details
    Browse the repository at this point in the history
  10. Changed test data directory and file names, since the GitHub test run…

    …ner has problems with directories and files beginning with "test" but without actual test functions.
    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    5f8bfc7 View commit details
    Browse the repository at this point in the history
  11. Changed test data directory and file names, since the GitHub test run…

    …ner has problems with directories and files beginning with "test" but without actual test functions.
    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    71090e4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c680399 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6a57205 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d7bd3b9 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8a66557 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    876cb95 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7053942 View commit details
    Browse the repository at this point in the history
  18. Linter fixes

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    3435a54 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    b9d8fa2 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    944c863 View commit details
    Browse the repository at this point in the history
  21. codecov & refactoring

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    e78a3a5 View commit details
    Browse the repository at this point in the history
  22. Merge remote-tracking branch 'origin/stubs_generation' into stubs_gen…

    …eration
    
    # Conflicts:
    #	src/safeds_stubgen/stubs_generator/_generate_stubs.py
    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    f3604f1 View commit details
    Browse the repository at this point in the history
  23. codecov & refactoring

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    bd4a5ff View commit details
    Browse the repository at this point in the history
  24. codecov & refactoring

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    df1a986 View commit details
    Browse the repository at this point in the history
  25. codecov & refactoring

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    64e26a2 View commit details
    Browse the repository at this point in the history
  26. codecov & refactoring

    Masara committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    93bc3cc View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. Configuration menu
    Copy the full SHA
    6de83ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2be7ef4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    599dbad View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. [Refactoring] Renamed Variance class to TypeParameter and removed fro…

    …m_string method from NamedType Class
    Masara committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    cb9d9d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3609a29 View commit details
    Browse the repository at this point in the history
  3. [Refactoring] Removed the is_abstract constructor field from the Clas…

    …s "Class" in _api.py and added the property method is_abstract. Fixed a test.
    Masara committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    09c2586 View commit details
    Browse the repository at this point in the history
  4. [Refactoring] Removed the default_is_none constructor field from the …

    …Class "Parameter" in _api.py
    Masara committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    077f192 View commit details
    Browse the repository at this point in the history
  5. [Refactoring] Fixed typos

    Masara committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    d058b83 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1afef9f View commit details
    Browse the repository at this point in the history
  7. [Refactoring]

    Masara committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    01864b8 View commit details
    Browse the repository at this point in the history
  8. Refactoring and bug fixing

    Masara committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    566e929 View commit details
    Browse the repository at this point in the history
  9. bug fix

    Masara committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    d7ff691 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Configuration menu
    Copy the full SHA
    032027c View commit details
    Browse the repository at this point in the history
  2. LiteralTypes are joined for stubs

     if a union has multiple literal types.
    Masara committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    77c4be8 View commit details
    Browse the repository at this point in the history
  3. Added test data for codecov

    Masara committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    2fe4bb8 View commit details
    Browse the repository at this point in the history
  4. refactoring

    Masara committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    8dcb2e2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    779e87c View commit details
    Browse the repository at this point in the history
  6. Fixing tests

    Masara committed Dec 5, 2023
    Configuration menu
    Copy the full SHA
    09fb9cd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    936a557 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. fixing a bug where None default values would not correctly be parsed,…

    … refactoring and adding more test cases
    Masara committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    2df5093 View commit details
    Browse the repository at this point in the history
  2. codecov and linter fixes

    Masara committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    63c7d03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    64ad07f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a08450d View commit details
    Browse the repository at this point in the history
  5. codecov

    Masara committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    0c26c80 View commit details
    Browse the repository at this point in the history
  6. Merge remote-tracking branch 'origin/stubs_generation' into stubs_gen…

    …eration
    
    # Conflicts:
    #	src/safeds_stubgen/api_analyzer/_mypy_helpers.py
    Masara committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    20282b0 View commit details
    Browse the repository at this point in the history