-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor in progress * Refactor * Refactor updates * Refactor * Remove netutils * draft validators * Project bootrapping * Refactoring * validator updates * yamllint * black * test updates * remove working-directory * run actions on refactor * fix github action * fix ci * fix ci * Revert python test matrix * tweak ci * isort fixes * yamllint updates * tweak ci * Updates, but still in broken state * update gitignore to remove ruff_cache * add devcontainer * tweak devcontainer * Refactoring * Update tests * Fmt * Update tests * Test updates * Update tests * Test updates * pyproject.toml updates * poetry updates * devcontainer updates * remove broken references in CI * poetry updates * remove duplicate imports --------- Co-authored-by: ryanmerolle <ryan.merolle@gmail.com> Co-authored-by: Ryan Merolle <ryanmerolle@users.noreply.github.com>
- Loading branch information
1 parent
e4a4fb4
commit 0dcb7e4
Showing
42 changed files
with
1,551 additions
and
835 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 |
---|---|---|
@@ -0,0 +1,98 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/python | ||
{ | ||
"name": "net_schema", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/python:1-3.8", | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/bandit:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/black:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/flake8:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/isort:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/mypy:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/poetry:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/pylint:2": {}, | ||
"ghcr.io/devcontainers-contrib/features/ruff:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/yamllint:2": {}, | ||
"ghcr.io/jungaretti/features/make:1": {} | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "poetry config virtualenvs.in-project true && poetry install", | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"venvFolders": ["venv", ".venv"], | ||
"editor.formatOnSave": true, | ||
"files.trimTrailingWhitespace": true | ||
}, | ||
"[plaintext]": { | ||
"files.trimTrailingWhitespace": false | ||
}, | ||
"editor.rulers": [80, 100], | ||
"editor.bracketPairColorization.enabled": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
}, | ||
"editor.trimAutoWhitespace": false, | ||
"extensions.autoCheckUpdates": true, | ||
"extensions.ignoreRecommendations": true, | ||
"files.insertFinalNewline": true, | ||
"python.analysis.extraPaths": [ | ||
"/workspaces/net_schema", | ||
"/workspaces/net_schema/.venv/lib/python3.8/site-packages" | ||
], | ||
"python.pyright.typeCheckingMode": "basic", | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.autoComplete.extraPaths": [ | ||
"/workspaces/net_schema", | ||
"/workspaces/net_schema/.venv/lib/python3.8/site-packages" | ||
], | ||
"python.pythonPath": "/workspaces/net_schema/.venv/bin/python3", | ||
"python.terminal.activateEnvironment": true, | ||
"python.testing.pytestArgs": ["tests"], | ||
"python.testing.pytestEnabled": true, | ||
"python.testing.unittestEnabled": false, | ||
"python.venvPath": "/workspaces/net_schema/.venv" | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"Codium.codium", | ||
"GSGBen.fortigate-fortios-syntax", | ||
"GitHub.copilot", | ||
"GitHub.copilot-chat", | ||
"GitHub.copilot-labs", | ||
"GitHub.vscode-codeql", | ||
"GitHub.vscode-github-actions", | ||
"GitHub.vscode-pull-request-github", | ||
"Gruntfuggly.todo-tree", | ||
"KevinRose.vsc-python-indent", | ||
"Tyriar.sort-lines", | ||
"charliermarsh.ruff", | ||
"esbenp.prettier-vscode", | ||
"hbenl.vscode-test-explorer", | ||
"ms-vscode.test-adapter-converter", | ||
"ms-python.black-formatter", | ||
"ms-python.flake8", | ||
"ms-python.isort", | ||
"ms-python.mypy-type-checker", | ||
"ms-python.pylint", | ||
"mutantdino.resourcemonitor", | ||
"paulomenezes.duplicated-code", | ||
"piotrpalarz.vscode-gitignore-generator", | ||
"sourcery.sourcery", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -135,4 +135,7 @@ dmypy.json | |
.pytype/ | ||
|
||
# Cython debug symbols | ||
cython_debug/ | ||
cython_debug/ | ||
|
||
# Ruff | ||
.ruff_cache/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,4 @@ | ||
--- | ||
interfaces: | ||
- name: eth0 | ||
ip: 10.2.1.1 | ||
|
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,4 @@ | ||
--- | ||
interfaces: | ||
- name: eth0 | ||
ip: 10.3.1.1 | ||
|
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,4 @@ | ||
--- | ||
interfaces: | ||
- name: eth0 | ||
ip: 10.4.1.1 | ||
|
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,4 @@ | ||
--- | ||
interfaces: | ||
- name: eth0 | ||
ip: 10.5.1.1 | ||
|
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,6 @@ | ||
--- | ||
type: object | ||
properties: | ||
asn: | ||
type: string | ||
asn: True |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.