This repository has been archived by the owner on Jul 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Flake8 additions. * Added py-test black to conda requirements. * Travis pytest --black. * README black badge. * Black config file. * Appeasing black. * Added pre-commit. * Pre commit revision numbers. * Get up to date pytest-black from pip. * Corrected pytest requirements. * Pinned black to 19.10b0 . * Removed use of pytest-black in favour of native black. * Corrected Travis black lines. * Corrected Travis black lines. * Fresh declaration of INSTALL_DIR in Travis script section. * Trying explicit directory specification for Travis. * Exclude installed iris files from black check. * Blackify __init__.
- Loading branch information
1 parent
1e2eadb
commit 7d812b9
Showing
8 changed files
with
48 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v3.2.0' | ||
hooks: | ||
# Prevent giant files from being committed. | ||
- id: check-added-large-files | ||
# Check for files that contain merge conflict strings. | ||
- id: check-merge-conflict | ||
# Check for debugger imports and py37+ `breakpoint()` calls in python source. | ||
- id: debug-statements | ||
# Don't commit to master branch. | ||
- id: no-commit-to-branch | ||
- repo: https://github.com/psf/black | ||
rev: '19.10b0' | ||
hooks: | ||
- id: black | ||
# Force black to run on whole repo, using settings from pyproject.toml | ||
pass_filenames: false | ||
args: [--config=./pyproject.toml, .] | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: '3.8.3' | ||
hooks: | ||
# Run flake8. | ||
- id: flake8 | ||
args: [--config=./.flake8] |
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,2 +1,9 @@ | ||
<p align="center"> | ||
<!-- https://shields.io/ is a good source of these --> | ||
<a href="https://github.com/psf/black"> | ||
<img src="https://img.shields.io/badge/code%20style-black-000000.svg" | ||
alt="black" /></a> | ||
</p> | ||
|
||
# iris-ugrid | ||
Unstructured mesh library for Iris |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool.black] | ||
line-length = 79 |
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,2 +1,3 @@ | ||
black=19.10b0 | ||
gridded | ||
pytest |