Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Codacy can assist new developers improve code quality. closes #22
- Loading branch information
Showing
15 changed files
with
165 additions
and
48 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,179 @@ | ||
.. include:: /extras.rst.txt | ||
.. highlight:: rst | ||
.. index:: Codacy-integration ; Index | ||
.. index:: codacy-integration ; Index | ||
|
||
|
||
.. _Codacy-integration-index: | ||
|
||
.. _codacy-integration: | ||
================== | ||
Codacy Integration | ||
================== | ||
|
||
|
||
Codacy [1]_ is an automated code review tool that monitors your technical debt, | ||
helps you improve your code quality, teaches best practices to developers, | ||
and helps you save time in code reviews. | ||
|
||
The GitHub integration incorporates Codacy into your existing Git workflows. | ||
|
||
If Codacy is not precisely what you are looking for, see Stackshare_ for some | ||
alternatives you may wish to explore. | ||
|
||
|
||
.. [1] `From the Codacy documentation <https://github.com/codacy/docs>`_ | ||
.. _Stackshare: https://stackshare.io/codacy/alternatives | ||
|
||
| | ||
See a list of the steps below to get up get your Codacy integration up | ||
See a list of steps below to get your Codacy integration up | ||
and running fast. | ||
|
||
| | ||
.. todo:: | ||
Pre-requisites | ||
============== | ||
|
||
A `GitHub <https://github.com/join>`_ account. | ||
|
||
:ref:`Create a GitHub repository.<create-GH-repo>` | ||
|
||
:ref:`Create a cookiecutter-py3-package.<cookie-create-pkg>` | ||
|
||
.. _codacy-integration-tutorial: | ||
Tutorial | ||
======== | ||
|
||
.. important:: | ||
|
||
The user that enables the Codacy integration must have administrator access | ||
to the repository. Codacy uses this GitHub user to suggest fixes on | ||
pull requests. | ||
|
||
| | ||
Create a Codacy Account | ||
----------------------- | ||
|
||
| | ||
Visit `Codacy Sign Up Page <https://www.codacy.com/signup>`_ and click the | ||
`GitHub` option. | ||
|
||
.. image:: ../_static/imgs/tutorials/codacy-signup-page.png | ||
:alt: Codacy Signup page | ||
|
||
|
||
Review the permissions you will provide Codacy Production to access you | ||
repository. | ||
|
||
If these meet your needs then click `Authorize Codacy Production` | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-production-auth-page.png | ||
:alt: Codacy Production Auth page | ||
|
||
|
||
Fill in the Codacy Questions. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-welcome-page.png | ||
:alt: Codacy Welcome page | ||
|
||
Adding a new organisation. Click `Install and authorize Codacy`. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-add-organisation.png | ||
:alt: Codacy add organisation page | ||
|
||
Select where you want to install and authorise Codacy. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-where-to-install.png | ||
:alt: Codacy where to install page | ||
|
||
|
||
Select which of your repositories Codacy can access. | ||
|
||
`All repositories` allow Codacy to access all repositories without any further | ||
input from you. | ||
|
||
|
||
`Only select repositories` requires further input from you and provides more | ||
control over Codacy interaction with your GitHub repositories. | ||
|
||
After reviewing this page and making your choice, click `Install & Authorize`. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-authorise-access.png | ||
:alt: Codacy authorise access page | ||
|
||
|
||
Open your GitHub Account and navigate to Settings->Applications and | ||
click `Configure`. | ||
|
||
Here, you can check that your selected Codacy options have been implemented | ||
correctly and make changes before final authorisation. | ||
|
||
Click `Save` to complete the Codacy authorisation. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/git-config-codacy.png | ||
:alt: GitHub Codacy Configure page | ||
|
||
|
||
Sign back into Codacy and navigate to `Your Account` then `Access Management`. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-select-your-account.png | ||
:alt: Codacy select your account | ||
|
||
|
||
Check GitHub has been succesfully authorised. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-check-github-auth.png | ||
:alt: Codacy check GitHub authorised | ||
|
||
|
||
Go to `Choose an Organisation` and add your user. | ||
|
||
Codacy will present you with a list of authorised repositories. | ||
|
||
Click `Add` your new package. | ||
|
||
Your new package will now appear in the Repositories list. | ||
|
||
| | ||
.. image:: ../_static/imgs/tutorials/codacy-add-repo.png | ||
:alt: Codacy select your repository | ||
|
||
|
||
.. tip:: | ||
|
||
After enabling this option, you can set Codacy as a required check before | ||
merging your pull requests. | ||
|
||
See :ref:`GitHub Protected Branches Tutorial<GH-protected-branches>` | ||
for more information. | ||
|
||
|
||
.. admonition:: Need help with Codacy? | ||
|
||
See `Codacy Community <https://community.codacy.com/>`_ if you have | ||
questions or would like more information. | ||
|
||
|
||
Write Codacy integration guide. | ||
Whats next? | ||
----------- | ||
|
||
See `Issue-22 <https://github.com/imAsparky/cookiecutter-py3-package/issues/22>`_. | ||
Check out our other :ref:`Tutorials<tutorial-index>` for more information on | ||
how to get the most out of your cookiecutter package. |