Skip to content

Commit

Permalink
Use black
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxthepilot committed Jun 5, 2024
1 parent 49f04d7 commit 4e5c5e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[flake8]
max-line-length = 120
max-line-length = 80
extend-select = B950
extend-ignore = E203,E501,E701
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ disable = true
[tool.hatch.envs.default]
dependencies = [
"bandit",
"black~=24.4.2",
"flake8>=7.0.0",
"flake8-bugbear~=24.4.6",
"freezegun",
"mypy",
"pytest",
Expand All @@ -85,12 +87,16 @@ python = ["38", "39", "310", "311", "312"]
detached = true
dependencies = [ # Make sure the respective versions are synced with default!
"bandit",
"flake8>=6.0.0",
"black~=24.4.2",
"flake8>=7.0.0",
"flake8-bugbear~=24.4.6",
]
[tool.hatch.envs.lint.scripts]
flake = "flake8 {args:wtfis}"
security = "bandit --quiet -r {args:wtfis}"
blackcheck = "black --check wtfis tests"
flake = "flake8 wtfis tests"
security = "bandit --quiet -r wtfis"
all = [
"blackcheck",
"flake",
"security",
]
Expand Down

0 comments on commit 4e5c5e4

Please sign in to comment.