From 5233d880696a6867b53fabf0c9d4419d83f372ad Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 29 Jul 2023 14:39:06 -0400 Subject: [PATCH] use setup-cfg-fmt --- .pre-commit-config.yaml | 4 ++++ setup.cfg | 11 +++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dbe69180..6de9c1b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,10 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace exclude: ^tests/fixtures/ +- repo: https://github.com/asottile/setup-cfg-fmt + rev: v2.4.0 + hooks: + - id: setup-cfg-fmt - repo: https://github.com/asottile/reorder-python-imports rev: v3.10.0 hooks: diff --git a/setup.cfg b/setup.cfg index 593c2e16..ebf4355b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,7 +10,7 @@ author_email = tarek@ziade.org maintainer = Ian Stapleton Cordasco maintainer_email = graffatcolmingov@gmail.com license = MIT -license_file = LICENSE +license_files = LICENSE classifiers = Development Status :: 5 - Production/Stable Environment :: Console @@ -27,18 +27,13 @@ classifiers = [options] packages = find: -package_dir = - =src -# We document the reasoning for using ranges here: -# https://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies -# And in which releases we will update those ranges here: -# https://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8 install_requires = mccabe>=0.7.0,<0.8.0 pycodestyle>=2.11.0,<2.12.0 pyflakes>=3.1.0,<3.2.0 -# 3.8.0's importlib.metadata is broken python_requires = >=3.8.1 +package_dir = + =src [options.packages.find] where = src