-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from tchoedak/master
add black format checking to travis
- Loading branch information
Showing
15 changed files
with
212 additions
and
87 deletions.
There are no files selected for viewing
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,9 +1,11 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.6" | ||
install: | ||
- pip install -r requirements.txt | ||
- pip install document-your-code | ||
# command to run tests | ||
script: | ||
- pytest | ||
- pytest | ||
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pip install black; black --check --diff --skip-string-normalization .; fi |
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
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,11 +1,35 @@ | ||
""" | ||
All exception classes are defined here | ||
""" | ||
class DYCError(Exception): pass | ||
class SetupError(DYCError): pass | ||
class UndefinedPattern(DYCError): pass | ||
class ConfigurationMissing(Exception): pass | ||
class FormattingConfigurationHandler(ConfigurationMissing): pass | ||
class QuitConfirmEditor(DYCError): pass | ||
class DYCConfigurationSetup(DYCError): pass | ||
class OverrideConfigurations(DYCError): pass | ||
|
||
|
||
class DYCError(Exception): | ||
pass | ||
|
||
|
||
class SetupError(DYCError): | ||
pass | ||
|
||
|
||
class UndefinedPattern(DYCError): | ||
pass | ||
|
||
|
||
class ConfigurationMissing(Exception): | ||
pass | ||
|
||
|
||
class FormattingConfigurationHandler(ConfigurationMissing): | ||
pass | ||
|
||
|
||
class QuitConfirmEditor(DYCError): | ||
pass | ||
|
||
|
||
class DYCConfigurationSetup(DYCError): | ||
pass | ||
|
||
|
||
class OverrideConfigurations(DYCError): | ||
pass |
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,3 +1,3 @@ | ||
""" | ||
""" | ||
""" |
Oops, something went wrong.