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

Ignore: make linters angry #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions vcs-diff-lint
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@

path = os.getcwd()
while True:
log.info("checking for projectdir: %s", path)
log.info("checking for projectdir: {}".format(path))

Check warning

Code scanning / vcs-diff-lint

_Worker._analyze_projectdir: Use lazy % formatting in logging functions Warning

_Worker._analyze_projectdir: Use lazy % formatting in logging functions

Check warning

Code scanning / vcs-diff-lint

_Worker._analyze_projectdir: Formatting a regular string which could be an f-string Warning

_Worker._analyze_projectdir: Formatting a regular string which could be an f-string
if os.path.realpath(path) == '/':
raise Exception("project dir not found")
if os.path.exists(os.path.join(path, '.git')):
Expand All @@ -302,7 +302,7 @@
self.projectdir = '.'
self.projectsubdir = '.'
return
if glob.glob(os.path.join(path, '*.spec')):
if path.endswith('.spec'):
rel_projdir(path)
return
if os.path.exists(os.path.join(path, ".vcs-diff-lint.yml")):
Expand Down