chore: Tool config

This commit is contained in:
Adrian Rumpold
2022-07-27 17:08:05 +02:00
parent ae8ef55d4c
commit 5406acf83d
2 changed files with 22 additions and 1 deletions

9
.flake8 Normal file
View File

@@ -0,0 +1,9 @@
[flake8]
exclude = .git,__pycache__,.venv
ignore = E501, # line too long, rely on black for reformatting of these, since sometimes URLs or comments can be longer
W503, # Outdated: line break before binary operator, this is now considered best practice, see https://www.flake8rules.com/rules/W503.html
W504, # Line break occurred after a binary operator
F841, # Allow capitalized variable names, necessary for e.g., `X_train = get_train_data()`
E221, # Multiple spaces before operator
F401, # Module imported but unused - covered by Pylint
F811 # Redefinition of unused name from line n - covered by Pylint

View File

@@ -10,8 +10,8 @@ packages = [
[tool.poetry.dependencies]
pandas = "^1.4.3"
python = "^3.10"
pyarrow = "^8.0.0"
python = "^3.10"
[tool.poetry.dev-dependencies]
black = "^22.6.0"
@@ -22,3 +22,15 @@ pytest = "^7.1.2"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.black]
# Source https://github.com/psf/black#configuration-format
include = "\\.pyi?$"
line-length = 88
target-version = ["py39"]
# Black-compatible settings for isort
# See https://black.readthedocs.io/en/stable/compatible_configs.html
[tool.isort]
line_length = "88"
profile = "black"