Skip to content

Commit

Permalink
Merge pull request #284 from hugovk/update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 19, 2024
2 parents 4095810 + cd0b0a9 commit 6498a57
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .coveragerc
Expand Up @@ -2,10 +2,7 @@

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma:
pragma: no cover

exclude_also =
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Expand Up @@ -2,6 +2,9 @@ name: Lint

on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 1

permissions:
contents: read

Expand All @@ -14,4 +17,5 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: pre-commit/action@v3.0.0
cache: pip
- uses: pre-commit/action@v3.0.1
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Expand Up @@ -29,6 +29,6 @@ jobs:
runs-on: ubuntu-latest
steps:
# Drafts your next release notes as pull requests are merged into "main"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/require-pr-label.yml
Expand Up @@ -10,6 +10,7 @@ jobs:

permissions:
issues: write
pull-requests: write

steps:
- uses: mheap/github-action-required-labels@v5
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
rev: v0.2.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
args: [--exit-non-zero-on-fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
rev: 24.2.0
hooks:
- id: black

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -51,6 +51,9 @@ version.source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[tool.ruff]
fix = true

[tool.ruff.lint]
select = [
"C4", # flake8-comprehensions
Expand Down

0 comments on commit 6498a57

Please sign in to comment.