Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit ca77935

Browse files
author
Ron Quan
committed
Adding new space on setup.py for pylint, and adding the scripts directory which was not tracked
1 parent 3fd01ee commit ca77935

File tree

5 files changed

+50
-1
lines changed

5 files changed

+50
-1
lines changed

scripts/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing
2+
3+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

scripts/Run_All_Tests

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
# --------------------------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------------------------
6+
7+
python -m unittest discover -s ../src/common/tests
8+
python -m unittest discover -s ../src/mssql-scripter/mssql/scripter/tests

scripts/Run_All_Tests.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
3+
REM --------------------------------------------------------------------------------------------
4+
REM Copyright (c) Microsoft Corporation. All rights reserved.
5+
REM Licensed under the MIT License. See License.txt in the project root for license information.
6+
REM --------------------------------------------------------------------------------------------
7+
8+
python -m unittest discover -s ../src/common/tests
9+
python -m unittest discover -s ../src/mssql-scripter/mssql/scripter/tests

scripts/dev_setup.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
6+
from __future__ import print_function
7+
8+
import sys
9+
import os
10+
from subprocess import check_call, CalledProcessError
11+
12+
root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), '..', '..'))
13+
14+
def exec_command(command):
15+
try:
16+
print('Executing: ' + command)
17+
check_call(command.split(), cwd=root_dir)
18+
print()
19+
except CalledProcessError as err:
20+
print(err, file=sys.stderr)
21+
sys.exit(1)
22+
23+
print('Running dev setup...')
24+
print('Root directory \'{}\'\n'.format(root_dir))
25+
26+
# install general requirements
27+
exec_command('pip install -r requirements.txt')
28+
29+
print('Finished dev setup.')

src/mssql-scripter/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
author='Microsoft Corporation',
1717
author_email='[email protected]',
1818
url='https://github.com/Microsoft/sql-xplat-cli/',
19-
)
19+
)

0 commit comments

Comments
 (0)