Skip to content

Commit

Permalink
All ruff, upgrade, remove types-all (#212)
Browse files Browse the repository at this point in the history
* All ruff, upgrade, remove types-all

* Add types-requests
  • Loading branch information
blackary authored Sep 16, 2024
1 parent e04ac85 commit a9a5d76
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 49 deletions.
45 changes: 22 additions & 23 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
- 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
29 changes: 3 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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
python_version = 3.9

0 comments on commit a9a5d76

Please sign in to comment.