Instagram / Instagram/Fixit

Option for excluding files

Open
#365 4 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
714
Forks
72
PR merge metrics
No merged PRs in 30d

Description

Hello! First of all, congrats on the v2 release. Really excited about the project!

Is there currently any way to exclude certain files from being processed?
We have a bunch of auto-generated Alembic migration files,
that we have no intention of fixing/linting.

The closest I saw to this feature is #354,
but I wouldn't want to edit those files in any way
(i.e. add a marker on top).

Instead I'd prefer to pass a glob string as an option
(either in CLI or in config file -
e.g. `--exclude '**/alembic/versions/**'`)
to either `lint` or `fix` commands.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the lint and fix command entry points and their CLI/configuration option handling. Done means a glob such as '**/alembic/versions/**' can be supplied through the CLI or configuration and matching files are skipped without requiring edits to those files.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.