Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[flake8]
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
ignore =
# line break after operator
W504
# Max width of Github code review is 79 characters
max-line-length = 79
max-complexity = 18
per-file-ignores =
*/__init__.py: F401
exclude =
.git,
docs,
.idea,
.mypy_cache,
.pytest_cache,
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ repos:
rev: 7.1.1
hooks:
- id: flake8
args: ["--config=setup.cfg"]
args: ["--config=.flake8"]
additional_dependencies: [flake8-isort]

# Can run individually with `pre-commit run mypy --all-files`
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
args: ["--config=setup.cfg", "--show-error-codes"]
args: ["--config=pyproject.toml", "--show-error-codes"]
verbose: true
additional_dependencies: ['types-requests']

Expand Down
77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[project]
name = "polaris"
dynamic = ["version"]
authors = [
{ name="Xylar Asay-Davis", email="[email protected]" },
{ name="Althea Denlinger", email="[email protected]" }
]
description = "Testing and analysis for Omega, MPAS-Ocean, MALI and MPAS-Seaice"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
# these are only for searching/browsing projects on PyPI
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",

"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]

dependencies = [
"cartopy",
"cmocean",
"importlib_resources",
"ipython",
"jigsawpy",
"jupyter",
"lxml",
"matplotlib>=3.9.0",
"netcdf4",
"numpy>=2.0,<3.0",
"progressbar2",
"pyamg>=4.2.2",
"pyproj",
"ruamel.yaml",
"requests",
"scipy>=1.8.0",
"shapely>=2.0,<3.0",
"xarray",
]

[tool.isort]
multi_line_output = "3"
include_trailing_comma = true
force_grid_wrap = "0"
use_parentheses = true
line_length = "79"
skip = ["e3sm_diags/e3sm_diags_driver.py"]

[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true

[build-system]
requires = ["setuptools>=60"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
exclude = ["docs*", "conda*"]

[tool.setuptools.dynamic]
version = { attr = "polaris.version.__version__" }

# evolution of options.entry-points
[project.scripts]
polaris = "polaris.__main__:main"
mpas_to_yaml = "polaris.yaml:main_mpas_to_yaml"

[project.urls]
Documentation = "https://docs.e3sm.org/polaris"
"Bug Tracker" = "https://github.com/E3SM-Project/polaris/issues"
92 changes: 0 additions & 92 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

Loading