diff --git a/.circleci/config.yml b/.circleci/config.yml index 20470a6c..8fb5c1b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,11 +58,27 @@ jobs: - prepare_deploy_environment - deploy_bindings: language: <> + pre_commit: + description: "Run pre-commit hooks" + docker: + - image: cimg/python:3.8 + steps: + - checkout + - run: + name: "Install dependencies" + command: | + python3 -m pip install --upgrade pip + pip install pre-commit + - run: + name: "Run pre-commit" + command: pre-commit run --all-files + workflows: version: 2 test_and_deploy: jobs: + - pre_commit - test: name: "Test Java" language: java diff --git a/.envrc b/.envrc index e69de29b..ea9c614f 100644 --- a/.envrc +++ b/.envrc @@ -0,0 +1 @@ +pre-commit install diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..8c7fde6e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.6.9 + hooks: + - id: ruff + args: [ --fix ] diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream.py b/bindings/python/src/cloudsmith_api/models/composer_upstream.py index 82860c44..02dbc6cf 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py b/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py index e10915b7..fecd58b6 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py index 4bbbf2e9..cac85264 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream.py b/bindings/python/src/cloudsmith_api/models/cran_upstream.py index 3dcb731f..7fb30744 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py b/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py index 211eac3c..307af8ed 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py index 673d17b7..2f00162a 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream.py b/bindings/python/src/cloudsmith_api/models/dart_upstream.py index 729d1139..bc55ec95 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py b/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py index 1f9b4946..c8a61a54 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py index df42efb2..f52f983e 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream.py b/bindings/python/src/cloudsmith_api/models/deb_upstream.py index b01d2d13..32bfba2c 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream.py @@ -661,7 +661,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py b/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py index fd1548bb..ebc61c1f 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py @@ -580,7 +580,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py index 409f4257..779ca8b1 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py @@ -579,7 +579,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/docker_upstream.py b/bindings/python/src/cloudsmith_api/models/docker_upstream.py index fae104a3..231ef51c 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/docker_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py b/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py index 4d5b78fb..c69989cf 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py index bf69934c..c31159a8 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream.py b/bindings/python/src/cloudsmith_api/models/helm_upstream.py index ee9c1a1e..cf26f7b9 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py index dd3a5d3e..8635ebf3 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py index 6e4afef3..b76eb29a 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream.py b/bindings/python/src/cloudsmith_api/models/hex_upstream.py index 0c174ab9..e5c3ecf5 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py b/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py index 64036d1c..c1411326 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py index b589e642..4998abb6 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/maven_upstream.py b/bindings/python/src/cloudsmith_api/models/maven_upstream.py index 6e7ad025..10604693 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/maven_upstream.py @@ -565,7 +565,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py b/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py index f1c1f3e4..321be509 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py @@ -484,7 +484,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py index af1fdc3a..80b08818 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py @@ -484,7 +484,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream.py b/bindings/python/src/cloudsmith_api/models/npm_upstream.py index 73ebc932..c6861699 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py index e3fb6c1f..2e3fc951 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py index a6a72031..fc3793e4 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream.py index 7dcd6ec3..71601ab9 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py index 9b8a8c65..fb7d2dae 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py index 101e4437..67eafadb 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream.py b/bindings/python/src/cloudsmith_api/models/python_upstream.py index ad030389..f9fe404a 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream_request.py b/bindings/python/src/cloudsmith_api/models/python_upstream_request.py index ce01f447..3e586529 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py index 27e64863..ea221b2e 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository.py b/bindings/python/src/cloudsmith_api/models/repository.py index b744f0d3..06f74357 100644 --- a/bindings/python/src/cloudsmith_api/models/repository.py +++ b/bindings/python/src/cloudsmith_api/models/repository.py @@ -949,7 +949,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository_create.py b/bindings/python/src/cloudsmith_api/models/repository_create.py index 3fde9871..2aa25a62 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_create.py +++ b/bindings/python/src/cloudsmith_api/models/repository_create.py @@ -949,7 +949,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository_create_request.py b/bindings/python/src/cloudsmith_api/models/repository_create_request.py index ce82ae4e..84f76bc9 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_create_request.py +++ b/bindings/python/src/cloudsmith_api/models/repository_create_request.py @@ -672,7 +672,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository_request_patch.py b/bindings/python/src/cloudsmith_api/models/repository_request_patch.py index 0c05d993..57341493 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/repository_request_patch.py @@ -666,7 +666,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream.py index 15c3ff81..85b9799a 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream.py @@ -622,7 +622,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py index 19ef7d14..8fd416ce 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py @@ -541,7 +541,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py index 4c5f7aa1..4cb65bba 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py @@ -540,7 +540,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/ruby_upstream.py b/bindings/python/src/cloudsmith_api/models/ruby_upstream.py index 9b849f7e..1e0b8608 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py index a1045011..e5ba3cfd 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py index 92016299..b32279c6 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/swift_upstream.py b/bindings/python/src/cloudsmith_api/models/swift_upstream.py index 21011325..eb6df34f 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/swift_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py b/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py index b557d518..951a9c66 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py index 209c1a18..746ef6fd 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 00000000..3bd4049c --- /dev/null +++ b/ruff.toml @@ -0,0 +1,10 @@ +target-version = "py38" + +[lint] +select = [ + "W605", # invalid-escape-sequence +] +ignore = [] + +# Allow fix for all enabled rules (when `--fix`) is provided. +fixable = ["ALL"]