diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 12f3cb4..ecd47f9 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -72,7 +72,7 @@ jobs: conda-solver: libmamba - name: Install dependencies - run: poetry install + run: poetry install --verbose - name: run unit tests run: makim tests.unit --verbose @@ -80,6 +80,10 @@ jobs: - name: CLI tests run: makim tests.smoke --verbose + - name: Setup tmate session + if: "${{ failure() && (contains(github.event.pull_request.labels.*.name, 'ci:enable-debugging')) }}" + uses: mxschmitt/action-tmate@v3 + linter: needs: check-branch runs-on: ubuntu-latest @@ -108,8 +112,7 @@ jobs: - name: Install dependencies run: | - poetry config virtualenvs.create false - poetry install + poetry install --verbose - name: Run style checks run: makim tests.linter diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6751dde..fc2a63f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,8 +36,7 @@ jobs: - name: Install deps run: | - poetry config virtualenvs.create false - poetry install + poetry install --verbose - name: Run semantic release (for tests) if: ${{ github.event_name != 'workflow_dispatch' }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 738753d..bd9747e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: ruff-linter name: ruff-linter - entry: ruff check + entry: ruff check --fix language: system exclude: "docs/" pass_filenames: true diff --git a/conda/dev.yaml b/conda/dev.yaml index d1fe537..29e0093 100644 --- a/conda/dev.yaml +++ b/conda/dev.yaml @@ -6,3 +6,5 @@ dependencies: - pip - python 3.8.1 - poetry + - pip: + - paginate >=0.5 # tries to fix the distlib issue diff --git a/conda/release.yaml b/conda/release.yaml index 55747d6..31ea556 100644 --- a/conda/release.yaml +++ b/conda/release.yaml @@ -6,3 +6,5 @@ dependencies: - python 3.10.* # min version supported - poetry - nodejs >=18.17 # used by semantic-release + - pip: + - paginate >=0.5 # tries to fix the distlib issue diff --git a/poetry.toml b/poetry.toml new file mode 100644 index 0000000..084377a --- /dev/null +++ b/poetry.toml @@ -0,0 +1,2 @@ +[virtualenvs] +create = false diff --git a/src/sugar/sugar.py b/src/sugar/sugar.py index d0c4876..8e66c9c 100644 --- a/src/sugar/sugar.py +++ b/src/sugar/sugar.py @@ -132,7 +132,7 @@ def _filter_service_group(self): selected_group_name = default_group else: selected_group_name = self.args.get('service_group') - + # Verify if project-name is not null default_project_name = self.defaults.get('project-name', '') or ''