Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	.flake8
#	pyproject.toml
#	setup.cfg
  • Loading branch information
jaraco committed May 11, 2023
2 parents b010f52 + d2ec047 commit fca6d74
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 35 deletions.
16 changes: 0 additions & 16 deletions .flake8

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read

env:
# Environment variables to support color support (jaraco/skeleton#66):
# Request colored output from CLI tools supporting it. Different tools
Expand Down Expand Up @@ -228,6 +231,8 @@ jobs:
run: tox -e integration

release:
permissions:
contents: write
needs:
- check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand Down
2 changes: 0 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Copyright Jason R. Coombs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ skip-string-normalization = true
[tool.pytest-enabler.mypy]
#addopts = "--mypy"

[tool.pytest-enabler.flake8]
addopts = "--flake8"

[tool.pytest-enabler.cov]
addopts = "--cov"

[tool.pytest-enabler.ruff]
addopts = "--ruff"

[tool.pytest-enabler.xdist]
addopts = "-n auto"

Expand Down
8 changes: 0 additions & 8 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,11 @@ filterwarnings=
# Ensure ResourceWarnings are emitted
default::ResourceWarning

# Suppress deprecation warning in flake8
ignore:SelectableGroups dict interface is deprecated::flake8

# shopkeep/pytest-black#55
ignore:<class 'pytest_black.BlackItem'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
ignore:The \(fspath. py.path.local\) argument to BlackItem is deprecated.:pytest.PytestDeprecationWarning
ignore:BlackItem is an Item subclass and should not be a collector:pytest.PytestWarning

# tholo/pytest-flake8#83
ignore:<class 'pytest_flake8.Flake8Item'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
ignore:The \(fspath. py.path.local\) argument to Flake8Item is deprecated.:pytest.PytestDeprecationWarning
ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning

# shopkeep/pytest-black#67
ignore:'encoding' argument not specified::pytest_black

Expand Down
8 changes: 2 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ testing =
# upstream
pytest >= 6
pytest-checkdocs >= 2.4
pytest-flake8; \
# workaround for tholo/pytest-flake8#87
python_version < "3.12"
# workaround for tholo/pytest-flake8#87
flake8 < 5
pytest-black >= 0.3.7; \
# workaround for jaraco/skeleton#22
python_implementation != "PyPy"
Expand All @@ -58,7 +53,7 @@ testing =
# workaround for jaraco/skeleton#22
python_implementation != "PyPy"
pytest-enabler >= 1.3
pytest-perf
pytest-ruff

# local
flake8-2020
Expand All @@ -74,6 +69,7 @@ testing =
ini2toml[lite]>=0.9
tomli-w>=1.0.0
pytest-timeout
pytest-perf

testing-integration =
pytest
Expand Down

0 comments on commit fca6d74

Please sign in to comment.