Skip to content

Commit

Permalink
Merge pull request #23 from philvarner/pv/build-maintenance
Browse files Browse the repository at this point in the history
add 3.11 and 3.12, switch lint/format stack, add pre-commit, loosen dev tools version constraints
  • Loading branch information
matthewhanson committed Mar 7, 2024
2 parents 8e818a6 + c1872e3 commit 182dd47
Show file tree
Hide file tree
Showing 19 changed files with 496 additions and 429 deletions.
17 changes: 0 additions & 17 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3

Expand Down
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Configuration file for pre-commit (https://pre-commit.com/).
# Please run `pre-commit run --all-files` when adding or changing entries.

repos:
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [--ignore-words=.codespellignore]
types_or: [jupyter, markdown, python, shell]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
- id: mypy
# TODO lint test and scripts too
files: "^src/.*\\.py$"
args:
- --namespace-packages
- --ignore-missing-imports
- --explicit-package-bases
additional_dependencies:
- click != 8.1.0
- numpy
- pyproj
- pystac
- types-requests
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: ruff
Loading

0 comments on commit 182dd47

Please sign in to comment.