Skip to content

Commit

Permalink
undo formatting changes to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Feb 19, 2025
1 parent 6c7e6fa commit 94b39e5
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ name = "black"
description = "The uncompromising code formatter."
license = "MIT"
requires-python = ">=3.9"
authors = [{ name = "Łukasz Langa", email = "lukasz@langa.pl" }]
authors = [
{ name = "Łukasz Langa", email = "lukasz@langa.pl" },
]
keywords = [
"automation",
"autopep8",
Expand Down Expand Up @@ -77,7 +79,10 @@ dynamic = ["readme", "version"]
colorama = ["colorama>=0.4.3"]
uvloop = ["uvloop>=0.15.2"]
d = ["aiohttp>=3.10"]
jupyter = ["ipython>=7.8.0", "tokenize-rt>=3.2.0"]
jupyter = [
"ipython>=7.8.0",
"tokenize-rt>=3.2.0",
]

[project.scripts]
black = "black:patched_main"
Expand All @@ -94,7 +99,10 @@ Issues = "https://github.com/psf/black/issues"

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [{ path = "README.md" }, { path = "CHANGES.md" }]
fragments = [
{ path = "README.md" },
{ path = "CHANGES.md" },
]

[tool.hatch.version]
source = "vcs"
Expand All @@ -116,7 +124,11 @@ macos-max-compat = true

[tool.hatch.build.targets.wheel.hooks.mypyc]
enable-by-default = false
dependencies = ["hatch-mypyc>=0.16.0", "mypy>=1.12", "click>=8.1.7"]
dependencies = [
"hatch-mypyc>=0.16.0",
"mypy>=1.12",
"click>=8.1.7",
]
require-runtime-dependencies = true
exclude = [
# There's no good reason for blackd to be compiled.
Expand Down Expand Up @@ -151,7 +163,7 @@ skip = ["*-manylinux_i686", "*-musllinux_*", "*-win32", "pp*"]
# here and would slow down the testing step a fair bit.
test-requires = ["pytest>=6.1.1"]
test-command = 'pytest {project} -k "not incompatible_with_mypyc"'
test-extras = ["d", " jupyter"]
test-extras = ["d"," jupyter"]
# Skip trying to test arm64 builds on Intel Macs. (so cross-compilation doesn't
# straight up crash)
test-skip = ["*-macosx_arm64", "*-macosx_universal2:arm64"]
Expand All @@ -163,7 +175,9 @@ MYPYC_DEBUG_LEVEL = "0"

[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux_2_28"
before-build = ["yum install -y clang gcc"]
before-build = [
"yum install -y clang gcc",
]

[tool.cibuildwheel.linux.environment]
HATCH_BUILD_HOOKS_ENABLE = "1"
Expand All @@ -188,11 +202,18 @@ optional-tests = [
"no_blackd: run when `d` extra NOT installed",
"no_jupyter: run when `jupyter` extra NOT installed",
]
markers = ["incompatible_with_mypyc: run when testing mypyc compiled black"]
markers = [
"incompatible_with_mypyc: run when testing mypyc compiled black"
]
xfail_strict = true
filterwarnings = ["error"]
[tool.coverage.report]
omit = ["src/blib2to3/*", "tests/data/*", "*/site-packages/*", ".tox/*"]
omit = [
"src/blib2to3/*",
"tests/data/*",
"*/site-packages/*",
".tox/*"
]
[tool.coverage.run]
relative_files = true
branch = true
Expand All @@ -211,14 +232,7 @@ show_error_codes = true
show_column_numbers = true

[[tool.mypy.overrides]]
module = [
"pathspec.*",
"IPython.*",
"colorama.*",
"tokenize_rt.*",
"uvloop.*",
"_black_version.*",
]
module = ["pathspec.*", "IPython.*", "colorama.*", "tokenize_rt.*", "uvloop.*", "_black_version.*"]
ignore_missing_imports = true

# CI only checks src/, but in case users are running LSP or similar we explicitly ignore
Expand Down

0 comments on commit 94b39e5

Please sign in to comment.