Π“Ρ€Π°Ρ„ ΠΊΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

5 ΠšΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

Автор SHA1 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ Π”Π°Ρ‚Π°
Hannah K 49df5e52ed
Removes a space from the build status image. (#8) 2019-01-30 10:57:31 -05:00
Hannah K b69e11596d
Creates the `cadet import` command (#4)
* Creates the starting point for the CLI tool.

* Aligns the code to the Specs.

* Adds a number of try-catch statements for better error-handling.

* Removes a comment that was wrong (the raised error is hit).

* Adds a docstring to the beginning of the file.

* Updates the flags/options to match the portal's vocabulary, and
corresponding variable names. Swaps out print() and puts in
click.echo(). Adds in a try/catch for the document upsert

* Changes how a click.echo message was formatted to use correct syntax.

* Unifies which string quotation marks are used (now single instead of a
mix); Adds new lines in exception messages for readability; Moves the
source_size variable check inside of a try/catch so that if the source
file provided doesn't exist, it fails gracefully.

* Adds a check for the source file's extension being CSV or TSV and
raising an exception if it's not.

* Moves a comment and removes a bunch of blank lines.

* Feature: Add CI and release pipeline (#3)

* add azure-pipelines.yml

* update?

* add test step

* drop travis

* add badge

* update contrib

* pr validation, package on master

* move condition for github

* added a linting step via pylint before test

* updated so that all stages lint and that the correct module is passed into linter

* Removes the newline characters from the messages since it's clunky.

* Adds a `required=True` on the collection name, database name, and type
flags so that if any of them are missing, then it should fail. The
connection flags have separate fail-safes in place so they don't need
the `required=True`.

* Pulls out some functionality into separate functions for easier testing;
adds function descriptions for those new functions; fixes a connection
typo.

* Corrects unnecessary white space at the end of a few lines.

* Cleans up from pylint suggestions.

* Updates a function comment

* Add initial tests and test files (#5)

* Add initial tests and test files

* Add newline

* Import mock

* Add test import

* Add testing, remove test cases that rely on auth response

* Add connection string parsing and test

* Remove extra line, and unused import statement

* Modify tests and test file

* Remove optionality of arguments

* Add comments on test

* Mock on upsertedDocs

* Rewrite test mocking

* Remove print statement

* Add comment to describe test

* Fix spacing, typo

* Creates the starting point for the CLI tool.

* Aligns the code to the Specs.

* Adds a number of try-catch statements for better error-handling.

* Removes a comment that was wrong (the raised error is hit).

* Updates the flags/options to match the portal's vocabulary, and
corresponding variable names. Swaps out print() and puts in
click.echo(). Adds in a try/catch for the document upsert

* Changes how a click.echo message was formatted to use correct syntax.

* Adds a docstring to the beginning of the file.

* Unifies which string quotation marks are used (now single instead of a
mix); Adds new lines in exception messages for readability; Moves the
source_size variable check inside of a try/catch so that if the source
file provided doesn't exist, it fails gracefully.

* Adds a check for the source file's extension being CSV or TSV and
raising an exception if it's not.

* Moves a comment and removes a bunch of blank lines.

* Removes the newline characters from the messages since it's clunky.

* Adds a `required=True` on the collection name, database name, and type
flags so that if any of them are missing, then it should fail. The
connection flags have separate fail-safes in place so they don't need
the `required=True`.

* Pulls out some functionality into separate functions for easier testing;
adds function descriptions for those new functions; fixes a connection
typo.

* Corrects unnecessary white space at the end of a few lines.

* Cleans up from pylint suggestions.

* Updates a function comment

* Add initial tests and test files (#5)

* Add initial tests and test files

* Add newline

* Import mock

* Add test import

* Add testing, remove test cases that rely on auth response

* Add connection string parsing and test

* Remove extra line, and unused import statement

* Modify tests and test file

* Remove optionality of arguments

* Add comments on test

* Mock on upsertedDocs

* Rewrite test mocking

* Remove print statement

* Add comment to describe test

* Fix spacing, typo

* Moves things from my previous branch into the style from master. Updates
the CONTRIBUTING and README docs.

* The first(-ish) pass of the linting/reorganizing.

* Updates some dependencies.

* Updates the Azure pipelines to run `pip3` since we require Python 3.

* Changes to pipeline to see if pylint and pytest.

* Separates the installing of required modules from the actual testing. Is
there a synchronous issue?

* Makes the change to the Windows build since that is where the failure is
happening.

* Removes a broken requirement that was possibly introduced.

* Feature/linting tests (#6)

* Add docstrings, remove instances of 'self' on classes
* Fix file importation and reading
* Re-add 'connection-string'
* Add conditional, to allow users to type in source_path
* Change variable names, edit tests
* Consistency on click options

* Feature/add description to pylint ignore (#7)

* Fix typo

* Add descriptive pylint ignore message

* Update test_cadet.py

* Updates the contributing docs to include a note about a known bug.

* Splits up the installing and testing for the linux build..
2019-01-29 15:21:42 -05:00
Ben Greenier 10d77b7546
Feature: Add CI and release pipeline (#3)
* add azure-pipelines.yml

* update?

* add test step

* drop travis

* add badge

* update contrib

* pr validation, package on master

* move condition for github

* added a linting step via pylint before test

* updated so that all stages lint and that the correct module is passed into linter
2019-01-10 10:17:37 -05:00
Ben Greenier f004196f8b
Initial feature-set docs and starter code (#2)
* add logo, update readme

* add travis config

* .travis.yml - add newline at file end

* fix typo

* add example cli

* ignore vscode config

* reference contributing.md from readme.md

* add packaging tools

* revfix: capitalize SDK

* pytest support, basic test

* drop support for python2 in travis

* revfix: typos and improvements
2019-01-04 16:45:05 -05:00
Microsoft Open Source db00f1abd0 Initial commit 2019-01-04 10:45:10 -08:00