Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use setup-cfg-fmt #1852

Merged
merged 1 commit into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to keep the comments here, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setup-cfg-fmt doesn't support comments so I'm fine killing them to get the convenience. the blame should have sufficient information 🤷

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
Loading