-
Notifications
You must be signed in to change notification settings - Fork 6
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 #181 from phobson/2023-refresh
2024 refresh
- Loading branch information
Showing
160 changed files
with
748 additions
and
1,014 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 |
---|---|---|
@@ -1,13 +1,19 @@ | ||
name: black | ||
|
||
name: ruff 'n' stuff | ||
on: [pull_request] | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Black Code Formatter | ||
uses: lgeiger/[email protected] | ||
with: | ||
args: ". --check" | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
# Update output format to enable automatic inline annotations. | ||
- name: Run Ruff | ||
run: ruff check --output-format=github . |
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
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,29 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.2.0 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
language_version: python3 | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: | ||
- --py310-plus | ||
|
||
- repo: https://github.com/MarcoGorelli/absolufy-imports | ||
rev: v0.3.1 | ||
hooks: | ||
- id: absolufy-imports | ||
name: absolufy-imports |
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 |
---|---|---|
|
@@ -12,3 +12,6 @@ coverage | |
docopt | ||
requests | ||
pyyaml | ||
ruff | ||
pre-commit | ||
isort |
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,18 @@ | ||
line-length = 100 | ||
|
||
[lint] | ||
select = [ | ||
# pycodestyle | ||
"E", | ||
# Pyflakes | ||
"F", | ||
# pyupgrade | ||
"UP", | ||
## flake8-bugbear | ||
# "B", | ||
# flake8-simplify | ||
"SIM", | ||
] | ||
|
||
[format] | ||
indent-style = "space" |
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,20 +1,18 @@ | ||
[metadata] | ||
description-file = readme.rst | ||
|
||
[tool:pytest] | ||
pep8ignore = | ||
E501 | ||
E131 | ||
check_wqio.py ALL | ||
wqio/examples/* ALL | ||
wqio/tests/* E501 | ||
wqio/tests/test_features.py E241 | ||
wqio/tests/test_datacollections.py E241 | ||
wqio/tests/test_ros.py E241 | ||
docs/* ALL | ||
|
||
markers = | ||
mpl_image_compare | ||
|
||
[pep8] | ||
max-line-length = 100 | ||
|
||
[isort] | ||
profile=black | ||
src_paths=wqio | ||
# sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY"] | ||
# # profile = "black" | ||
# skip_gitignore = true | ||
# force_to_top = ["true"] | ||
# default_section = "THIRDPARTY" | ||
# known_firstparty = ["wqio"] |
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 . import bootstrap | ||
from .ros import ROS, cohn_numbers | ||
from .datasets import download | ||
from .features import Location, Dataset | ||
from .datacollections import DataCollection | ||
from .samples import CompositeSample, GrabSample, Parameter | ||
from .hydro import parse_storm_events, HydroRecord, Storm, DrainageArea | ||
from . import utils | ||
from .tests import test, teststrict | ||
from wqio import bootstrap # noqa | ||
from wqio import utils # noqa | ||
from wqio.datacollections import DataCollection # noqa | ||
from wqio.datasets import download # noqa | ||
from wqio.features import Dataset, Location # noqa | ||
from wqio.hydro import DrainageArea, HydroRecord, Storm, parse_storm_events # noqa | ||
from wqio.ros import ROS, cohn_numbers # noqa | ||
from wqio.samples import CompositeSample, GrabSample, Parameter # noqa | ||
from wqio.tests import test, teststrict # noqa |
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.