mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
* Bump black from 24.8.0 to 25.1.0 Bumps [black](https://github.com/psf/black) from 24.8.0 to 25.1.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/24.8.0...25.1.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix formatting and tests --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Amethyst Reese <amethyst@n7.gg>
108 lines
3.1 KiB
TOML
108 lines
3.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools", "setuptools-scm", "setuptools-rust", "wheel"]
|
|
|
|
[project]
|
|
name = "libcst"
|
|
description = "A concrete syntax tree with AST-like properties for Python 3.0 through 3.13 programs."
|
|
readme = "README.rst"
|
|
dynamic = ["version"]
|
|
license = { file = "LICENSE" }
|
|
classifiers = [
|
|
"License :: OSI Approved :: MIT License",
|
|
"Topic :: Software Development :: Libraries",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Typing :: Typed",
|
|
]
|
|
requires-python = ">=3.9"
|
|
dependencies = ["pyyaml>=5.2"]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"libcst[dev-without-jupyter]",
|
|
"jupyter>=1.0.0",
|
|
"nbsphinx>=0.4.2",
|
|
]
|
|
dev-without-jupyter = [
|
|
"black==25.1.0",
|
|
"coverage[toml]>=4.5.4",
|
|
"build>=0.10.0",
|
|
"fixit==2.1.0",
|
|
"flake8==7.2.0",
|
|
"Sphinx>=5.1.1",
|
|
"hypothesis>=4.36.0",
|
|
"hypothesmith>=0.0.4",
|
|
"maturin>=1.7.0,<1.8",
|
|
"prompt-toolkit>=2.0.9",
|
|
"pyre-check==0.9.18; platform_system != 'Windows'",
|
|
"setuptools_scm>=6.0.1",
|
|
"sphinx-rtd-theme>=0.4.3",
|
|
"ufmt==2.8.0",
|
|
"usort==1.0.8.post1",
|
|
"setuptools-rust>=1.5.2",
|
|
"slotscheck>=0.7.1",
|
|
"jinja2==3.1.6",
|
|
]
|
|
|
|
[project.urls]
|
|
Documentation = "https://libcst.readthedocs.io/en/latest/"
|
|
Github = "https://github.com/Instagram/LibCST"
|
|
Changelog = "https://github.com/Instagram/LibCST/blob/main/CHANGELOG.md"
|
|
|
|
[tool.black]
|
|
target-version = ["py39"]
|
|
extend-exclude = '^/native/' # Prepend "^/" to specify root file/folder. See https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-format
|
|
|
|
[tool.coverage.report]
|
|
fail_under = 93
|
|
precision = 1
|
|
show_missing = true
|
|
skip_covered = true
|
|
|
|
[tool.hatch.envs.default]
|
|
features = ["dev"]
|
|
|
|
[tool.hatch.envs.default.scripts]
|
|
docs = "sphinx-build -ab html docs/source docs/build"
|
|
fixtures = ["python scripts/regenerate-fixtures.py", "git diff --exit-code"]
|
|
format = "ufmt format libcst scripts"
|
|
lint = [
|
|
"flake8 libcst",
|
|
"ufmt check libcst scripts",
|
|
"python -m slotscheck libcst",
|
|
"python scripts/check_copyright.py",
|
|
]
|
|
test = ["python --version", "python -m coverage run -m libcst.tests"]
|
|
typecheck = ["pyre --version", "pyre check"]
|
|
|
|
[tool.slotscheck]
|
|
exclude-modules = '^libcst\.(testing|tests)'
|
|
|
|
[tool.ufmt]
|
|
excludes = ["native/", "stubs/"]
|
|
|
|
[tool.cibuildwheel]
|
|
build-verbosity = 1
|
|
environment = { PATH = "$PATH:$HOME/.cargo/bin", LIBCST_NO_LOCAL_SCHEME="1" }
|
|
skip = [
|
|
"pp*",
|
|
"*-win32",
|
|
"*-win_arm64",
|
|
"*-musllinux_i686",
|
|
"*-musllinux_ppc64le",
|
|
"*-musllinux_s390x",
|
|
"*-musllinux_armv7l",
|
|
]
|
|
|
|
[tool.cibuildwheel.linux]
|
|
environment-pass = ["LIBCST_NO_LOCAL_SCHEME"]
|
|
before-all = "yum install -y libatomic; curl https://sh.rustup.rs -sSf | env -u CARGO_HOME sh -s -- --default-toolchain stable --profile minimal -y"
|
|
|
|
[tool.cibuildwheel.macos]
|
|
before-all = "rustup target add aarch64-apple-darwin x86_64-apple-darwin"
|
|
|
|
[tool.cibuildwheel.windows]
|
|
before-all = "rustup target add x86_64-pc-windows-msvc i686-pc-windows-msvc"
|