diff --git a/.cruft.json b/.cruft.json index 9e5b6ee..ae1abe3 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/iterative/py-template", - "commit": "7e84a4db09bcce97c8c206eb644c409f8ed7b565", + "commit": "84a385c99003c39632dfe985bf0ca4ed08235f36", "checkout": null, "context": { "cookiecutter": { @@ -15,7 +15,7 @@ "license": "Apache-2.0", "docs": "False", "short_description": "Common library for sending telemetry", - "development_status": "Development Status :: 1 - Planning", + "development_status": "Development Status :: 4 - Beta", "_template": "https://github.com/iterative/py-template" } }, diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0562fcf..41de9c6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,6 +22,9 @@ jobs: matrix: os: [ubuntu-20.04, windows-latest, macos-latest] pyv: ['3.8', '3.9', '3.10'] + include: + - {os: ubuntu-latest, pyv: 'pypy3.8'} + - {os: ubuntu-latest, pyv: '3.11.0-rc - 3.11', nox_pyv: '3.11'} steps: - name: Check out the repository @@ -41,10 +44,11 @@ jobs: nox --version - name: Lint code and check dependencies + continue-on-error: ${{ matrix.nox_pyv == '3.11' }} run: nox -s lint safety - name: Run tests - run: nox -s tests-${{ matrix.pyv }} -- --cov-report=xml + run: nox -s tests-${{ matrix.nox_pyv || matrix.pyv }} -- --cov-report=xml - name: Upload coverage report uses: codecov/codecov-action@v3.1.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 936b5e1..bdb47f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,45 +2,45 @@ default_language_version: python: python3 repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.6.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.3.0 hooks: - id: check-added-large-files - id: check-case-conflict - id: check-docstring-first - id: check-executables-have-shebangs - - id: check-toml + - id: check-json - id: check-merge-conflict + - id: check-toml - id: check-yaml - id: debug-statements - id: end-of-file-fixer - id: mixed-line-ending + args: ['--fix=lf'] - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.1.0 + rev: v2.2.1 hooks: - id: codespell - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v2.37.3 hooks: - id: pyupgrade - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: - id: isort - - repo: https://github.com/pycqa/flake8 - rev: 4.0.1 + - repo: https://gitlab.com/pycqa/flake8 + rev: 5.0.4 hooks: - id: flake8 additional_dependencies: - - flake8-bandit - - flake8-broken-line - - flake8-bugbear - - flake8-comprehensions - - flake8-debugger - - flake8-string-format - - bandit<1.7.3 + - flake8-broken-line==0.5.0 + - flake8-bugbear==22.8.23 + - flake8-comprehensions==3.10.0 + - flake8-debugger==4.1.2 + - flake8-string-format==0.3.0 diff --git a/noxfile.py b/noxfile.py index 72f756c..820e12c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -9,7 +9,7 @@ locations = "src", "tests" -@nox.session(python=["3.8", "3.9", "3.10"]) +@nox.session(python=["3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"]) def tests(session: nox.Session) -> None: session.install(".[tests]") session.run( diff --git a/setup.cfg b/setup.cfg index ae7d066..c8feb78 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,6 +14,7 @@ classifiers = Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 Development Status :: 4 - Beta [options]