Skip to content

Commit

Permalink
Add black to config, CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Jul 29, 2023
1 parent 234276d commit 023bbdc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dev = [
"bump2version",
"ruff",
"isort",
"black",
"mypy",
"types-PyYAML", # for pyyaml types
"types-xmltodict", # for xmltodict types
Expand Down Expand Up @@ -103,10 +104,11 @@ features = ["dev"]
[tool.hatch.envs.default.scripts]
lint = [
"ruff check .",
"black --check src/",
"isort --check-only --diff .",
"mypy src/",
]
format = ["isort .", "lint",]
format = ["black src/", "isort .", "lint",]
test = ["pytest ./src/ ./tests/",] # --doctest-modules
coverage = [
"pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/",
Expand Down Expand Up @@ -182,6 +184,11 @@ skip = [".gitignore", ".tox", "docs"]
src_paths = ["src", "tests"]
line_length = 120

[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310']
include = '\.pyi?$'

[tool.mypy]
ignore_missing_imports = true # Preferably false, but matplotlib, scipy and statsmodels are missing typing stubs

Expand Down

0 comments on commit 023bbdc

Please sign in to comment.