-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: register_with -> static __register__ export
- Loading branch information
1 parent
fca1779
commit 97f28e8
Showing
126 changed files
with
492 additions
and
808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""Airlinese.""" | ||
|
||
from proselint.checks.airlinese.misc import register_with | ||
from proselint.checks.airlinese.misc import __register__ | ||
|
||
__all__ = ["register_with"] | ||
__all__ = ["__register__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""Annotations.""" | ||
|
||
from proselint.checks.annotations.misc import register_with | ||
from proselint.checks.annotations.misc import __register__ | ||
|
||
__all__ = ["register_with"] | ||
__all__ = ["__register__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""Archaism.""" | ||
|
||
from proselint.checks.archaism.misc import register_with | ||
from proselint.checks.archaism.misc import __register__ | ||
|
||
__all__ = ["register_with"] | ||
__all__ = ["__register__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
"""Avoid cliches.""" | ||
|
||
from proselint.checks import CheckRegistry | ||
from proselint.checks.cliches.hell import register_with as register_hell | ||
from proselint.checks.cliches.misc import register_with as register_misc | ||
from proselint.checks.cliches.hell import __register__ as register_hell | ||
from proselint.checks.cliches.misc import __register__ as register_misc | ||
|
||
|
||
def register_with(registry: CheckRegistry) -> None: | ||
"""Register the checks.""" | ||
register_hell(registry) | ||
register_misc(registry) | ||
__register__ = (*register_hell, *register_misc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
"""Various consistency checks.""" | ||
|
||
from proselint.checks import CheckRegistry | ||
from proselint.checks.consistency.spacing import ( | ||
register_with as register_spacing, | ||
__register__ as register_spacing, | ||
) | ||
from proselint.checks.consistency.spelling import ( | ||
register_with as register_spelling, | ||
__register__ as register_spelling, | ||
) | ||
|
||
|
||
def register_with(registry: CheckRegistry) -> None: | ||
"""Register the checks.""" | ||
register_spacing(registry) | ||
register_spelling(registry) | ||
__register__ = (*register_spacing, *register_spelling) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""Corporate-speak.""" | ||
|
||
from proselint.checks.corporate_speak.misc import register_with | ||
from proselint.checks.corporate_speak.misc import __register__ | ||
|
||
__all__ = ["register_with"] | ||
__all__ = ["__register__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
"""Cursing.""" | ||
|
||
from proselint.checks import CheckRegistry | ||
from proselint.checks.cursing.filth import register_with as register_filth | ||
from proselint.checks.cursing.nfl import register_with as register_nfl | ||
from proselint.checks.cursing.nword import register_with as register_nword | ||
from proselint.checks.cursing.filth import __register__ as register_filth | ||
from proselint.checks.cursing.nfl import __register__ as register_nfl | ||
from proselint.checks.cursing.nword import __register__ as register_nword | ||
|
||
|
||
def register_with(registry: CheckRegistry) -> None: | ||
"""Register the checks.""" | ||
register_filth(registry) | ||
register_nfl(registry) | ||
register_nword(registry) | ||
__register__ = ( | ||
*register_filth, | ||
*register_nfl, | ||
*register_nword, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
"""Dates and times.""" | ||
|
||
from proselint.checks import CheckRegistry | ||
from proselint.checks.dates_times.am_pm import register_with as register_am_pm | ||
from proselint.checks.dates_times.am_pm import register_with as register_dates | ||
from proselint.checks.dates_times.am_pm import __register__ as register_am_pm | ||
from proselint.checks.dates_times.am_pm import __register__ as register_dates | ||
|
||
|
||
def register_with(registry: CheckRegistry) -> None: | ||
"""Register the checks.""" | ||
register_am_pm(registry) | ||
register_dates(registry) | ||
__register__ = ( | ||
*register_am_pm, | ||
*register_dates, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.