Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions & Dev Tools Cleanup + Python 3.11 Support #1009

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig is awesome: https://EditorConfig.org

root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
charset = utf-8
indent_style = space
indent_size = 4
max_line_length = 100

[*.yml]
indent_style = space
indent_size = 2

[*.md]
charset = utf-8
max_line_length = 120
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/test-linux-windows.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/test-pytest-flake-black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Pytest, Flake8, Black

on:
pull_request:
paths:
- .github/workflows/test-pytest-flake-black.yml
- "requirements*.txt"
- "**.py"
- setup.py
- pytest.ini
push:
paths:
- .github/workflows/test-pytest-flake-black.yml
- "requirements*.txt"
- "**.py"
- setup.py
- pytest.ini

env:
TESTING: 1

jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
limited-dependencies: ['', 'TRUE']
os: [ubuntu-latest] # add in windows-latest to add windows testing
include:
- os: macos-latest
python-version: '3.8'
- os: macos-latest
python-version: '3.8'
limited-dependencies: TRUE
- os: macos-latest
python-version: '3.11'
- os: macos-latest
python-version: '3.11'
limited-dependencies: TRUE

runs-on: ${{ matrix.os }}

steps:

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Install uv
run: |
pip install -U uv

- name: Install dependencies
env:
PARSONS_LIMITED_DEPENDENCIES: ${{ matrix.limited-dependencies }}
run: |
uv pip install --system -U pip
uv pip install --system -e .[all]
uv pip install --system -r requirements-dev.txt

- name: Run tests
run: pytest

# E203 and W503 don't work well with black
- name: check linting
run: |
flake8 parsons/ test/ useful_resources/
black --check parsons/ test/ useful_resources/
46 changes: 0 additions & 46 deletions .github/workflows/tests-mac.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
repos:
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
language_version: python3
args: [
'--extend-ignore=E203,W503',
'--max-line-length=100'
]
'parsons/ test/ useful_resources/',
]
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.2.0
hooks:
- id: black
language_version: python3
Loading