Skip to content

Commit

Permalink
Merge pull request #1852 from PyCQA/setup-cfg-fmt
Browse files Browse the repository at this point in the history
use setup-cfg-fmt
  • Loading branch information
asottile authored Jul 29, 2023
2 parents 24be8ad + 5233d88 commit 354f873
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 3 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ author_email = [email protected]
maintainer = Ian Stapleton Cordasco
maintainer_email = [email protected]
license = MIT
license_file = LICENSE
license_files = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Expand All @@ -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
Expand Down

0 comments on commit 354f873

Please sign in to comment.