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

Ruff lint #66

Merged
merged 7 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Check Formatting"

permissions: read-all

on:
push:
pull_request:

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- name: "Check Ruff lints"
run: nix run 'nixpkgs#ruff' -- check . --output-format=github
34 changes: 29 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ version = "1.2.2"
description = "WeTest allows you to test EPICS modules"
license = "EPICS"
authors = [
"Francis GOHIER <[email protected]>",
"Katy SAINTIN <[email protected]>",
"Rémi NICOLE <[email protected]>",
"Victor NADOT <[email protected]>",
"Francis GOHIER <[email protected]>",
"Katy SAINTIN <[email protected]>",
"Rémi NICOLE <[email protected]>",
"Victor NADOT <[email protected]>",
]
readme = "README.md"
repository = "https://github.com/epics-extensions/WeTest"
keywords = ["epics", "testing"]
classifiers=["Development Status :: 3 - Alpha"]
classifiers = ["Development Status :: 3 - Alpha"]

[tool.poetry.scripts]
wetest = "wetest.command_line:main"
Expand All @@ -29,3 +29,27 @@ numpy = "^1.19.5, <1.20.0"
pyepics = "^3.5.1"
pykwalify = "^1.8.0"
reportlab = "^3.6.8"

[tool.ruff]
select = ["ALL"]
ignore = [
# Disable type annotations for now, it would lead to too many warnings
"ANN",
# Leave doc comments for later,
# as lots of functions needs to be renamed as private
"D",
# Also leave pathlib for later
"PTH",

# one-blank-line-before-class
"D203",
# multi-line-summary-second-line
"D213",

# For the formatter:

# missing-trailing-comma
"COM812",
# single-line-implicit-string-concatenation
"ISC001",
]
Loading