diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8fb62e..6ef7bcb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,8 +4,7 @@ repos: rev: v0.14.0 hooks: - id: ruff-format - args: ["--preview"] - - id: ruff + - id: ruff-check args: ["--exit-non-zero-on-fix"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 @@ -15,11 +14,6 @@ repos: - id: check-yaml - id: debug-statements language_version: python3 - - repo: https://github.com/asottile/pyupgrade - rev: v3.21.2 - hooks: - - id: pyupgrade - args: [--py310-plus] - repo: https://github.com/sphinx-contrib/sphinx-lint rev: v1.0.0 hooks: diff --git a/MANIFEST.in b/MANIFEST.in index 6083763..d32163a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,3 @@ -include *.py include *.rst include *.toml include LICENSE diff --git a/pyproject.toml b/pyproject.toml index 2800983..4d6aa3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "setuptools.build_meta" requires = [ - "setuptools>=40", + "setuptools>=61", ] [project] @@ -51,7 +51,9 @@ entry-points.pytest11.rerunfailures = "pytest_rerunfailures" readme = { file = [ "HEADER.rst", "README.rst", "CHANGES.rst" ] } [tool.ruff] +target-version = "py310" fix = true +format.preview = true lint.select = [ "E", # https://pypi.org/project/pyflakes/ "F", # https://pypi.org/project/pyflakes/ diff --git a/setup.py b/setup.py deleted file mode 100755 index c823345..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env python -from setuptools import setup - -setup()