From 85fd6595655974e89d091040a6f1bd5b06ccb25c Mon Sep 17 00:00:00 2001 From: Saurav Maheshkar Date: Fri, 20 Sep 2024 17:07:29 +0100 Subject: [PATCH] chore: minimal tools (#183) --- .pre-commit-config.yaml | 24 ------------------------ justfile | 26 -------------------------- pyproject.toml | 10 +--------- 3 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 .pre-commit-config.yaml delete mode 100644 justfile diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 4bbba3d..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,24 +0,0 @@ -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 - hooks: - - id: end-of-file-fixer - - id: trailing-whitespace - - id: check-yaml - - id: check-toml - - id: check-json - - id: check-merge-conflict - - id: requirements-txt-fixer - - id: detect-private-key - - repo: https://github.com/psf/black - rev: 24.8.0 - hooks: - - id: black - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 - hooks: - - id: mypy - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.5 - hooks: - - id: ruff diff --git a/justfile b/justfile deleted file mode 100644 index 5cd3f8d..0000000 --- a/justfile +++ /dev/null @@ -1,26 +0,0 @@ -default: - @just --list - -# Install dependencies -requirements: - python -m pip install -U uv pip setuptools wheel - python -m uv pip install -r .devcontainer/requirements.txt - pre-commit install - -# Delete all compiled files and cache -clean: - find . -type f -name "*.py[co]" -delete - find . -type f -name "__pycache__" -delete - rm -rf .mypy_cache/ - rm -rf .pytest_cache/ - rm -rf .ruff_cache/ - -# Testing -test: - pytest --durations=0 -vv . - -# Basic linting -lint: - black src - ruff check src - mypy src diff --git a/pyproject.toml b/pyproject.toml index ec388c1..c1f838c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,27 +6,19 @@ readme = ".github/README.md" requires-python = ">=3.10" license = { file = "LICENSE" } dependencies = [ - "black", - "mypy>=0.900", - "numpy>=1.22.0", - "pre-commit>=2.18.0", "pytest>=6.0.0", "ruff", - "scipy>=1.10.0", ] [tool.ruff] line-length = 90 [tool.ruff.lint] -select = ["E", "F"] +select = ["E", "F", "I001"] [tool.ruff.lint.isort] lines-after-imports = 2 -[tool.black] -line-length = 88 - [tool.pytest.ini_options] testpaths = ["tests"] filterwarnings = [