Skip to content
Merged
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
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

17 changes: 5 additions & 12 deletions .github/workflows/on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.13
uses: actions/setup-python@v4
- name: Install ruff and apply 'ruff check'
uses: astral-sh/ruff-action@v3
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: 'requirements/style.txt'
- name: Install dependencies
run: python -m pip install -r requirements/style.txt
- name: Run style checks
run: |
python -m flake8 .
python -m isort --check --diff .
python -m black --check --diff .
version: 'latest'
- name: Check for formatting changes
run: ruff format --check --diff
10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ dynamic = ['version']
[project.urls]
source = 'https://github.com/mdickinson/simplefractions'

[tool.black]
target-version = ['py38']

[tool.isort]
profile = 'black'
order_by_type = 'False'

[tool.mypy]
strict = true

[tool.ruff.lint]
extend-select = ["I"]

[tool.setuptools_scm]
version_scheme = 'release-branch-semver'
3 changes: 0 additions & 3 deletions requirements/style.txt

This file was deleted.