Skip to content

Commit

Permalink
Merge pull request #342 from mfisher87/pyproject-toml-migration
Browse files Browse the repository at this point in the history
Migrate tool configs to pyproject.toml, configure pre-commit.ci
  • Loading branch information
mfisher87 authored Nov 9, 2023
2 parents e9c68ed + c64b1d6 commit 54399ff
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 25 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ name: Unit Tests

on:
push:
paths:
- earthaccess/**
- tests/**
pull_request:
paths:
- earthaccess/**
- tests/**
types: [opened, synchronize]

jobs:
Expand Down
27 changes: 16 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
ci:
autoupdate_schedule: "monthly" # Like dependabot
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
5 changes: 0 additions & 5 deletions mypy.ini

This file was deleted.

15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"


[tool.pytest]
filterwarnings = ["error::UserWarning"]


[tool.mypy]
disallow_untyped_defs = false
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = [
"tests.*",
]
ignore_errors = true


[tool.bumpversion]
current_version = "0.7.1"
commit = false
Expand Down
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

0 comments on commit 54399ff

Please sign in to comment.