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
|
120
|
||||||
],
|
],
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"python.formatting.provider": "black",
|
|
||||||
"python.linting.lintOnSave": true,
|
|
||||||
"python.linting.flake8Enabled": true,
|
|
||||||
"python.analysis.autoImportCompletions": false,
|
"python.analysis.autoImportCompletions": false,
|
||||||
"python.sortImports.args": [
|
|
||||||
"--profile",
|
|
||||||
"black"
|
|
||||||
],
|
|
||||||
"[python]": {
|
"[python]": {
|
||||||
"gitlens.codeLens.symbolScopes": [
|
"gitlens.codeLens.symbolScopes": [
|
||||||
"!Module"
|
"!Module"
|
||||||
],
|
],
|
||||||
"editor.wordBasedSuggestions": false,
|
"editor.formatOnType": false,
|
||||||
|
"editor.wordBasedSuggestions": "off",
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.organizeImports": true
|
"source.organizeImports": "explicit"
|
||||||
}
|
},
|
||||||
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||||
},
|
},
|
||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/.git": true,
|
"**/.git": true,
|
||||||
|
|
7
Pipfile
7
Pipfile
|
@ -7,11 +7,12 @@ name = "pypi"
|
||||||
numpy = "*"
|
numpy = "*"
|
||||||
scipy = "*"
|
scipy = "*"
|
||||||
matplotlib = "*"
|
matplotlib = "*"
|
||||||
black = "*"
|
|
||||||
flake8 = "*"
|
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
|
black = "*"
|
||||||
|
flake8 = "*"
|
||||||
ipykernel = "*"
|
ipykernel = "*"
|
||||||
|
isort = "*"
|
||||||
|
|
||||||
[requires]
|
[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]
|
[tool.black]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
organize-imports = true
|
exclude = '''
|
||||||
target-version = ['py38']
|
/(
|
||||||
|
\.eggs
|
||||||
|
| \.git
|
||||||
|
| \.hg
|
||||||
|
| \.mypy_cache
|
||||||
|
| \.tox
|
||||||
|
| \.venv
|
||||||
|
| \.vscode
|
||||||
|
| _build
|
||||||
|
| buck-out
|
||||||
|
| build
|
||||||
|
| dist
|
||||||
|
)/
|
||||||
|
'''
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
profile = "black"
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
|
||||||
extend-ignore = E203
|
|
||||||
per-file-ignores =
|
|
||||||
__init__.py: F401, F403
|
|
||||||
exclude = **/*__init__.py,.venv/*,tox/*,build/*,dist/*
|
exclude = **/*__init__.py,.venv/*,tox/*,build/*,dist/*
|
||||||
|
ignore = C901,E203,E731,W503
|
||||||
|
max-line-length = 120
|
Loading…
Reference in New Issue
Block a user