generated from Luis/nextjs-python-web-template
Added exclude **/tests/openapi_client/** to nix fmt
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
"pkgs/clan-cli".extraPythonPackages = self'.packages.clan-cli.pytestDependencies;
|
"pkgs/clan-cli".extraPythonPackages = self'.packages.clan-cli.pytestDependencies;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
treefmt.settings.formatter.nix = {
|
treefmt.settings.formatter.nix = {
|
||||||
command = "sh";
|
command = "sh";
|
||||||
options = [
|
options = [
|
||||||
@@ -51,6 +52,7 @@
|
|||||||
"--" # this argument is ignored by bash
|
"--" # this argument is ignored by bash
|
||||||
];
|
];
|
||||||
includes = [ "*.py" ];
|
includes = [ "*.py" ];
|
||||||
|
excludes = [ "**/tests/openapi_client/**" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class Machine(BaseModel):
|
|||||||
#########################
|
#########################
|
||||||
class ServiceBase(BaseModel):
|
class ServiceBase(BaseModel):
|
||||||
uuid: str = "8e285c0c-4e40-430a-a477-26b3b81e30df"
|
uuid: str = "8e285c0c-4e40-430a-a477-26b3b81e30df"
|
||||||
service_name: str = "Carlo's Printing"
|
service_name: str = "Carlos Printing"
|
||||||
service_type: str = "3D Printing"
|
service_type: str = "3D Printing"
|
||||||
endpoint_url: str = "http://127.0.0.1:8000"
|
endpoint_url: str = "http://127.0.0.1:8000"
|
||||||
status: str = "unknown"
|
status: str = "unknown"
|
||||||
@@ -49,7 +49,7 @@ class EntityBase(BaseModel):
|
|||||||
ip: str = "127.0.0.1"
|
ip: str = "127.0.0.1"
|
||||||
visible: bool = True
|
visible: bool = True
|
||||||
other: dict = {
|
other: dict = {
|
||||||
"network": "Carlo's Home Network",
|
"network": "Carlos Home Network",
|
||||||
"roles": ["service repository", "service prosumer"],
|
"roles": ["service repository", "service prosumer"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,10 @@ warn_redundant_casts = true
|
|||||||
disallow_untyped_calls = true
|
disallow_untyped_calls = true
|
||||||
disallow_untyped_defs = true
|
disallow_untyped_defs = true
|
||||||
no_implicit_optional = true
|
no_implicit_optional = true
|
||||||
exclude = "clan_cli.nixpkgs"
|
exclude = [
|
||||||
|
"clan_cli.nixpkgs",
|
||||||
|
"tests/openapi_client",
|
||||||
|
]
|
||||||
|
|
||||||
[[tool.mypy.overrides]]
|
[[tool.mypy.overrides]]
|
||||||
module = "argcomplete.*"
|
module = "argcomplete.*"
|
||||||
@@ -60,9 +63,9 @@ ignore_missing_imports = true
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
line-length = 88
|
line-length = 88
|
||||||
|
|
||||||
select = [ "E", "F", "I", "N"]
|
select = [ "E", "F", "I", "N"]
|
||||||
ignore = [ "E501" ]
|
ignore = [ "E501" ]
|
||||||
|
exclude = ["tests/openapi_client"]
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 88
|
line-length = 88
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class Service(BaseModel):
|
|||||||
Service
|
Service
|
||||||
"""
|
"""
|
||||||
uuid: Optional[StrictStr] = '8e285c0c-4e40-430a-a477-26b3b81e30df'
|
uuid: Optional[StrictStr] = '8e285c0c-4e40-430a-a477-26b3b81e30df'
|
||||||
service_name: Optional[StrictStr] = 'Carlo's Printing'
|
service_name: Optional[StrictStr] = 'Carlos Printing'
|
||||||
service_type: Optional[StrictStr] = '3D Printing'
|
service_type: Optional[StrictStr] = '3D Printing'
|
||||||
endpoint_url: Optional[StrictStr] = 'http://127.0.0.1:8000'
|
endpoint_url: Optional[StrictStr] = 'http://127.0.0.1:8000'
|
||||||
status: Optional[StrictStr] = 'unknown'
|
status: Optional[StrictStr] = 'unknown'
|
||||||
@@ -71,7 +71,7 @@ class Service(BaseModel):
|
|||||||
|
|
||||||
_obj = Service.parse_obj({
|
_obj = Service.parse_obj({
|
||||||
"uuid": obj.get("uuid") if obj.get("uuid") is not None else '8e285c0c-4e40-430a-a477-26b3b81e30df',
|
"uuid": obj.get("uuid") if obj.get("uuid") is not None else '8e285c0c-4e40-430a-a477-26b3b81e30df',
|
||||||
"service_name": obj.get("service_name") if obj.get("service_name") is not None else 'Carlo's Printing',
|
"service_name": obj.get("service_name") if obj.get("service_name") is not None else 'Carlos Printing',
|
||||||
"service_type": obj.get("service_type") if obj.get("service_type") is not None else '3D Printing',
|
"service_type": obj.get("service_type") if obj.get("service_type") is not None else '3D Printing',
|
||||||
"endpoint_url": obj.get("endpoint_url") if obj.get("endpoint_url") is not None else 'http://127.0.0.1:8000',
|
"endpoint_url": obj.get("endpoint_url") if obj.get("endpoint_url") is not None else 'http://127.0.0.1:8000',
|
||||||
"status": obj.get("status") if obj.get("status") is not None else 'unknown',
|
"status": obj.get("status") if obj.get("status") is not None else 'unknown',
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class ServiceCreate(BaseModel):
|
|||||||
ServiceCreate
|
ServiceCreate
|
||||||
"""
|
"""
|
||||||
uuid: Optional[StrictStr] = '8e285c0c-4e40-430a-a477-26b3b81e30df'
|
uuid: Optional[StrictStr] = '8e285c0c-4e40-430a-a477-26b3b81e30df'
|
||||||
service_name: Optional[StrictStr] = 'Carlo's Printing'
|
service_name: Optional[StrictStr] = 'Carlos Printing'
|
||||||
service_type: Optional[StrictStr] = '3D Printing'
|
service_type: Optional[StrictStr] = '3D Printing'
|
||||||
endpoint_url: Optional[StrictStr] = 'http://127.0.0.1:8000'
|
endpoint_url: Optional[StrictStr] = 'http://127.0.0.1:8000'
|
||||||
status: Optional[StrictStr] = 'unknown'
|
status: Optional[StrictStr] = 'unknown'
|
||||||
@@ -71,7 +71,7 @@ class ServiceCreate(BaseModel):
|
|||||||
|
|
||||||
_obj = ServiceCreate.parse_obj({
|
_obj = ServiceCreate.parse_obj({
|
||||||
"uuid": obj.get("uuid") if obj.get("uuid") is not None else '8e285c0c-4e40-430a-a477-26b3b81e30df',
|
"uuid": obj.get("uuid") if obj.get("uuid") is not None else '8e285c0c-4e40-430a-a477-26b3b81e30df',
|
||||||
"service_name": obj.get("service_name") if obj.get("service_name") is not None else 'Carlo's Printing',
|
"service_name": obj.get("service_name") if obj.get("service_name") is not None else 'Carlos Printing',
|
||||||
"service_type": obj.get("service_type") if obj.get("service_type") is not None else '3D Printing',
|
"service_type": obj.get("service_type") if obj.get("service_type") is not None else '3D Printing',
|
||||||
"endpoint_url": obj.get("endpoint_url") if obj.get("endpoint_url") is not None else 'http://127.0.0.1:8000',
|
"endpoint_url": obj.get("endpoint_url") if obj.get("endpoint_url") is not None else 'http://127.0.0.1:8000',
|
||||||
"status": obj.get("status") if obj.get("status") is not None else 'unknown',
|
"status": obj.get("status") if obj.get("status") is not None else 'unknown',
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
import urllib.parse as url
|
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
from api import TestClient
|
|
||||||
from openapi_client.api.entities_api import EntitiesApi
|
|
||||||
|
|
||||||
|
|
||||||
default_entity_did_url = "entity_did=did%3Asov%3Atest%3A1234"
|
default_entity_did_url = "entity_did=did%3Asov%3Atest%3A1234"
|
||||||
default_entity_did = "did:sov:test:1234"
|
default_entity_did = "did:sov:test:1234"
|
||||||
default_entity_did2 = "did:sov:test:1235"
|
default_entity_did2 = "did:sov:test:1235"
|
||||||
default_entity_did3 = "did:sov:test:1236"
|
default_entity_did3 = "did:sov:test:1236"
|
||||||
default_entity_did4 = "did:sov:test:1237"
|
default_entity_did4 = "did:sov:test:1237"
|
||||||
default_entity_did5 = "did:sov:test:1238"
|
default_entity_did5 = "did:sov:test:1238"
|
||||||
|
|
||||||
|
|||||||
@@ -25,4 +25,5 @@ Than run this command:
|
|||||||
```
|
```
|
||||||
GITEA_TOKEN=<YOUR_TOKEN> nix run .#update-ui-assets
|
GITEA_TOKEN=<YOUR_TOKEN> nix run .#update-ui-assets
|
||||||
```
|
```
|
||||||
|
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user