-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from xaviml/refactor/general
Refactor/general
- Loading branch information
Showing
61 changed files
with
1,310 additions
and
992 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,36 +1,33 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: check-json | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
- --indent | ||
- '4' | ||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: isort | ||
entry: pipenv run isort | ||
language: python | ||
types: [python] | ||
args: [] | ||
require_serial: false | ||
- id: black | ||
name: black | ||
entry: pipenv run black apps/controllerx tests | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
entry: pipenv run black | ||
language: python | ||
types: [python] | ||
- id: flake8 | ||
name: flake8 | ||
entry: pipenv run flake8 apps/controllerx tests | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
entry: pipenv run flake8 | ||
language: python | ||
types: [python] | ||
- id: mypy | ||
name: mypy | ||
entry: pipenv run mypy apps/controllerx | ||
language: system | ||
entry: pipenv run mypy apps/controllerx/ tests/ | ||
language: python | ||
types: [python] | ||
pass_filenames: false | ||
always_run: true | ||
- id: pytest | ||
name: pytest | ||
entry: pipenv run pytest | ||
language: system | ||
language: python | ||
types: [python] | ||
pass_filenames: false | ||
always_run: true |
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,22 @@ | ||
{ | ||
"files.autoSave": "afterDelay", | ||
"files.autoSaveDelay": 100, | ||
"python.testing.pytestEnabled": true, | ||
"editor.formatOnSave": true, | ||
"python.formatting.provider": "black", | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.analysis.diagnosticMode": "workspace", | ||
"python.analysis.stubPath": "apps/controllerx", | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.languageServer": "Pylance", | ||
"python.linting.mypyEnabled": true, | ||
"python.linting.mypyCategorySeverity.note": "Error", | ||
"python.linting.flake8Enabled": true, | ||
"[python]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
} | ||
}, | ||
} |
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
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
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
Oops, something went wrong.