-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove version from docker-compse.yml - add devcontainer.json - add settings.json, extensions.json - add pyproject.toml/setup.cfg - fix url in README
- Loading branch information
Showing
7 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"workspaceFolder": "/mnt" | ||
"dockerComposeFile": "../docker-compose.yml", | ||
"service": "mypython", | ||
"workspaceFolder": "/mnt" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"recommendations": [ | ||
"mhutchie.git-graph", | ||
"ms-ceintl.vscode-language-pack-ja", | ||
"ms-python.black-formatter", | ||
"ms-python.autopep8", | ||
"ms-python.flake8", | ||
"ms-python.pylint", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"njpwerner.autodocstring", | ||
"visualstudioexptteam.vscodeintellicode-completions", | ||
"visualstudioexptteam.vscodeintellicode", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"editor.rulers": [ | ||
80, | ||
], | ||
"editor.renderWhitespace": "boundary", | ||
"editor.tabSize": 4, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnType": true, | ||
// | ||
"files.autoSave": "onFocusChange", | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
// | ||
"python.defaultInterpreterPath": "/usr/local/bin/python", | ||
"[python]": { | ||
// "editor.defaultFormatter": "ms-python.black-formatter", | ||
// "editor.defaultFoldingRangeProvider": "ms-python.python", | ||
"editor.defaultFormatter": "ms-python.autopep8", | ||
"editor.formatOnType": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "never" | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: "3" | ||
|
||
services: | ||
mypython: | ||
build: ./ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tool.autopep8] | ||
# https://github.com/hhatto/autopep8#configuration | ||
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes | ||
max_line_length = 120 | ||
ignore = "E5,E4" | ||
# E4 Import | ||
# E5 Line length | ||
aggressive = 2 | ||
|
||
[tool.black] | ||
# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-format | ||
line-length = 120 | ||
|
||
[tool.yapf] | ||
# https://github.com/google/yapf#excluding-files-from-formatting-yapfignore-or-pyproject-toml | ||
based_on_style = "pep8" | ||
column_limit = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[pycodestyle] | ||
; https://pycodestyle.pycqa.org/en/latest/intro.html#configuration | ||
max-line-length = 120 | ||
|
||
[pydocstyle] | ||
; https://www.pydocstyle.org/en/stable/error_codes.html | ||
; D100 -- D107 missing docstring | ||
ignore = | ||
D100, | ||
D101, | ||
D102, | ||
D103, | ||
D104, | ||
D105, | ||
D106, | ||
D107, | ||
|
||
[pylint.] | ||
; https://pylint.readthedocs.io/en/latest/user_guide/usage/run.html | ||
; https://github.com/pylint-dev/pylint/blob/main/pylintrc | ||
disable = | ||
missing-module-docstring, | ||
missing-class-docstring, | ||
missing-function-docstring, | ||
max-line-length = 120 | ||
|
||
[flake8] | ||
; https://flake8.pycqa.org/en/6.0.0/user/configuration.html | ||
; flake8 follows https://www.pydocstyle.org/en/stable/error_codes.html | ||
; D100 -- D107 missing docstring | ||
ignore = | ||
D100, | ||
D101, | ||
D102, | ||
D103, | ||
D104, | ||
D105, | ||
D106, | ||
D107, | ||
max-line-length = 120 |