-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a noxfile and removed lint (#83)
* add a noxfile * add a pre-commit config file * remove all the lint * update requirements; add requirements.py to extract requirements * update path to the docs * update readthedocs config file * move black workflow into lint workflow * add a workflow to test that the docs build * add session to build the languages and test them * add make and pip to the external requirements * remove old and deprecated wrap module * install pydocstyl[toml] * require coverage[toml] * simplify calls to subprocess.run using partial * fix typos * run tests with nox * add pytest-xdist as a requirement for testing * require setuptools < 60 for the build system * use python -m pip * clean up noxfile.py, parametrize python versions * specify the python version * use setup-python action * remove conda backend from regular tests * run the language tests in a separate step * use --python option * fix typos * ignore nox virtual envs in the .nox folder * print some debugging messages * run with --verbose * run setup.py build_ext * print more debugging messages * run the language tests with nox, not pytest * install tomli for ci tests * more debugging messages * limit to just c * forget linux for now * reinstall the compilers * install compilers before running nox * test on linux again; clean up the nox file * print the environment before compiling * disable linux again * install cmake along with compilers * try linux again * try an older version of gfortran * try to install gcc9 on linux * try gcc less than 10 * try installing older version of all the compilers * try native compilers on linux * install bmi-fortran along with the fortran compiler * try the new build of bmi-fortran * add towncrier as a dev requirement * add news fragments * auto-generate the api documentation * move the cli doc page out of the api docs * update extension settings in conf.py * move the tomli import * add a GitHub action to check for news fragments * update requirements file * remove the makefile * install cmake to build the examples
- Loading branch information
Showing
63 changed files
with
1,443 additions
and
1,078 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, unlabeled, opened, reopened, synchronize] | ||
|
||
jobs: | ||
check-changelog-entry: | ||
name: changelog entry | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# `towncrier check` runs `git diff --name-only origin/main...`, which | ||
# needs a non-shallow clone. | ||
fetch-depth: 0 | ||
|
||
- name: Check changelog | ||
if: "!contains(github.event.pull_request.labels.*.name, 'Skip Changelog')" | ||
run: | | ||
if ! pipx run towncrier check --compare-with origin/${{ github.base_ref }}; then | ||
echo "Please see https://landlab.readthedocs.io/en/master/development/contribution/index.html?highlight=towncrier#news-entries for guidance." | ||
false | ||
fi |
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 |
---|---|---|
|
@@ -99,3 +99,6 @@ ENV/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# nox virtual envs | ||
.nox/ |
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,84 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
name: black | ||
description: "Black: The uncompromising Python code formatter" | ||
entry: black | ||
language: python | ||
language_version: python3 | ||
minimum_pre_commit_version: 2.9.2 | ||
require_serial: true | ||
types_or: [python, pyi] | ||
exclude: ^babelizer/data | ||
- id: black-jupyter | ||
name: black-jupyter | ||
description: | ||
"Black: The uncompromising Python code formatter (with Jupyter Notebook support)" | ||
entry: black | ||
language: python | ||
minimum_pre_commit_version: 2.9.2 | ||
require_serial: true | ||
types_or: [python, pyi, jupyter] | ||
additional_dependencies: [".[jupyter]"] | ||
exclude: ^babelizer/data | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-comprehensions | ||
- flake8-simplify | ||
exclude: ^babelizer/data | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.34.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
exclude: ^babelizer/data | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
files: \.py$ | ||
exclude: ^babelizer/data | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-builtin-literals | ||
exclude: ^babelizer/data | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-toml | ||
exclude: ^babelizer/data | ||
- id: check-yaml | ||
exclude: ^babelizer/data | ||
- id: debug-statements | ||
exclude: ^babelizer/data | ||
- id: end-of-file-fixer | ||
- id: forbid-new-submodules | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/PyCQA/pydocstyle | ||
rev: 6.1.1 | ||
hooks: | ||
- id: pydocstyle | ||
files: babelizer/.*\.py$ | ||
args: | ||
- --convention=numpy | ||
- --add-select=D417 | ||
exclude: ^babelizer/data | ||
additional_dependencies: [".[toml]"] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.982 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [types-all] | ||
exclude: ^babelizer/data |
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
Oops, something went wrong.