black and isort config

This commit is contained in:
Brendan Haines 2024-11-11 01:07:18 -07:00
parent d7bc9843dd
commit 19ba9f4f07
5 changed files with 840 additions and 641 deletions

15
.vscode/settings.json vendored
View File

@ -3,22 +3,17 @@
120
],
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.linting.lintOnSave": true,
"python.linting.flake8Enabled": true,
"python.analysis.autoImportCompletions": false,
"python.sortImports.args": [
"--profile",
"black"
],
"[python]": {
"gitlens.codeLens.symbolScopes": [
"!Module"
],
"editor.wordBasedSuggestions": false,
"editor.formatOnType": false,
"editor.wordBasedSuggestions": "off",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "ms-python.black-formatter"
},
"files.exclude": {
"**/.git": true,

View File

@ -7,11 +7,12 @@ name = "pypi"
numpy = "*"
scipy = "*"
matplotlib = "*"
black = "*"
flake8 = "*"
[dev-packages]
black = "*"
flake8 = "*"
ipykernel = "*"
isort = "*"
[requires]
python_version = "3.8"
python_version = "3.11"

1425
Pipfile.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,20 @@
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.pylint.format]
max-line-length = "100"
[tool.black]
line-length = 120
organize-imports = true
target-version = ['py38']
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.vscode
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"

View File

@ -1,6 +1,4 @@
[flake8]
max-line-length = 120
extend-ignore = E203
per-file-ignores =
__init__.py: F401, F403
exclude = **/*__init__.py,.venv/*,tox/*,build/*,dist/*
ignore = C901,E203,E731,W503
max-line-length = 120