Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,27 @@ jobs:
- prepare_deploy_environment
- deploy_bindings:
language: <<parameters.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
Expand Down
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit install
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
args: [ --fix ]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/models/cran_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/models/dart_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/models/deb_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/models/helm_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/models/hex_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/cloudsmith_api/models/npm_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading