setup-cfg-fmt
setup-cfg-fmt copied to clipboard
apply a consistent format to `setup.cfg` files
Setup-cfg-fmt does not respect the EOL of the `setup.cfg`, and instead converts it to a platform-dependent default. I'm not aware of a case where that would be the desirable behavior,...
Setuptools have [added support `file:` for requires statements](https://github.com/pypa/setuptools/commit/21d5b5789b9eca91c65ef75753d15ea478c9240f) (as a [beta feature](https://github.com/pypa/setuptools/commit/645a53f543001112b6e9652907dca295b99751dd)) I don't know if it makes sense to add support for this already, I just noticed it when...
updates: - [github.com/asottile/pyupgrade: v3.15.1 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.1...v3.15.2)
- Replace `--min-py3-version` with `--min-py-version` - Change how the min version is determined; use `--min-py-version` as the source of truth if supplied, otherwise infer it - Always set `python_requires` Resolves...
See repro: ```python def test_guess_python_min_version(tmpdir): setup_cfg = tmpdir.join('setup.cfg') setup_cfg.write( '[metadata]\n' 'name = pkg\n' 'version = 1.0\n', ) assert main((str(setup_cfg), '--min-py3-version=3.8')) ``` ```console $ pytest -vvv -k test_guess_python_min_version tests/setup_cfg_fmt_test.py ========================================= test...
updates: - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.10.1)