-
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.
clean up code base, add pre-commit, add dependencies
- Loading branch information
1 parent
8b83178
commit e228211
Showing
8 changed files
with
144 additions
and
121 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
default_language_version: | ||
python: python3 | ||
|
||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.10.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [ '--py39-plus' ] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: mixed-line-ending | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
args: ["--target-version", "py39"] | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
args: ['--ignore=E501'] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ['--profile', 'black'] | ||
#- repo: https://github.com/pycqa/pydocstyle | ||
# rev: 6.1.1 | ||
# hooks: | ||
# - id: pydocstyle | ||
# args: ["--convention=numpy"] | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes | ||
|
||
ci: | ||
autofix_commit_msg: | | ||
[pre-commit.ci] auto fixes from pre-commit.com hooks | ||
for more information, see https://pre-commit.ci | ||
autofix_prs: true | ||
autoupdate_branch: '' | ||
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' | ||
autoupdate_schedule: weekly | ||
skip: [ ] | ||
submodules: false |
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 +1,2 @@ | ||
|
||
setuptools>=68.0.0 | ||
xarray>=2023.3.1 |
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,2 @@ | ||
pytest | ||
pytest>=7.0.0 | ||
# clisops>0.8.0 # incl regridding / Grid functionalities | ||
|
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,17 +1,14 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
"""The setup script.""" | ||
|
||
__author__ = "Ag Stephens" | ||
__contact__ = "[email protected]" | ||
__copyright__ = "Copyright 2018 United Kingdom Research and Innovation" | ||
__license__ = "BSD - see LICENSE file in top-level package directory" | ||
__version__ = "0.1.0" | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
import os | ||
|
||
from setuptools import find_packages, setup | ||
|
||
# One strategy for storing the overall version is to put it in the top-level | ||
# package's __init__ but Nb. __init__.py files are not needed to declare | ||
# packages in Python 3 | ||
|
@@ -38,42 +35,29 @@ | |
# https://www.python.org/dev/peps/pep-0301/#distutils-trove-classification | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: End Users/Desktop", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Topic :: Security", | ||
"Topic :: Internet", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: System :: Distributed Computing", | ||
"Topic :: System :: Systems Administration :: Authentication/Directory", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
description="Grid definitions for the roocs regridder", | ||
license=__license__, | ||
# This qualifier can be used to selectively exclude Python versions - | ||
# in this case early Python 2 and 3 releases | ||
python_requires=">=3.6.0", | ||
license_files=["LICENSE"], | ||
python_requires=">=3.9.0", | ||
install_requires=requirements, | ||
long_description=_long_description, | ||
long_description_content_type="text/x-rst", | ||
include_package_data=True, | ||
keywords="roocs_grids, regrid, grid, interpolate, cmip", | ||
name="roocs_grids", | ||
packages=find_packages( | ||
include=["roocs_grids"] | ||
), | ||
packages=find_packages(include=["roocs_grids"]), | ||
setup_requires=setup_requirements, | ||
test_suite="tests", | ||
tests_require=test_requirements, | ||
|
Oops, something went wrong.