Skip to content

Commit

Permalink
Replace pylint+flake8 etc with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
aaliddell committed Nov 24, 2023
1 parent c127caa commit ddcb0c4
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 579 deletions.
20 changes: 0 additions & 20 deletions .flake8

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [3.9, '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
Expand All @@ -40,9 +40,5 @@ jobs:
python-version: '3.11'
- name: Install nox
run: pip install nox
- name: Run flake8
run: nox -s flake8
- name: Run pylint
run: nox -s pylint
- name: Run pydocstyle
run: nox -s pydocstyle
- name: Run Ruff
run: nox -s ruff
18 changes: 4 additions & 14 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

nox.options.error_on_external_run = True
nox.options.reuse_existing_virtualenvs = True
nox.options.sessions = ['coverage', 'docs', 'flake8', 'pylint', 'pydocstyle']
nox.options.sessions = ['coverage', 'docs', 'ruff']


@nox.session()
Expand All @@ -15,19 +15,9 @@ def coverage(session):
)

@nox.session()
def flake8(session):
session.install('-e', '.[dev]')
session.run('flake8', 's2cell', 'tests', *session.posargs)

@nox.session()
def pylint(session):
session.install('-e', '.[dev]')
session.run('pylint', 's2cell', *session.posargs)

@nox.session()
def pydocstyle(session):
session.install('-e', '.[dev]')
session.run('pydocstyle', 's2cell', *session.posargs)
def ruff(session):
session.install('.[dev]')
session.run('ruff', 'check', 's2cell', 'tests', *session.posargs)

@nox.session()
def test(session):
Expand Down
Loading

0 comments on commit ddcb0c4

Please sign in to comment.