Skip to content

Commit dbfe3a6

Browse files
authored
Update packaging (#10)
* Update packaging. * Ruff ruff. * Move test folder. * Update uv.lock * Fix? * Fix? * Add codespell and ruff stuff. * Update pyproject.toml * Add ignore words list. * Minor change.
1 parent bd48682 commit dbfe3a6

105 files changed

Lines changed: 3392 additions & 1340 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ workflows:
9292
branches:
9393
ignore:
9494
- /docs?\/.*/
95-
- /tests?\/.*/
95+
- /test?\/.*/
9696
tags:
9797
only: /.*/
9898

@@ -104,6 +104,6 @@ workflows:
104104
branches:
105105
ignore:
106106
- /docs?\/.*/
107-
- /tests?\/.*/
107+
- /test?\/.*/
108108
tags:
109109
only: /.*/

.codecov.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
status:
7+
project:
8+
default:
9+
target: 0
10+
threshold: 0
11+
patch:
12+
default:
13+
target: 0
14+
threshold: 0
15+
16+
ignore:
17+
- "test/"

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
labels: ["maintenance", "ignore-for-release"]
6+
schedule:
7+
interval: "weekly"
8+
cooldown:
9+
default-days: 7
10+
- package-ecosystem: uv
11+
directory: "/"
12+
labels: ["maintenance", "ignore-for-release"]
13+
schedule:
14+
interval: weekly
15+
cooldown:
16+
default-days: 7

.github/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: Breaking Changes
7+
labels:
8+
- breaking-change
9+
- title: New Features
10+
labels:
11+
- enhancement
12+
- title: Deprecations
13+
labels:
14+
- deprecation
15+
- title: Bug Fixes
16+
labels:
17+
- bug
18+
- title: Other Changes
19+
labels:
20+
- "*"

.github/workflows/ci.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Contribution checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
style:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v6
27+
- run: pipx run ruff check .
28+
- run: pipx run ruff format --diff .
29+
30+
codespell:
31+
name: Check for spelling errors
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v6
37+
- name: Codespell
38+
uses: codespell-project/actions-codespell@v2

.github/workflows/tox.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Tox
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
pull_request:
8+
branches:
9+
- main
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
env:
16+
FORCE_COLOR: true
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
test:
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
os: ["ubuntu-latest"]
32+
python-version: ["3.11", "3.12", "3.13"]
33+
dependencies: ["latest"]
34+
include:
35+
- os: ubuntu-latest
36+
python-version: "3.11"
37+
dependencies: "min"
38+
39+
env:
40+
DEPENDS: ${{ matrix.dependencies }}
41+
42+
steps:
43+
- uses: actions/checkout@v6
44+
with:
45+
fetch-depth: 0
46+
47+
- name: Install the latest version of uv
48+
uses: astral-sh/setup-uv@v7
49+
50+
- name: Set up Python ${{ matrix.python-version }}
51+
uses: actions/setup-python@v6
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
55+
- name: Display Python version
56+
run: python -c "import sys; print(sys.version)"
57+
58+
- name: Install tox
59+
run: |
60+
uv tool install --with=tox-uv --with=tox-gh-actions tox
61+
62+
- name: Show tox config
63+
run: tox c
64+
65+
- name: Run tox
66+
run: tox -v --exit-and-dump-after 1200
67+
68+
- uses: codecov/codecov-action@v5
69+
with:
70+
token: ${{ secrets.CODECOV_TOKEN }}
71+
if: ${{ always() }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ dmypy.json
133133

134134
# vscode:
135135
.vscode/**/*
136-
modelarrayio/__about__.py
136+
src/modelarrayio/__about__.py

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
- repo: https://github.com/astral-sh/ruff-pre-commit
10+
rev: v0.9.0
11+
hooks:
12+
- id: ruff
13+
args: [--fix]
14+
files: ^(src/modelarrayio|test)/
15+
- id: ruff-format
16+
files: ^(src/modelarrayio|test)/

.readthedocs.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
3+
sphinx:
4+
configuration: docs/conf.py
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.11"
10+
jobs:
11+
post_checkout:
12+
- git fetch --unshallow
13+
14+
python:
15+
install:
16+
- method: pip
17+
path: .
18+
extra_requirements:
19+
- doc

0 commit comments

Comments
 (0)