stfc / fparser

This project maintains and develops a Fortran parser called fparser2 written purely in Python which supports Fortran 2003 and some Fortran 2008. A legacy parser fparser1 is also available but is not supported. The parsers were originally part of the f2py project by Pearu Peterson.
https://fparser.readthedocs.io
Other
65 stars 29 forks source link

Over-length lines #346

Open arporter opened 2 years ago

arporter commented 2 years ago

We have a lot of lines that are too long. I'll fix those in this issue.

ZedThree commented 2 years ago

This workflow will automatically apply black to the whole project and autocommits:

name: black

on:
  push:
    paths:
      - '**.py'

jobs:
  black:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Setup Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.x
    - name: Install black
      run: pip install black
    - name: Run black
      run: black src
    - uses: stefanzweifel/git-auto-commit-action@v4
      with:
        commit_message: "Apply black changes"
arporter commented 2 years ago

Thanks @ZedThree. I think I'll hold off doing that for now as it introduces a lot of changes - I'll open a discussion ticket for it.

ZedThree commented 2 years ago

I do think it is very much worth doing, but you almost certainly want to do it in its own PR. Conflicts with other branches can simply be fixed by applying black.