{ "info": { "author": "Corentin Cadiou", "author_email": "corentin.cadiou@iap.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Programming Language :: Fortran", "Topic :: Software Development :: Build Tools" ], "description": "# Fortran syntax checker\n\n## Installation\n\nThere are 2 ways of installing the linter. The recommended one is through pip\n\n\tpip install fortran-linter\n\nThe other way is to clone this repository and install it from the local copy:\n\n\tgit clone https://github.com/cphyc/fortran-syntax.git\n\tpip install .\n\nPlease note that depending on your installation, you may have to add `sudo` to the `pip install` line. This is due to the fact that the package is shipped with a script `fortran-linter`. For some installation, the creation of this file may require root access.\n\n## Usage\n\nThis tool checks for fortran syntax against a few rules. To print a list of all the warnings for a file, run:\n\n fortran-linter myfile.f90 --syntax-only\n\nTo try to fix the warnings in place, do:\n\n fortran-linter myfile.f90 -i\n\nThe original file will be backuped into `myfile.f90.orig`. All the safe fixes will be done and stored in the file `myfile.f90`.\n\nFor more help, you can type\n\n\tfortran-linter -h\n\n## Rules\n\nCurrently, the following things are checked:\n * Ponctuation should be followed by a space, this include `,`, `;` and `)`..\n * The following special characters are surrounded by at least one space: `::`, `=`.\n * A line should not exceed 120 characters (this is somehow already extreme).\n * One should use `use mpi` instead of `include \"mpif.h\"`. Note that this is not fixed by default as it may break codes where `include \"mpif.h\"` follows and `implicit none` statement.\n * Spaces are preferred over tabs, trailing whitespaces are cleaned.\n * Warnings are raised if you use `real(8) :: foo`. One should rather use `integer, parameter :: dp = selected_real_kind(15); real(dp) :: foo` or `use iso_fortran_env; real(real64) :: foo`\n\n# TODO list\n\n * [ ] TESTS\n * [ ] support for other editor(s), e.g. Atom, Vim, \u2026\n * [ ] add more rules (this one will never end)\n * [x] ship on pip", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cphyc/fortran-syntax", "keywords": "fortran", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "fortran-linter", "package_url": "https://pypi.org/project/fortran-linter/", "platform": "", "project_url": "https://pypi.org/project/fortran-linter/", "project_urls": { "Homepage": "https://github.com/cphyc/fortran-syntax" }, "release_url": "https://pypi.org/project/fortran-linter/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "A linter for Fortran files", "version": "1.0.4" }, "last_serial": 5644509, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9ac33ef75ea07b6b5660d09bd18ddbcb", "sha256": "1ede07a30b0fd0f14fcd7799b6d1c0b8220abf0367a47aa4a1f1dee742c71451" }, "downloads": -1, "filename": "fortran_linter-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9ac33ef75ea07b6b5660d09bd18ddbcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4712, "upload_time": "2017-11-21T14:39:12", "url": "https://files.pythonhosted.org/packages/af/d2/43c89b854b2af5f5c34dea9d0ae45ba4073a87a6abe1fc88a3c470dc6913/fortran_linter-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9bbcb975eb1a3847f973c01a0caca586", "sha256": "e647d13e3397ebaaa06ebcb7d156e8458c9b0a3ee50665ba5ce50d9973a5c09d" }, "downloads": -1, "filename": "fortran_linter-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9bbcb975eb1a3847f973c01a0caca586", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4729, "upload_time": "2017-11-21T17:26:38", "url": "https://files.pythonhosted.org/packages/fe/ef/9112b8c5aa7e3a6d1e6b924ddd01892797bf79beb3fb53466e9cdbf49529/fortran_linter-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "14f9bd72266b1c08faf5ff9a8cf48ea9", "sha256": "5bfb675f36a6d09f50bebc0547591970edf5619072c846bcf20bbc218b34a388" }, "downloads": -1, "filename": "fortran_linter-1.0.2.tar.gz", "has_sig": false, "md5_digest": "14f9bd72266b1c08faf5ff9a8cf48ea9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4949, "upload_time": "2019-08-07T11:16:42", "url": "https://files.pythonhosted.org/packages/41/05/83fd4ab6888ba8bf71e4cbd7dead76a5113911150fa83356b9cda10177fd/fortran_linter-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "8eb811c846ed8c0757b4391073d55a01", "sha256": "8b5de10adce5230dba00660620b7ec5027e7d6f24d846d44e1987b389a8d7dc9" }, "downloads": -1, "filename": "fortran_linter-1.0.3.tar.gz", "has_sig": false, "md5_digest": "8eb811c846ed8c0757b4391073d55a01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4954, "upload_time": "2019-08-07T11:20:36", "url": "https://files.pythonhosted.org/packages/71/d3/343ce5dceb9deaaec6fdf7b41fa102f0ccba5c2794cffecdaebe3c66c5f1/fortran_linter-1.0.3.tar.gz" } ], "1.0.3b": [ { "comment_text": "", "digests": { "md5": "0b13bfcabfa1f45e378ce1d1f86ed917", "sha256": "c1826a0c10704b7fc21686c0de4468651f50f98bdfe73b6ddfbc11d247482d08" }, "downloads": -1, "filename": "fortran_linter-1.0.3b.tar.gz", "has_sig": false, "md5_digest": "0b13bfcabfa1f45e378ce1d1f86ed917", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5161, "upload_time": "2019-08-07T11:28:45", "url": "https://files.pythonhosted.org/packages/c3/76/069290a5a98e0c75c5a4554b673280b26f6abe35ef45501041d728676a4c/fortran_linter-1.0.3b.tar.gz" } ], "1.0.3c": [ { "comment_text": "", "digests": { "md5": "ca3a4e8104e03b47802e0f5e7cb68dfa", "sha256": "49a28764eaf20791c05ea91807e895a96791893f93fb002afeb128467e7abb96" }, "downloads": -1, "filename": "fortran_linter-1.0.3c.tar.gz", "has_sig": false, "md5_digest": "ca3a4e8104e03b47802e0f5e7cb68dfa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5161, "upload_time": "2019-08-07T11:30:03", "url": "https://files.pythonhosted.org/packages/ab/16/81340f4ed6a39337e9ce1ea20943a98e1974f75d1b68917100e94b4b2273/fortran_linter-1.0.3c.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "8091dc97fbd77364c3ccd4c460dbd647", "sha256": "ef188a7874041f1dc62375cefb0e00f2f0d00a6051acfca3fe607de72cc693a5" }, "downloads": -1, "filename": "fortran_linter-1.0.4.tar.gz", "has_sig": false, "md5_digest": "8091dc97fbd77364c3ccd4c460dbd647", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5156, "upload_time": "2019-08-07T11:30:34", "url": "https://files.pythonhosted.org/packages/9e/2d/2a734264f978f95aa1e7c1518b8d7f6efc8683f9b3b50abbb1995ea116ea/fortran_linter-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8091dc97fbd77364c3ccd4c460dbd647", "sha256": "ef188a7874041f1dc62375cefb0e00f2f0d00a6051acfca3fe607de72cc693a5" }, "downloads": -1, "filename": "fortran_linter-1.0.4.tar.gz", "has_sig": false, "md5_digest": "8091dc97fbd77364c3ccd4c460dbd647", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5156, "upload_time": "2019-08-07T11:30:34", "url": "https://files.pythonhosted.org/packages/9e/2d/2a734264f978f95aa1e7c1518b8d7f6efc8683f9b3b50abbb1995ea116ea/fortran_linter-1.0.4.tar.gz" } ] }