diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9b1e9d6b..b80dab93b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: rev: 'v0.0.276' hooks: - id: ruff - args: ["--fix"] + args: ["--fix", "--show-fixes"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 @@ -17,7 +17,7 @@ repos: - id: end-of-file-fixer - id: check-docstring-first - - repo: https://github.com/psf/black + - repo: https://github.com/psf/black-pre-commit-mirror rev: 23.3.0 hooks: - id: black diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 000000000..7e4965745 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,18 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" +sphinx: + configuration: docs/conf.py + +python: + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/pyproject.toml b/pyproject.toml index e41fb17eb..f0ecb19aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,6 @@ requires = [ "numpy_groupies>=0.9.19", "toolz", "setuptools>=61.0.0", - "wheel", "setuptools_scm[toml]>=7.0", ] build-backend = "setuptools.build_meta" @@ -77,6 +76,8 @@ ignore = [ "E731", ] select = [ + # Bugbear + "B", # Pyflakes "F", # Pycodestyle @@ -124,6 +125,8 @@ ignore_missing_imports = true [tool.pytest.ini_options] addopts = "--tb=short" +minversion = "7" +testpaths = ["tests"] [tool.codespell]