Skip to content

Commit 47549f9

Browse files
committed
[README.md] badge update, fmt
1 parent f0ed805 commit 47549f9

File tree

1 file changed

+24
-33
lines changed

1 file changed

+24
-33
lines changed

README.md

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<img src ="https://raw.githubusercontent.com/source-foundry/ufolint/images/images/title-header-crunch.png" />
22

3-
[![PyPI](https://img.shields.io/pypi/v/ufolint.svg)](https://pypi.org/project/ufolint)
3+
[![PyPI](https://img.shields.io/pypi/v/ufolint?color=blueviolet&label=PyPI&logo=python&logoColor=white)](https://pypi.org/project/ufolint)
44
[![Build Status](https://travis-ci.org/source-foundry/ufolint.svg?branch=master)](https://travis-ci.org/source-foundry/ufolint)
5-
[![Build status](https://ci.appveyor.com/api/projects/status/lsuj8p7myp6mdo2e/branch/master?svg=true)](https://ci.appveyor.com/project/chrissimpkins/ufolint/branch/master)
5+
[![Build status](https://ci.appveyor.com/api/projects/status/lsuj8p7myp6mdo2e/branch/master?svg=true)](https://ci.appveyor.com/project/chrissimpkins/ufolint/branch/master)
66
[![codecov](https://codecov.io/gh/source-foundry/ufolint/branch/master/graph/badge.svg)](https://codecov.io/gh/source-foundry/ufolint)
77
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/53663b1c61874ebb8b3022ee9945f5c8)](https://app.codacy.com/app/SourceFoundry/ufolint)
88

9-
ufolint is a source file linter for typeface development in [Unified Font Object](http://unifiedfontobject.org/) (UFO) source code. It was designed for continuous integration testing of UFO source contributions to typeface projects.
9+
ufolint is a source file linter for typeface development in [Unified Font Object](http://unifiedfontobject.org/) (UFO) source code. It was designed for continuous integration testing of UFO source contributions to typeface projects.
1010

1111
<p align="center">
1212
<img src="https://raw.githubusercontent.com/source-foundry/ufolint/images/images/ufolint_example.gif"/>
@@ -16,31 +16,28 @@ ufolint is a source file linter for typeface development in [Unified Font Object
1616
<img src ="https://raw.githubusercontent.com/source-foundry/ufolint/images/images/ufolint_travis_example-crunch.png" />
1717
</p>
1818

19-
2019
The application performs a UFO version specific static analysis of the source text files against the [UFO v2 and v3 specifications](http://unifiedfontobject.org/) for issues that include:
2120

22-
- supported UFO version
23-
- mandatory files and directories
24-
- mandatory file path naming conventions
25-
- source defined file path and directory path consistency across source files
26-
- valid XML file format
27-
- *.plist file property list value checks
28-
- *.plist file property list value type checks
29-
- fontinfo.plist OpenType property naming conventions
30-
- fontinfo.plist OpenType property data validations
31-
- *.glif file format version testing
32-
- *.glif file outline, attribute, anchor, guideline, image, note validations
33-
- images follow UFO v3+ png specification
34-
- source files import into ufoLib library with ufoLib public methods
35-
36-
These tests are performed through a combination of public methods in the [fontTools.ufoLib library](https://github.com/fonttools/fonttools/tree/master/Lib/fontTools/ufoLib) and additional tests that are implemented in the ufolint application. ufolint catches exceptions raised in the ufoLib public read methods for all *.plist file types and all ufoLib validations performed on *.glif files. These are returned to users with informative error messages that indicate the filepath(s) of concern and exit status code 1.
37-
21+
- supported UFO version
22+
- mandatory files and directories
23+
- mandatory file path naming conventions
24+
- source defined file path and directory path consistency across source files
25+
- valid XML file format
26+
- \*.plist file property list value checks
27+
- \*.plist file property list value type checks
28+
- fontinfo.plist OpenType property naming conventions
29+
- fontinfo.plist OpenType property data validations
30+
- \*.glif file format version testing
31+
- \*.glif file outline, attribute, anchor, guideline, image, note validations
32+
- images follow UFO v3+ png specification
33+
- source files import into ufoLib library with ufoLib public methods
34+
35+
These tests are performed through a combination of public methods in the [fontTools.ufoLib library](https://github.com/fonttools/fonttools/tree/master/Lib/fontTools/ufoLib) and additional tests that are implemented in the ufolint application. ufolint catches exceptions raised in the ufoLib public read methods for all _.plist file types and all ufoLib validations performed on _.glif files. These are returned to users with informative error messages that indicate the filepath(s) of concern and exit status code 1.
3836

3937
# Install and Upgrade
4038

4139
ufolint can be run locally or with remote CI testing services.
4240

43-
4441
## Local Install and Upgrade
4542

4643
Use the command:
@@ -55,10 +52,9 @@ Upgrade to a new version of the application with the command:
5552
$ pip install --upgrade ufolint
5653
```
5754

58-
5955
## Local Usage
6056

61-
The process is fully automated. Simply point ufolint to one or more UFO source directories and it takes care of the rest. ufolint exits with status code 0 if all tests pass and exits with status code 1 if any tests fail.
57+
The process is fully automated. Simply point ufolint to one or more UFO source directories and it takes care of the rest. ufolint exits with status code 0 if all tests pass and exits with status code 1 if any tests fail.
6258

6359
```
6460
$ ufolint [UFO source path] ([UFO path 2] [UFO path3]...)
@@ -70,19 +66,18 @@ $ ufolint [UFO source path] ([UFO path 2] [UFO path3]...)
7066
$ ufolint Awesome-Regular.ufo Awesome-Bold.ufo
7167
```
7268

73-
For critical failures that prevent the completion of further testing, ufolint exits immediately and other tests are aborted. In all other circumstances, failures are collected across the entire analysis and displayed at the completion of all tests.
69+
For critical failures that prevent the completion of further testing, ufolint exits immediately and other tests are aborted. In all other circumstances, failures are collected across the entire analysis and displayed at the completion of all tests.
7470

7571
ufolint provides verbose, useful error messages that include the file(s) of concern, the error type, and in many cases, the problematic line in the file.
7672

77-
7873
## Travis CI Setup
7974

8075
To continuously test your UFO source changes on [Travis](https://travis-ci.org) with each commit pushed or pull request submitted to your Github repository, use these initial two steps from the [Travis Getting Started Guide](https://docs.travis-ci.com/user/getting-started/):
8176

8277
- **Step 1**: [Sign in to Travis](https://travis-ci.org/auth) with your Github account
8378
- **Step 2**: Go to your [Travis Profile page](https://travis-ci.org/profile) and enable Travis for the typeface repository where you would like to enable ufolint testing
8479

85-
Then in your Github repository,
80+
Then in your Github repository,
8681

8782
- **Step 3**: Add a file on the path `.travis.yml` in the root of your Github repository that includes the following text:
8883

@@ -106,30 +101,26 @@ notifications:
106101
email: false
107102
```
108103
109-
- **Step 4**: Replace the `VARIANT=src/Test-*.ufo` lines in the `.travis.yml` file with the actual paths to your UFO source files after the `=` character. Use one line per variant and add or subtract lines as necessary to test the desired source UFO directories in the repository. These should be relative paths from the root of your git repository.
110-
111-
This Travis setting structure performs the variant tests in parallel for each of the variants specified under the `env` field of the Travis settings file. Each variant will be labeled on the Travis testing page like this:
104+
- **Step 4**: Replace the `VARIANT=src/Test-*.ufo` lines in the `.travis.yml` file with the actual paths to your UFO source files after the `=` character. Use one line per variant and add or subtract lines as necessary to test the desired source UFO directories in the repository. These should be relative paths from the root of your git repository.
112105

106+
This Travis setting structure performs the variant tests in parallel for each of the variants specified under the `env` field of the Travis settings file. Each variant will be labeled on the Travis testing page like this:
113107

114108
<p align="center">
115109
<img src ="https://raw.githubusercontent.com/source-foundry/ufolint/images/images/parallel_ufolint_jobs-crunch.png" />
116110
</p>
117111

118-
119-
- **Step 5**: With each new commit pushed to your Github repository (or any new pull request submitted by others) Travis is automatically notified and performs the ufolint tests on the modified (or proposed modifications for pull requests) UFO source. You can view the test results on your Travis account page for the repository.
112+
- **Step 5**: With each new commit pushed to your Github repository (or any new pull request submitted by others) Travis is automatically notified and performs the ufolint tests on the modified (or proposed modifications for pull requests) UFO source. You can view the test results on your Travis account page for the repository.
120113

121114
- **Optional**: To add a Travis test result badge to your repository README page, insert the following Markdown in your README page and modify `[ACCOUNT]` and `[REPOSITORY]` with your Travis account and repository details:
122115

123116
```
124117
[![Build Status](https://travis-ci.org/[ACCOUNT]/[REPOSITORY].svg?branch=master)](https://travis-ci.org/[ACCOUNT]/[REPOSITORY])
125118
```
126119
127-
128120
## Acknowledgments
129121
130122
Built with the fantastic [fontTools ufoLib library](https://github.com/fonttools/fonttools) where a majority of the UFO validation work has been performed!
131123
132-
133124
## License
134125
135126
[MIT License](https://github.com/source-foundry/ufolint/blob/master/docs/LICENSE)

0 commit comments

Comments
 (0)