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

fix: edit presubmit for to simplify configuration #1915

Merged
merged 18 commits into from
May 15, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove timed decorators
  • Loading branch information
chalmerlowe committed May 13, 2024
commit e7a10f4c32c4865ee50ea6e2c97f56331ac0c570
14 changes: 0 additions & 14 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,13 @@ def default(session, install_extras=True):


@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
@timed
def unit(session):
"""Run the unit test suite."""

default(session)


@nox.session(python=[UNIT_TEST_PYTHON_VERSIONS[0], UNIT_TEST_PYTHON_VERSIONS[-1]])
@timed
def unit_noextras(session):
"""Run the unit test suite."""

Expand All @@ -134,7 +132,6 @@ def unit_noextras(session):


@nox.session(python=DEFAULT_PYTHON_VERSION)
@timed
def mypy(session):
"""Run type checks with mypy."""

Expand All @@ -153,7 +150,6 @@ def mypy(session):


@nox.session(python=DEFAULT_PYTHON_VERSION)
@timed
def pytype(session):
"""Run type checks with pytype."""
# An indirect dependecy attrs==21.1.0 breaks the check, and installing a less
Expand All @@ -168,7 +164,6 @@ def pytype(session):


@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
@timed
def system(session):
"""Run the system test suite."""

Expand Down Expand Up @@ -221,7 +216,6 @@ def system(session):


@nox.session(python=DEFAULT_PYTHON_VERSION)
@timed
def mypy_samples(session):
"""Run type checks with mypy."""

Expand Down Expand Up @@ -257,7 +251,6 @@ def mypy_samples(session):


@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
@timed
def snippets(session):
"""Run the snippets test suite."""

Expand Down Expand Up @@ -297,7 +290,6 @@ def snippets(session):


@nox.session(python=DEFAULT_PYTHON_VERSION)
@timed
def cover(session):
"""Run the final coverage report.

Expand All @@ -311,7 +303,6 @@ def cover(session):


@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
@timed
def prerelease_deps(session):
"""Run all tests with prerelease versions of dependencies installed.

Expand Down Expand Up @@ -402,7 +393,6 @@ def prerelease_deps(session):


@nox.session(python=DEFAULT_PYTHON_VERSION)
@timed
def lint(session):
"""Run linters.

Expand All @@ -421,7 +411,6 @@ def lint(session):


@nox.session(python=DEFAULT_PYTHON_VERSION)
@timed
def lint_setup_py(session):
"""Verify that setup.py is valid (including RST check)."""

Expand All @@ -430,7 +419,6 @@ def lint_setup_py(session):


@nox.session(python=DEFAULT_PYTHON_VERSION)
@timed
def blacken(session):
"""Run black.
Format code to uniform standard.
Expand All @@ -441,7 +429,6 @@ def blacken(session):


@nox.session(python="3.9")
@timed
def docs(session):
"""Build the docs."""

Expand Down Expand Up @@ -478,7 +465,6 @@ def docs(session):


@nox.session(python="3.10")
@timed
def docfx(session):
"""Build the docfx yaml files for this library."""

Expand Down