1
0
Fork 0
mirror of synced 2024-11-10 10:58:57 -05:00
Commit graph

223 commits

Author SHA1 Message Date
Anish Athalye
30dc7d5788 Fix typo 2015-10-19 10:13:23 -04:00
Anish Athalye
bb209bd17f Fix typo 2015-08-17 21:30:56 -07:00
Anish Athalye
4381c4cabb Use safe_load function to load YAML
In our use case, we are *not* reading arbitrary input that could be
malicious. Still, because we know that what we're reading is made up of
only dictionaries and lists and not arbitrary Python objects, we might
as well use the more restrictive `safe_load` function rather than the
`load` function.
2015-08-03 17:47:32 -07:00
Anish Athalye
dcc3a1947a Add link to init-dotfiles repository to README 2015-06-11 21:38:52 -07:00
Anish Athalye
9dad17bc80 Merge branch 'Aviator45003/spellcheck' 2015-06-08 08:30:08 -07:00
The Aviator
01c022154e Fix typos in README 2015-06-08 08:29:58 -07:00
Anish Athalye
c2036b7960 Restore information to README
The information that was added in
115210ab17 was removed in
4ed3ffc411 when reorganizing the README.
This commit restores the information.
2015-06-02 22:46:39 -07:00
Anish Athalye
9c1af76e9e Add Mercurial install script 2015-05-22 13:33:10 -04:00
Anish Athalye
fd7f3b8551 Add environment variable expansion in link paths
This feature was proposed by Brian Knobbs <brian@redlattice.com>.
2015-05-12 20:28:58 -04:00
Anish Athalye
53c26ba9e6 Clean up code 2015-05-06 10:38:58 -04:00
Anish Athalye
b0d09b7047 Make driver display file names of tests 2015-05-06 10:04:32 -04:00
Anish Athalye
b1f9251e1f Update editorconfig 2015-05-06 08:39:10 -04:00
Anish Athalye
eeab507d15 Add testing framework and tests 2015-05-05 20:11:46 -04:00
Anish Athalye
49181b0666 Update README 2015-05-04 11:33:16 -04:00
Anish Athalye
3725d21684 Add functionality to overwrite broken links
This commit adds an option to the extended configuration syntax for
linking files and directories. The relink option is a safe alternative
to forcibly linking that only removes broken symbolic links, so it
cannot result in data loss.
2015-05-02 22:30:14 -04:00
Anish Athalye
db8364490d Merge branch 'antaflos/force-symlinked-dirs' 2015-04-27 17:03:40 -04:00
Andreas Ntaflos
1a10f88c43 Handle force creation of symlinked directories
Check if entry to force-create (delete) is a symlink and if so, simply
unlink it. Don't try to run rmtree on the underlying directory, which
will fail anyway.
2015-04-27 22:58:22 +02:00
Anish Athalye
aa06a18cff Merge branch 'joshblum/streamline-readme' 2015-04-26 20:15:12 -04:00
Joshua Blum
4ed3ffc411 Reorganize README 2015-04-27 03:12:34 +03:00
Anish Athalye
3c60899895 Improve error message for malformed files
This patch makes Dotbot warn the user and gracefully exit when the
configuration file is not a list.
2015-04-26 19:46:14 -04:00
Anish Athalye
3a649c1112 Merge branch 'joshblum/config-logging' 2015-04-24 18:34:51 -04:00
Joshua Blum
56d8d05e77 Provide exception information when reading config 2015-04-24 18:33:13 -04:00
Anish Athalye
fd08ddacd3 Fix style
Fix formatting of keyword arguments according to PEP 8.
2015-04-24 18:26:20 -04:00
Anish Athalye
bdc1b2205f Add information about spacing and formatting 2015-03-26 22:41:49 -04:00
Anish Athalye
c4df1bf2a8 Update contributing guide
This change adds a section about working on open issues to encourage
contributors to work on those.
2015-03-22 17:30:19 -04:00
Anish Athalye
115210ab17 Add information about upgrading 2015-02-12 21:58:42 -05:00
Anish Athalye
c32b6f0b99 Fix typo 2015-02-12 21:41:39 -05:00
Anish Athalye
d50efe2746 Remove JSON configuration examples 2015-02-10 18:34:34 -05:00
Anish Athalye
d9f0cc045a Revert "Update README"
This reverts commit f7a291c780.
2015-02-05 12:02:02 -05:00
Anish Athalye
f7a291c780 Update README
Add note on array syntax for shell commands being deprecated.
2015-02-03 18:09:25 -05:00
Anish Athalye
38c0f65801 Add more options for shell commands
This commit introduces an extended configuration syntax for shell
commands. This syntax allows for specifying whether the stdin, stdout,
and stderr streams are enabled.
2015-02-03 11:53:05 -05:00
Anish Athalye
0b4b79e422 Allow nonexistent directories to be cleaned
Make nonexistent directories be skipped when cleaning.
2015-01-26 10:38:08 -05:00
Anish Athalye
69502854aa Fix compatibility
This commit fixes usage of the Singleton metaclass so that it is
compatible with both Python 2 and Python 3.
2015-01-26 10:36:36 -05:00
Anish Athalye
c638e25941 Clean up code
Fix typos and remove unused code.
2015-01-26 10:36:11 -05:00
Anish Athalye
2865477dca Update dates 2015-01-19 19:05:49 -05:00
Anish Athalye
68c6126f89 Update editorconfig
Trailing whitespace is significant in Markdown files.
2014-12-30 00:47:51 -05:00
Anish Athalye
1221ad0f9b Update README
Add a note about copying the install script and not using a symbolic
link.
2014-12-27 15:17:38 -05:00
Anish Athalye
2eb6353b16 Add information on contributing 2014-12-20 00:55:17 -05:00
Anish Athalye
dde4644ee2 Merge branch 'jaxxstorm/version' 2014-12-18 20:07:14 -05:00
lbriggs
285543ac6a Fix version check
The version checking code fails on Python 2.6 and earlier.
`sys.version_info` only became a named tuple in Python 2.7. The
recommended way to get the check to work in earlier versions of Python
is to access it as a regular tuple.
2014-12-18 20:05:03 -05:00
Anish Athalye
992ba4a2a9 Fix editorconfig
This project uses an indent of 4 spaces for Python code.
2014-12-01 21:12:08 -05:00
Anish Athalye
6d08479626 Add editorconfig 2014-11-20 15:22:49 -05:00
Anish Athalye
a55a179b71 Merge branch 'kstark/ignore-dirty-pyyaml' 2014-11-20 11:09:48 -05:00
Kyle
b41636246d Ignore dirty pyyaml submodule
When used, pyyaml generates *.pyc files, which will cause the submodule
to appear as dirty. This will bubble all the way up to any parent
repository that include Dotbot as a submodule. This change makes it so
that changes in the pyyaml repository do not cause the parent repository
to appear to have modified files.
2014-11-20 11:07:44 -05:00
Anish Athalye
bc43348f42 Fix bug with forced links not working in all cases
This commit fixes a bug where forced links did not work on certain types
of bad links. Until this fix, forced links only worked if the original
was a real file or directory. This commit fixes this, so that the forced
link option also works when the original is a broken or incorrect
symbolic link.
2014-11-09 09:08:13 -05:00
Anish Athalye
33d602bb93 Add YAML support
Add support for YAML format configuration files. In addition, this
commit adds instructions about YAML config files to the README, and it
also changes the README to encourage use of YAML instead of JSON.
2014-10-27 20:31:40 -04:00
Anish Athalye
afebc0bb2f Add functionality to create parent directories
This commit introduces an additional option for extended configuration
syntax for linking. It adds the "create" parameter which results in
automatically creating a parent directory if necessary before linking a
file.
2014-10-22 14:44:40 -04:00
Anish Athalye
13c925be87 Add functionality to forcibly link items
This commit introduces an extended configuration syntax for linking
files and directories. Currently, this syntax allows for specifying
items to be forcibly linked, overwriting existing files or directories
if necessary.

The extended configuration syntax was proposed by Travers McInerney
<travers@mcinerney.me>.
2014-10-22 14:42:23 -04:00
Anish Athalye
58e4fb50b1 Update README
Improve documentation with specification and an example for each type of
task.
2014-10-22 11:10:49 -04:00
Anish Athalye
1733b54c87 Fix whitespace error 2014-10-17 10:05:47 -04:00