Skip to content

Commit

Permalink
Precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Oct 12, 2023
1 parent b053038 commit ea48a66
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4,B9
exclude =
.git,
__pycache__,
docs/conf.py,
build,
dist,
test,
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ repos:
hooks:
- id: flake8
name: Flake8
additional_dependencies: ["flake8-bugbear==22.9.11"]
# Not using bugbear for now
# additional_dependencies: ["flake8-bugbear==22.9.11"]
exclude: (ui/|test/)
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ sphinxcontrib-httpdomain = "^1.8.1"

[tool.black]
line-length = 88
preview = true
include = '\.pyi?$'
exclude = '''
/(
Expand All @@ -68,6 +69,9 @@ exclude = '''
| buck-out
| build
| dist
| test
| ui
| docs
)/
'''

Expand Down

0 comments on commit ea48a66

Please sign in to comment.