spack/.github/workflows
Todd Gamblin 67d27841ae black: configuration
This adds necessary configuration for flake8 and black to work together.

This also sets the line length to 99, per the data here:

* https://github.com/spack/spack/pull/24718#issuecomment-876933636

Given the data and the spirit of black's 88-character limit, we set the limit to 99
characters for all of Spack, because:

* 99 is one less than 100, a nice round number, and all lines will fit in a
  100-character wide terminal (even when the text editor puts a \ at EOL).
* 99 is just past the knee the file size curve for packages, and it means that packages
  remain readable and not significantly longer than they are now.
* It doesn't seem to hurt core -- files in core might change length by a few percent but
  seem like they'll be mostly the same as before -- just a bit more roomy.

- [x] set line length to 99
- [x] remove most exceptions from `.flake8` and add the ones black cares about
- [x] add `[tool.black]` to `pyproject.toml`
- [x] make `black` run if available in `spack style --fix`

Co-Authored-By: Tom Scogland <tscogland@llnl.gov>
2022-07-31 13:29:20 -07:00
..
bootstrap.yml build(deps): bump actions/setup-python from 4.0.0 to 4.1.0 (#31526) 2022-07-12 13:50:30 +02:00
build-containers.yml Cancel running workflows automatically on PR update (#31044) 2022-06-08 15:46:46 -07:00
execute_installer.ps1 Add Github Actions for Windows (#24504) 2022-03-17 09:01:01 -07:00
generate_spack_yaml_containerize.sh Update Dockerfiles and images for Spack v0.18.0 (#30216) 2022-04-22 08:51:26 +02:00
install_spack.sh Update actions/setup-python to latest version (#28634) 2022-01-28 14:17:59 +01:00
macos_python.yml build(deps): bump actions/setup-python from 4.0.0 to 4.1.0 (#31526) 2022-07-12 13:50:30 +02:00
setup_git.ps1 buildcache: Update layout and signing (#30750) 2022-05-24 17:39:20 -04:00
setup_git.sh Use bash in setup_git.sh (#27676) 2021-11-26 18:03:05 +00:00
system_shortcut_check.ps1 Add Github Actions for Windows (#24504) 2022-03-17 09:01:01 -07:00
unit_tests.yaml black: configuration 2022-07-31 13:29:20 -07:00
windows_python.yml black: configuration 2022-07-31 13:29:20 -07:00