diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7479874..2f04590 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,23 @@ repos: -- repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.275 - hooks: - - id: ruff - args: - - --fix -- repo: https://github.com/psf/black - rev: 23.3.0 - hooks: - - id: black -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 - hooks: - - id: mypy - args: - - --ignore-missing-imports - - --follow-imports=silent - additional_dependencies: - - types-all -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 # Use the ref you want to point at - hooks: - - id: trailing-whitespace \ No newline at end of file + - repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.6.5 + hooks: + # Run the linter. + - id: ruff + args: [--fix] + # Run the formatter. + - id: ruff-format + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.11.2 + hooks: + - id: mypy + args: + - --ignore-missing-imports + - --follow-imports=silent + additional_dependencies: + - types-requests + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 # Use the ref you want to point at + hooks: + - id: trailing-whitespace diff --git a/pyproject.toml b/pyproject.toml index 6bebf12..be8e454 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,33 +1,10 @@ [tool.ruff] line-length = 88 -select = [ - "E", - "F", - "I001", -] - -[tool.black] -exclude = ''' -( - /( - \.vscode - | \.git - | \.pytest_cache - | \.mypy_cache - | \.venv - | \.env - | \.direnv - )/ -) -''' -include = '\.pyi?$' -line-length = 88 +select = ["E", "F", "I001"] [tool.mypy] -files = [ - "**/*.py", -] +files = ["**/*.py"] follow_imports = "silent" ignore_missing_imports = true scripts_are_modules = true -python_version = 3.9 \ No newline at end of file +python_version = 3.9