summaryrefslogtreecommitdiff
path: root/numpy/f2py/crackfortran.py
Commit message (Collapse)AuthorAgeFilesLines
* BUG: Fix matching endifs with commentsRohit Goswami2023-05-121-3/+3
| | | | Harmonizes patterns a bit as well
* Merge branch 'main' into f2pyFuncFix_23598Sebastian Berg2023-04-261-17/+23
|\
| * Merge pull request #23470 from bobeldering/f2py-f77-array-parsing-fixCharles Harris2023-04-211-17/+23
| |\ | | | | | | BUG: Fix bug in parsing F77 style string arrays.
| | * BUG: Fix bug in parsing F77 style string arrays.Bob Eldering2023-03-271-17/+23
| | | | | | | | | | | | | | | | | | | | | Example problematic variable: CHARACTER WORDARR(3)*8 This would be wrapped by an array with shape (3, 8) and dtype |S1, instead of the desired shape (3,) and dtype |S8. See #23356.
* | | MAINT: Fix tests for f2py inferred return typesRohit Goswami2023-04-161-2/+5
| | |
* | | BUG: Fix return types for functions in f2pyRohit Goswami2023-04-161-0/+2
|/ /
* | BUG: include macOS arm64 `machine()` value in `_selected_real_kind_func`Derek Homeier2023-04-151-4/+4
| |
* | MAINT: add arm64 to f2py's selected_real_kindAndrew Nelson2023-04-091-1/+1
| |
* | make regex still match cases where OG fix failedmolsonkiko2023-03-261-1/+1
| | | | | | | | | | | | | | My first replacement regex would have failed to match cases like '@)@bind foo bar baz@(@@)@' which should apparently be matched. Added a test to make sure the regex does this.
* | initial fix for nameargspattern regexmolsonkiko2023-03-261-1/+1
|/
* MAINT: `f2py` cleanup (#22885)Rohit Goswami2023-01-161-19/+15
| | | | | | | Updates the free format handling of .f90 and other common extensions (through a minor re-write). Also removes an unused function. This disallows previously allowed (but highly unlikely to be present) code-paths, namely having fixed form F77 code in a fortran 90 file (with .f90). Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
* BUG: Use whole file for encoding checks with `charset_normalizer` [f2py] ↵Rohit Goswami2022-12-251-21/+26
| | | | | | | | | | | | | | | | | | | | | (#22872) * BUG: Use whole file for encoding checks [f2py] * DOC: Add a code comment Co-authored-by: melissawm <melissawm@gmail.com> * TST: Add a conditional unicode f2py test * MAINT: Add chardet as a test requirement * ENH: Cleanup and switch f2py to charset_normalizer * MAINT: Remove chardet for charset_normalizer * TST: Simplify UTF-8 encoding [f2py] Co-authored-by: melissawm <melissawm@gmail.com>
* BUG: Fix KeyError in crackfortran operator supportRohit Goswami2022-06-301-1/+1
|
* Merge pull request #19388 from pearu/enh-f2py-character-supportMelissa Weber Mendonça2022-06-061-33/+210
|\ | | | | Co-authored-by: Rohit Goswami <rog32@hi.is>
| * ENH: Support character string arraysPearu Peterson2022-06-051-33/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TST: added test for issue #18684 ENH: f2py opens files with correct encoding, fixes #635 TST: added test for issue #6308 TST: added test for issue #4519 TST: added test for issue #3425 ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook. ENH: Add support for detecting utf-16 and utf-32 encodings.
* | ENH: complete the 'vars' list of a moduleDamien Caliste2022-06-051-2/+2
|/ | | | | | Add to the 'vars' list of a module missing subroutines or functions listed in the 'body' that have not been explicitely declared 'public' or 'private'.
* MAINT: Hoist f2py condition outside try-exceptRohit Goswami2022-04-301-8/+9
| | | | | Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com> Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* MAINT: handle precision in selected_real_kindRohit Goswami2022-04-291-2/+6
|
* MAINT: Reduce f2py verbiage for valid parametersRohit Goswami2022-04-281-1/+3
|
* BUG,ENH: Fix negative bounds for F2PY (#21256)Rohit Goswami2022-03-311-2/+9
| | | Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
* Merge pull request #15844 from dcaliste/typeMelissa Weber Mendonça2022-01-171-1/+21
|\
| * ENH: add inline definition of access rights for Fortran typesDamien Caliste2022-01-041-1/+21
| | | | | | | | | | | | Allow to parse type definition with inline acess specifier, like: type, public :: foo end type foo
* | MAINT, DOC: fix new typos detected by codespellDimitri Papadopoulos2022-01-121-1/+1
| |
* | ENH: add support for operator() in crackfortran.Damien Caliste2022-01-041-4/+26
|/ | | | | | | | | | | | | | Some interface name may contains parenthesis when used with operator, like: interface operator(==) module procedure my_type_equals end interface operator(==) Make the end part properly detected, and store also the operator ('==' in that case) in the name. Also implement support to list the implemented by in any interface declaration.
* BUG: Fix array dimensions solver for multidimensional arguments in f2py (#20721)Pearu Peterson2022-01-041-1/+4
| | | * BUG: Fix array dimensions solver for multidimensional arguments in f2py. See #20709
* MAINT: Fix newlines in diagnostics output of numpy.f2py.Christoph Buchner2021-11-141-6/+6
| | | | | | Linebreaks were not consistently added to errmess/outmess arguments, which led to very long lines and wrong concatenation with compiler messages in f2py console output.
* BUG: avoid infinite recurrence on dependencies in crackfortranDamien Caliste2021-10-011-1/+3
|
* DOC: Fix typos in the random and f2py documentation. (#20004)MalikIdreesHasanKhan2021-10-011-1/+1
| | | * Fix typos
* Merge pull request #19805 from pearu/gh-8062-dimdecsCharles Harris2021-09-261-267/+129
|\ | | | | ENH: Symbolic solver for dimension specifications.
| * Fix a bug in dependencies. Implement support for relational operations.Pearu Peterson2021-09-031-5/+2
| |
| * Add ternary, ref, and deref expressions support.Pearu Peterson2021-09-031-2/+2
| |
| * Fix bugs and warnings from LGTM reportPearu Peterson2021-09-011-7/+2
| |
| * Add new module numpy.f2py.symbolicPearu Peterson2021-09-011-4/+4
| |
| * Fix lintPearu Peterson2021-09-011-4/+5
| |
| * ENH: [f2py] Symbolic solver for dimension specifications.Pearu Peterson2021-09-011-261/+130
| |
* | MAINT: Fix LGTM.com warningDimitri Papadopoulos2021-09-241-2/+0
| | | | | | | | | | Variable defined multiple times This assignment to 'isrec' is unnecessary as it is redefined here before this value is used.
* | MAINT,DOC: f2py cleanupRohit Goswami2021-09-201-2/+2
| |
* | MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-021-2/+2
|/
* Merge pull request #19102 from default-303/LGTM_unused_variablesMatti Picus2021-07-091-5/+3
|\ | | | | MAINT: Removed suitable unused variables shown in LGTM
| * MAINT: added space for readability in strings and basic refactoringdefault-3032021-06-111-2/+2
| |
| * MAINT: fixed indentation in crackfortran.py and removed unused variables in ↵default-3032021-06-111-1/+1
| | | | | | | | system_info.py
| * MAINT: Addressed Azure lint check 'Line too long error' on line 2554, added ↵default-3032021-05-261-1/+2
| | | | | | | | in previous commit
| * MAINT: Removed unused variables and handled unfinished implementation in ↵default-3032021-05-261-5/+2
| | | | | | | | crackfortran.py after review
| * MAINT: Restored crackfortran.py after review for unused variables listed in LGTMdefault-3032021-05-261-1/+4
| |
| * MAINT: Removed suitable unused variables shown in LGTMdefault-3032021-05-261-4/+1
| |
* | BUG: f2py markinnerspace for multiple quotations (#19419)Matti Picus2021-07-081-18/+31
|/ | | | | | | | | | | | | | | | | | | | | | | Continuation of #15208 * BUG: markinnerspaces does not handle multiple quotations * TST: test for markinnerspaces in f2py.crackfortran * TST: tests for markinnerspaces with " * DOC: markinnerspaces in f2py.crackfortran * MAINT: more readable r strings in TestMarkinnerspaces * ENH: give variables names, change 'inside' to bool * :TEST, MAINT: add tests and changes from review * MAINT: lint fixes * BUG: typo Co-authored-by: bdvd <bdvd001@gmail.com>
* MAINT: removed unused imports listed in LGTMdefault-3032021-05-241-1/+0
|
* TST: Tests for parsing Fortran abstract interface and a working example.Pearu Peterson2021-03-311-2/+4
|
* ENH: Support parsing Fortran abstract interface blocks.Pearu Peterson2021-03-311-7/+10
|
* Merge pull request #18415 from pearu/gh-2763Matti Picus2021-02-151-2/+1
|\ | | | | MAINT: Update END statements parsing for recent Fortran standards.