-
Notifications
You must be signed in to change notification settings - Fork 1
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 #3 from DWesl/add-pre-commit-hooks
Add pre-commit hooks
- Loading branch information
Showing
14 changed files
with
119 additions
and
40 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,14 @@ | ||
*.py text diff=python | ||
requirements*.txt text | ||
|
||
*.cfg text | ||
*.ini text | ||
*.toml text | ||
*.yaml text | ||
|
||
/.flake8 text | ||
|
||
*.rst text | ||
|
||
/MANIFEST.in text | ||
/VERSION text |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ ECMWF | |
GFS | ||
NAM | ||
NAVGEM | ||
RAP | ||
RAP |
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,44 @@ | ||
# 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: v4.0.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: fix-encoding-pragma | ||
- id: check-merge-conflict | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.8.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 21.5b1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: ['flake8-docstrings', 'flake8-rst-docstrings', 'pep8-naming', 'flake8-print'] | ||
- repo: https://github.com/PyCQA/pydocstyle | ||
rev: 6.1.1 | ||
hooks: | ||
- id: pydocstyle | ||
additional_dependencies: ['toml'] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.812 | ||
hooks: | ||
- id: mypy | ||
- repo: https://github.com/PyCQA/pylint | ||
rev: v2.8.2 | ||
hooks: | ||
- id: pylint | ||
additional_dependencies: ['python-dateutil'] | ||
args: ['--disable=E0401,import-error', '--allow-any-import-level=eccodes'] | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v1.17.0 | ||
hooks: | ||
- id: setup-cfg-fmt |
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 +1 @@ | ||
include requirements*.txt | ||
include requirements*.txt |
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 +1 @@ | ||
0.0.0.dev0 | ||
0.0.0.dev0 |
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,3 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=30.3.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
build-backend = "setuptools.build_meta" |
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,46 +1,47 @@ | ||
[metadata] | ||
name=weather-data-downloader | ||
version=file:VERSION | ||
description=Download NWP model data | ||
long_description=file:README.rst | ||
long_description_content_type=text/x-rst | ||
platform=any | ||
author=DWesl | ||
author_email=https://github.com/DWesl/weather-data-downloader/issues | ||
url=https://github.com/DWesl/weather-data-downloader | ||
classifiers= | ||
name = weather_data_downloader | ||
version = file:VERSION | ||
description = Download NWP model data | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://github.com/DWesl/weather-data-downloader | ||
author = DWesl | ||
author_email = https://github.com/DWesl/weather-data-downloader/issues | ||
classifiers = | ||
Development Status :: 1 - Development | ||
Intended Audience :: Developers | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Operating System :: OS Independent | ||
zip-safe=True | ||
platform = any | ||
zip_safe = True | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
cmdline_provenance | ||
dataclasses; python_version < "3.7" | ||
importlib_metadata; python_version < "3.8" | ||
metpy | ||
numpy | ||
python-dateutil | ||
siphon | ||
xarray | ||
package_dir= | ||
dataclasses;python_version < "3.7" | ||
importlib_metadata;python_version < "3.8" | ||
python_requires = >=3.6.*, <4.* | ||
package_dir = | ||
=src | ||
packages=find: | ||
python_requires= >=3.6.*, <4.* | ||
|
||
[options.packages.find] | ||
where = src | ||
|
||
[options.entry_points] | ||
console_scripts= | ||
console_scripts = | ||
download-nwp-model-data=download_nwp_model_output.__main__:main | ||
|
||
[options.extras_require] | ||
ecmwf=eccodes | ||
|
||
[options.packages.find] | ||
where=src | ||
ecmwf = | ||
eccodes | ||
|
||
[sdist] | ||
formats=bztar,zip,gztar,xztar | ||
formats = bztar,zip,gztar,xztar |
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,5 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Stub to allow old tools to work.""" | ||
from setuptools import setup | ||
|
||
setup() |
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