Skip to content

Commit

Permalink
Merge pull request #184 from jacebrowning/update-default-branch
Browse files Browse the repository at this point in the history
Use 'main' as the default branch
  • Loading branch information
jacebrowning committed Jul 24, 2020
2 parents 40c6db1 + c0aa51d commit b8ed777
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Datafiles is a bidirectional serialization library for Python [dataclasses](https://docs.python.org/3/library/dataclasses.html) to synchronize objects to the filesystem using type annotations. It supports a variety of file formats with round-trip preservation of formatting and comments, where possible. Object changes are automatically saved to disk and only include the minimum data needed to restore each object.

[![Travis CI](https://img.shields.io/travis/jacebrowning/datafiles/develop.svg?label=unix)](https://travis-ci.org/jacebrowning/datafiles)
[![AppVeyor](https://img.shields.io/appveyor/ci/jacebrowning/datafiles/develop.svg?label=windows)](https://ci.appveyor.com/project/jacebrowning/datafiles)
[![Travis CI](https://img.shields.io/travis/jacebrowning/datafiles/main.svg?label=unix)](https://travis-ci.org/jacebrowning/datafiles)
[![AppVeyor](https://img.shields.io/appveyor/ci/jacebrowning/datafiles/main.svg?label=windows)](https://ci.appveyor.com/project/jacebrowning/datafiles)
[![Coveralls](https://img.shields.io/coveralls/jacebrowning/datafiles.svg)](https://coveralls.io/r/jacebrowning/datafiles)
[![PyPI License](https://img.shields.io/pypi/l/datafiles.svg)](https://pypi.org/project/datafiles)
[![PyPI Version](https://img.shields.io/pypi/v/datafiles.svg)](https://pypi.org/project/datafiles)
Expand Down
2 changes: 1 addition & 1 deletion bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CONFIG = {
"email": "jacebrowning@gmail.com",
"github_username": "jacebrowning",
"github_repo": "datafiles",
"default_branch": "develop",
"default_branch": "main",
"project_name": "datafiles",
"package_name": "datafiles",
"project_short_description": "File-based ORM for dataclasses.",
Expand Down
2 changes: 1 addition & 1 deletion docs/api/manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MyModel:
my_value: int = 0
```

Many of the following examples are also shown in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/manager_api.ipynb).
Many of the following examples are also shown in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/manager_api.ipynb).

# `get()`

Expand Down
2 changes: 1 addition & 1 deletion docs/api/mapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MyModel:
>>> model = MyModel('foo')
```

Many of the following examples are also shown in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/mapper_api.ipynb).
Many of the following examples are also shown in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/mapper_api.ipynb).

# `path`

Expand Down
6 changes: 3 additions & 3 deletions docs/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ my_int: 42
my_str: Hello, world!
```

Where possible, comments and whitespace are preserved in files as shown in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/roundtrip_comments.ipynb).
Where possible, comments and whitespace are preserved in files as shown in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/roundtrip_comments.ipynb).

## JSON

Expand Down Expand Up @@ -56,7 +56,7 @@ Sample output:
}
```

Additional examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/format_options.ipynb).
Additional examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/format_options.ipynb).

## TOML

Expand All @@ -83,7 +83,7 @@ value = 2
value = 0
```

Additional examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/format_options.ipynb).
Additional examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/format_options.ipynb).

## Custom Formats

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ plugins = datafiles.plugins:mypy

- [Source code](https://github.com/jacebrowning/datafiles)
- [Issue tracker](https://github.com/jacebrowning/datafiles/issues)
- [Release history](https://github.com/jacebrowning/datafiles/blob/develop/CHANGELOG.md)
- [Release history](https://github.com/jacebrowning/datafiles/blob/main/CHANGELOG.md)
4 changes: 2 additions & 2 deletions docs/types/containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ from typing import List, Optional
| `foobar: List[int]` | `foobar = None` | `foobar:`<br>&nbsp;&nbsp;&nbsp;&nbsp;`-` |
| `foobar: Optional[List[int]]` | `foobar = None` | `foobar:` |

More examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/patched_containers.ipynb).
More examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/patched_containers.ipynb).

## Dictionaries

Expand Down Expand Up @@ -82,4 +82,4 @@ class Nested:
qux: str
```

More examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/nested_dataclass.ipynb).
More examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/nested_dataclass.ipynb).
2 changes: 1 addition & 1 deletion docs/utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ numbers:
- 3
```

Additional examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/develop/notebooks/file_inference.ipynb).
Additional examples can be found in this [Jupyter Notebook](https://github.com/jacebrowning/datafiles/blob/main/notebooks/file_inference.ipynb).
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ site_description: A file-based ORM for dataclasses.
site_author: Jace Browning

repo_url: https://github.com/jacebrowning/datafiles
edit_uri: https://github.com/jacebrowning/datafiles/edit/develop/docs
edit_uri: https://github.com/jacebrowning/datafiles/edit/main/docs

theme: readthedocs

Expand Down

0 comments on commit b8ed777

Please sign in to comment.