Skip to content

Commit 8f6c0cf

Browse files
committed
updated docs
1 parent cc1b1e5 commit 8f6c0cf

File tree

4 files changed

+63
-16
lines changed

4 files changed

+63
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ Unreleased
44
**Improvements**
55
- Added `update_module` and `delete_module` methods to MAS service.
66

7+
**Changed**
8+
- Added `replace` parameter to `sasctl.tasks.publish_model`
9+
710
**Bugfixes**
811
- Renamed `microanalytic_store` service to `microanalytic_score`
912

13+
1014
v1.0.1 (2019-07-31)
1115
-------------------
1216
**Changed**

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ integration testing without requiring a running SAS Viya environment, the
3131
[Betamax](https://pypi.org/project/betamax/) package is used to record and
3232
replay network interactions.
3333

34-
In addition, [Tox](https://tox.readthedocs.io) is used to automating development tasks
34+
In addition, [Tox](https://tox.readthedocs.io) is used to automate common development tasks
3535
such as testing, linting, and building documentation.
3636

3737
All packages required for development and testing are listed in

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
'betamax': ('https://betamax.readthedocs.io/en/latest/', None),
5555
'requests': (
5656
'https://2.python-requests.org/en/master/', None),
57-
'tox': ('https://tox.readthedocs.io/en/latest/', None)}
57+
'tox': ('https://tox.readthedocs.io/en/latest/', None),
58+
'flake8': ('http://flake8.pycqa.org/en/latest/', None)}
5859

5960
todo_include_todos = True
6061

doc/index.rst

Lines changed: 56 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ simple code examples that demonstrate how to use various features are always wel
348348

349349

350350
All documentation is contained in the :file:`doc/` directory of the source repository and is written in `reStructuredText`_.
351-
The .rst files are then processed by `Sphinx`_ to produce the final documentation.
351+
The .rst files are then processed by `Sphinx`_ to produce the final documentation. See the :ref:`tox_commands` section for
352+
details on how to build the final documentation.
352353

353354
.. _`reStructuredText`: http://docutils.sourceforge.net/rst.html
354355
.. _`Sphinx`: http://www.sphinx-doc.org/en/master/
@@ -375,6 +376,8 @@ part of the project.
375376

376377
:command:`tox`
377378

379+
See :ref:`tox_commands` for more information on using Tox.
380+
378381
3. If any tests fail, you should investigate and correct the failure *before* making any changes.
379382
#. Make your code changes
380383
#. Include new tests that validate your changes
@@ -390,19 +393,6 @@ All code submissions must meet the following requirements before the pull reques
390393
.. _`numpydoc`: https://numpydoc.readthedocs.io/en/latest/format.html
391394

392395

393-
Useful tox commands
394-
++++++++++++
395-
flake8
396-
pytest
397-
398-
tox
399-
tox -e pyXX-flake8 # Linting/style checker
400-
tox -e pyXX-flake8 src/sasctl/...
401-
tox -e pyXX-tests
402-
tox -e pyXX-doc
403-
tox -e pyXX-tests -- python
404-
405-
406396

407397
.. _testing:
408398

@@ -432,6 +422,58 @@ And finally, the :doc:`tox <tox:index>` module is used to ensure that **sasctl**
432422
Python versions.
433423

434424

425+
.. _tox_commands:
426+
427+
Useful Tox Commands
428+
+++++++++++++++++++
429+
:mod:`tox` is used to automate common development tasks such as testing, linting, and building documentation.
430+
Running :program:`tox` from the project root directory will automatically build virtual environments for all Python interpreters
431+
found on the system and then install the required packages necessary to perform a given task. The simplest way to run Tox is:
432+
433+
.. code::
434+
435+
$ tox
436+
437+
This will run the :mod:`flake8` linter followed by :mod:`pytest` to test the code against all Python runtimes
438+
found on the machine. One of the great features of Tox is the ability to run specific tasks by specifying the environment to run.
439+
A few useful environments are listed below, where **XX** indicates a Python version present in your development environment,
440+
such as '27' or '36'.
441+
442+
#.
443+
.. code::
444+
445+
$ tox -e pyXX-flake8
446+
447+
Runs the flake8 linter against all **sasctl** source code.
448+
449+
#.
450+
.. code::
451+
452+
$ tox -e pyXX-flake8 src/sasctl/tasks.py
453+
454+
Runs the flake8 linter against a specific file.
455+
456+
#.
457+
.. code::
458+
459+
$ tox -e pyXX-tests
460+
461+
Runs all tests using the specified Python interpreter.
462+
463+
#.
464+
.. code::
465+
466+
$ tox -e pyXX-doc
467+
468+
Builds the documentation.
469+
470+
#.
471+
.. code::
472+
473+
$ tox -e pyXX-tests -- python
474+
475+
Starts a Python REPL in an environment with **sasctl** already installed.
476+
435477
Release History
436478
---------------
437479

0 commit comments

Comments
 (0)