Skip to content

Commit f386dca

Browse files
Seppli11guillaume-dequenne
authored andcommitted
SCANPY-111 Create a feature branch for the bootstrapping
1 parent d6762a6 commit f386dca

24 files changed

+59
-1230
lines changed

.cirrus.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ env:
1111
POETRY_VIRTUALENVS_PATH: "~/.cache/poetry/venvs"
1212
POETRY_CACHE_DIR: "~/.cache/poetry/pypoetry"
1313

14-
only_if: $CIRRUS_USER_COLLABORATOR == "true" && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "feature/*" || $CIRRUS_BRANCH =~ "dogfood-on-.*")
15-
14+
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ "branch-.*")
1615
container_definition: &CONTAINER_DEFINITION
1716
dockerfile: .cirrus/poetry.Dockerfile
1817
cluster_name: ${CIRRUS_CLUSTER_NAME}

its/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.its-venv/
File renamed without changes.

its/tests/conftest.py

Lines changed: 0 additions & 70 deletions
This file was deleted.

its/tests/test_analysis.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

its/tests/test_dummy.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# Sonar Scanner Python
3+
# Copyright (C) 2011-2024 SonarSource SA.
4+
# mailto:info AT sonarsource DOT com
5+
#
6+
# This program is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 3 of the License, or (at your option) any later version.
10+
# This program is distributed in the hope that it will be useful,
11+
#
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public License
17+
# along with this program; if not, write to the Free Software Foundation,
18+
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
#
20+
import unittest
21+
22+
class DummyTest(unittest.TestCase):
23+
def test_dummy(self):
24+
self.assertTrue(True)

its/utils/cli_client.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

its/utils/sonarqube_client.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

scripts/format.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/env bash
2+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
3+
pushd "$SCRIPT_DIR/.."
4+
5+
poetry run black src/ tests/
6+
7+
popd

scripts/generate_licenseheaders.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/env bash
2+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
3+
pushd "$SCRIPT_DIR/.."
4+
5+
poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d src/
6+
poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d tests/
7+
poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d its -x its/sources/**.py
8+
9+
popd

0 commit comments

Comments
 (0)