-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp CI #102
Draft
andersy005
wants to merge
5
commits into
main
Choose a base branch
from
revamp-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Revamp CI #102
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c68c626
Update dependabot schedule to monthly
andersy005 cfa8ec8
Update pre-commit hooks
andersy005 db108c6
Update pre-commit hooks
andersy005 a7d9805
Update pre-commit hooks
andersy005 367cb29
Merge branch 'main' into revamp-ci
jhamman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,69 @@ | ||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py39'] | ||
skip-string-normalization = true | ||
|
||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=61", | ||
"setuptools-scm" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[project] | ||
name = "xarray-schema" | ||
description = "Schema validation for Xarray objects" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
authors = [{name = "Xarray-schema Developers", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"xarray>=0.16" | ||
] | ||
[project.optional-dependencies] | ||
|
||
dev = [ | ||
"jsonschema", | ||
"pytest", | ||
"pytest-cov", | ||
"mypy==0.982", | ||
"types-jsonschema", | ||
"types-setuptools==65.5.0.3" | ||
] | ||
[project.urls] | ||
documentation = "https://xarray-schema.readthedocs.io/" | ||
repository = "https://github.com/xarray-contrib/xarray-schema" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["xarray_schema*"] | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "post-release" | ||
local_scheme = "dirty-tag" | ||
fallback_version = "999" | ||
|
||
|
||
[tool.pytest.ini_options] | ||
log_cli = true | ||
log_level = "INFO" | ||
|
||
[tool.mypy] | ||
allow_redefinition = true | ||
exclude = "properties|asv_bench|doc|tests|flycheck" | ||
files = "xarray_schema/*.py" | ||
show_error_codes = true |
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 was deleted.
Oops, something went wrong.
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 | ||||
---|---|---|---|---|---|---|
|
@@ -17,9 +17,9 @@ | |||||
|
||||||
# -- Project information ----------------------------------------------------- | ||||||
|
||||||
project = 'xarray-schema' | ||||||
copyright = '2022, CarbonPlan' | ||||||
author = 'CarbonPlan' | ||||||
project = "xarray-schema" | ||||||
copyright = "2022, CarbonPlan" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
author = "CarbonPlan" | ||||||
|
||||||
|
||||||
# -- General configuration --------------------------------------------------- | ||||||
|
@@ -28,35 +28,35 @@ | |||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||||||
# ones. | ||||||
extensions = [ | ||||||
'sphinx_rtd_theme', | ||||||
'sphinx.ext.autosummary', | ||||||
'sphinx.ext.autodoc', | ||||||
'sphinx.ext.napoleon', | ||||||
'sphinx_autodoc_typehints', | ||||||
'IPython.sphinxext.ipython_directive', | ||||||
'IPython.sphinxext.ipython_console_highlighting', | ||||||
'nbsphinx', | ||||||
"sphinx_rtd_theme", | ||||||
"sphinx.ext.autosummary", | ||||||
"sphinx.ext.autodoc", | ||||||
"sphinx.ext.napoleon", | ||||||
"sphinx_autodoc_typehints", | ||||||
"IPython.sphinxext.ipython_directive", | ||||||
"IPython.sphinxext.ipython_console_highlighting", | ||||||
"nbsphinx", | ||||||
] | ||||||
|
||||||
# Add any paths that contain templates here, relative to this directory. | ||||||
templates_path = ['_templates'] | ||||||
templates_path = ["_templates"] | ||||||
|
||||||
# List of patterns, relative to source directory, that match files and | ||||||
# directories to ignore when looking for source files. | ||||||
# This pattern also affects html_static_path and html_extra_path. | ||||||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | ||||||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||||||
|
||||||
|
||||||
# -- Options for HTML output ------------------------------------------------- | ||||||
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||||||
# a list of builtin themes. | ||||||
# | ||||||
html_theme = 'sphinx_rtd_theme' | ||||||
html_theme = "sphinx_rtd_theme" | ||||||
|
||||||
# Add any paths that contain custom static files (such as style sheets) here, | ||||||
# relative to this directory. They are copied after the builtin static files, | ||||||
# so a file named "default.css" will overwrite the builtin "default.css". | ||||||
# html_static_path = ['_static'] | ||||||
|
||||||
autodoc_default_options = {'exclude-members': '__init__'} | ||||||
autodoc_default_options = {"exclude-members": "__init__"} |
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,49 +1,4 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
|
||
"""The setup script.""" | ||
|
||
from os.path import exists | ||
|
||
from setuptools import find_packages, setup | ||
|
||
with open('requirements.txt') as f: | ||
install_requires = f.read().strip().split('\n') | ||
|
||
if exists('README.md'): | ||
with open('README.md') as f: | ||
long_description = f.read() | ||
else: | ||
long_description = '' | ||
|
||
CLASSIFIERS = [ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Intended Audience :: Science/Research', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Topic :: Scientific/Engineering', | ||
] | ||
|
||
setup( | ||
name='xarray-schema', | ||
description='Schema validation for Xarray objects', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
python_requires='>=3.8', | ||
maintainer='Joe Hamman', | ||
maintainer_email='[email protected]', | ||
classifiers=CLASSIFIERS, | ||
url='https://github.com/xarray-contrib/xarray-schema', | ||
packages=find_packages(exclude=('tests',)), | ||
package_dir={'xarray_schema': 'xarray_schema'}, | ||
include_package_data=True, | ||
install_requires=install_requires, | ||
license='MIT', | ||
zip_safe=False, | ||
keywords=['xarray', 'schema'], | ||
use_scm_version={'version_scheme': 'post-release', 'local_scheme': 'dirty-tag'}, | ||
setup_requires=['setuptools_scm', 'setuptools>=30.3.0'], | ||
) | ||
setup(use_scm_version={"fallback_version": "999"}) |
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,9 @@ | ||
from invoke import task # pragma: no cover | ||
|
||
SRC_DIR = 'xarray_schema' # pragma: no cover | ||
TEST_DIR = 'tests' # pragma: no cover | ||
SRC_DIR = "xarray_schema" # pragma: no cover | ||
TEST_DIR = "tests" # pragma: no cover | ||
|
||
|
||
@task # pragma: no cover | ||
def mypy(c): # pragma: no cover | ||
c.run(f'mypy {SRC_DIR} {TEST_DIR}') # pragma: no cover | ||
c.run(f"mypy {SRC_DIR} {TEST_DIR}") # pragma: no cover |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's drop 3.8 as part of this PR