| 1 | # The root GROMACS repository directory is not a Python packaging entry point, |
| 2 | # so try to avoid confusion by avoiding the conventional config file name (pyproject.toml). |
| 3 | # Invoke the `black` tool with `black --config .black.toml .` to use this configuration. |
| 4 | [tool.black] |
| 5 | # Ref: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html |
| 6 | target-version = ['py37'] |
| 7 | # 'extend-exclude' excludes files or directories in addition to the defaults |
| 8 | extend-exclude = ''' |
| 9 | # A regex preceded with ^/ will apply only to files and directories |
| 10 | # in the root of the project. |
| 11 | ( |
| 12 | ^/tests/physicalvalidation # Exclude sources from external projects. |
| 13 | | ^/src/external |
| 14 | | .*.ipynb # Exclude jupyter notebook files (requires `black[jupyter]`) to reduce our infrastructure dependencies. |
| 15 | ) |
| 16 | ''' |