Flake8-custom-import-rules

Latest version: v1.1.6

Safety actively analyzes 723144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 7

0.8.0

Feat

- **checker**: added support for restricted imports (69)
- **restricted-imports**: added restricted import visitor and utility functions (68)

Fix

- **rules-checker**: fix typing in restricted identifiers (72)
- **file-utils**: return none if file does not exist (71)
- add parsing for import restrictions (67)

Refactor

- **rules-checker**: remove extraneous code to make more efficient (74)
- **rules-checker**: refactoring to minimize the number of calls (73)
- **file-utils**: move file util functions to own module (70)
- update parsing tests and plugin (66)
- **import-rules**: update custom import rules to use closure (65)
- cleaned up functions and improved method names (64)

0.7.1

Refactor

- cleaned up functions and improved method names

0.7.0

Feat

- **standalone-modules**: add test cases (62)
- **parse-utils**: add module to filename helpers (61)
- **project-imports**: added support for non-base and non-first party (60)
- **first-party**: updated first party to include base package (59)
- **future**: add support for restricting __future__ imports (58)
- **error-codes**: updated error code messages (57)
- **third-party**: added support for third party only imports (56)
- **imports**: update imports to straight imports (55)
- **import-rules**: implement std lib import restrictions (54)
- **parse-utils**: add file conversion utils (53)
- **checker**: update checkers and parsers (52)
- **registry**: remove old registry options (50)
- **flake8-linter**: add register options (49)
- **dynamic**: add custom import rules to default settings (48)
- **import-rules**: add handling for dynamic string syntax errors (47)
- added support for standard lib packages (45)
- **dynamic**: added dynamic string visitor to capture dynamic string… (44)

Refactor

- update support for noqa (51)
- **error-codes**: update error code messages (46)

0.6.0

Feat

- **dynamic**: added support for dynamic imports and fixed numerous tests (42)

Refactor

- **nodes**: moved parsed nodes to their own file (43)

0.5.0

Refactor

- **import-rules**: add restrictions for main imports (39)
- **import-rules**: add private import restrictions (38)

0.4.5

Refactor

- **import-rules**: implement local import restrictions (37)
- **import-rules**: add aliased import restrictions (36)
- **import-rules**: add conditional import restrictions (35)

Page 5 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.