Skip to content

Commit

Permalink
Migrate setuptools to use pyproject.toml (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Oct 26, 2023
1 parent c49b543 commit b0778b1
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 61 deletions.
9 changes: 0 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ repos:
rev: 1.2.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
args:
- --include-version-classifiers
- --max-py-version
- '3.12'
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.1
hooks:
Expand Down Expand Up @@ -68,7 +60,6 @@ repos:
- flake8-bugbear
- flake8-comprehensions
- flake8-tidy-imports
- flake8-typing-imports
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
Expand Down
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,42 @@ requires = [
"setuptools",
]

[project]
name = "flake8-comprehensions"
version = "3.14.0"
description = "A flake8 plugin to help you write better list/set/dict comprehensions."
readme = {file = "README.rst", content-type = "text/x-rst"}
keywords = [
"comprehensions",
"dict comprehension",
"flake8",
"list comprehension",
"set comprehension",
]
license = {text = "MIT"}
authors = [{name = "Adam Johnson", email = "me@adamj.eu"}]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dependencies = [
"flake8!=3.2.0,>=3",
]
urls = {Changelog = "https://github.com/adamchainz/flake8-comprehensions/blob/main/CHANGELOG.rst",Funding = "https://adamj.eu/books/",Repository = "https://github.com/adamchainz/flake8-comprehensions"}
[project.entry-points."flake8.extension"]
C4 = "flake8_comprehensions:ComprehensionChecker"

[tool.black]
target-version = ['py38']

Expand Down
52 changes: 0 additions & 52 deletions setup.cfg

This file was deleted.

4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ commands =
-W error::DeprecationWarning \
-W error::PendingDeprecationWarning \
-m pytest {posargs:tests}

[flake8]
max-line-length = 88
extend-ignore = E203

0 comments on commit b0778b1

Please sign in to comment.