black and isort config
This commit is contained in:
parent
d7bc9843dd
commit
19ba9f4f07
15
.vscode/settings.json
vendored
15
.vscode/settings.json
vendored
|
@ -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,
|
||||
|
|
7
Pipfile
7
Pipfile
|
@ -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
1425
Pipfile.lock
generated
File diff suppressed because it is too large
Load Diff
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user