Skip to content

Commit

Permalink
ci: clean ubuntu and python versions (#1)
Browse files Browse the repository at this point in the history
* fix: ci

* ci: fix python version and add CODEOWNERS

* ci: remove mutmut

doesn't work with python later that 3.9

* build: update pyproject.toml

* build: pretty format poetry.lock

* build: change python version to 3.10

* chore: pretty format toml file

Co-authored-by: Megan Davidson <[email protected]>
  • Loading branch information
paulfouquet and MDavidson17 authored Jun 8, 2022
1 parent 41c6176 commit 75bae63
Show file tree
Hide file tree
Showing 7 changed files with 624 additions and 768 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @linz/li-topo-data-engineering
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,20 @@ on:

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
python: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python ${{ matrix.python }}
- name: Setup Python 3.10
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
python-version: "3.10"
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ matrix.os }}-pip-${{ secrets.CACHE_SEED }}-${{ matrix.python }}-${{ hashFiles('./poetry.lock') }}
restore-keys: ${{ matrix.os }}-pip-${{ secrets.CACHE_SEED }}-${{ matrix.python }}-
key: ubuntu-22.04-pip-${{ secrets.CACHE_SEED }}-3.10-${{ hashFiles('./poetry.lock') }}
restore-keys: ubuntu-22.04-pip-${{ secrets.CACHE_SEED }}-3.10-
- name: Install
run: |
python -m pip install --upgrade pip
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/mutation-testing.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
/html/
/htmlcov/
/.idea
/.mutmut-cache
/mutmut.xml
*.pyc
__pycache__
/.pytest_cache
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.6
3.10.4
1,317 changes: 602 additions & 715 deletions poetry.lock

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,32 @@ profile = "black"
[tool.mypy]
show_error_codes = true
strict = true
disable_error_code = [
"import",
]

[[tool.mypy.overrides]]
module = [
"linz_logger",
]
ignore_missing_imports = true

[tool.poetry]
name = "template-python-hello-world"
name = "imagery-scripts"
version = "0.1.0"
description = "A minimal template for Python development"
description = "A collection of scripts for processing imagery"
authors = [
"Ben Cheng <[email protected]>",
"Blayne Chard <[email protected]>",
"Daniel Silk <[email protected]>",
"Victor Engmark <[email protected]>",
"Paul Fouquet <[email protected]>",
"Alice Fage <[email protected]>",
"Megan Davidson <[email protected]>"

]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.6"
python = "^3.10"
typer = "*"

[tool.poetry.dev-dependencies]
Expand All @@ -49,7 +59,6 @@ coverage = "*"
gitlint = "*"
isort = "*"
language-formatters-pre-commit-hooks = "*"
mutmut = "*"
mypy = "*"
pre-commit = "*"
pylint = "*"
Expand Down

0 comments on commit 75bae63

Please sign in to comment.