Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed Nov 16, 2018
1 parent 39b5c99 commit 7e54a4f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Downloads](http://pepy.tech/badge/shallow-backup)](http://pepy.tech/count/shallow-backup)
[![Build Status](https://travis-ci.com/alichtman/shallow-backup.svg?branch=master)](https://travis-ci.com/alichtman/shallow-backup)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1719da4d7df5455d8dbb4340c428f851)](https://www.codacy.com/app/alichtman/shallow-backup?utm_source=github.com&utm_medium=referral&utm_content=alichtman/shallow-backup&utm_campaign=Badge_Grade)
<!-- [![Coverage Status](https://coveralls.io/repos/github/alichtman/shallow-backup/badge.svg?branch=master)](https://coveralls.io/github/alichtman/shallow-backup?branch=master) -->

`shallow-backup` lets you easily create lightweight backups of installed packages, applications, fonts and dotfiles, and automatically push them to a remote Git repository.

Expand Down
1 change: 1 addition & 0 deletions docs/development-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ PRs with changes in indentation style _will not be merged._ Tabs (width of 4 spa
### Continuous Integration Testing and Static Analysis

+ [Travis CI](https://travis-ci.com/alichtman/shallow-backup)
+ [Codacy](https://app.codacy.com/project/alichtman/shallow-backup/dashboard)
+ [CodeClimate](https://codeclimate.com/github/alichtman/shallow-backup)
+ [Coveralls](https://coveralls.io/github/alichtman/shallow-backup)

1 change: 0 additions & 1 deletion shallow_backup/git_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def safe_create_gitignore(dir_path):
gitignore_path = os.path.join(dir_path, ".gitignore")
if os.path.exists(gitignore_path):
print_yellow_bold("Detected .gitignore file.")
pass
else:
print_yellow_bold("Creating default .gitignore...")
files_to_ignore = get_config()["default-gitignore"]
Expand Down
2 changes: 1 addition & 1 deletion shallow_backup/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def remove_from_config_prompt():
section = "config_mapping"
paths = config[section]
# Get only backup paths, not dest paths if it's a dictionary.
if type(paths) is dict:
if isinstance(paths, dict):
paths = list(paths.keys())

path_prompt = [inquirer.List('choice',
Expand Down
1 change: 0 additions & 1 deletion shallow_backup/reinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def reinstall_dots_sb(dots_path):
else:
copyfile(file, home_path)
print_section_header("DOTFILE REINSTALLATION COMPLETED", Fore.BLUE)
pass


def reinstall_fonts_sb(fonts_path):
Expand Down

0 comments on commit 7e54a4f

Please sign in to comment.