Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanscannell committed Nov 8, 2023
1 parent f14180c commit e8a5789
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
repos:
- repo: https://github.com/ambv/black
rev: 23.9.1
hooks:
- id: black
# - repo: https://github.com/ambv/black
# rev: 23.9.1
# hooks:
# - id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.4
Expand All @@ -11,6 +11,12 @@ repos:
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ '--fix']
# # Run the formatter.
# - id: ruff-format
# types_or: [ python, pyi, jupyter ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.5.2
hooks:
- id: nbqa-black
- id: nbqa-isort
# - id: nbqa-flake8
3 changes: 2 additions & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ target-version = "py38"
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
ignore = ["E402"] # ignore E402 Module level import not at top of file

# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
Expand All @@ -63,3 +63,4 @@ skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"

0 comments on commit e8a5789

Please sign in to comment.