-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyleft.cabal
More file actions
83 lines (77 loc) · 2.28 KB
/
pyleft.cabal
File metadata and controls
83 lines (77 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
cabal-version: 3.0
name: pyleft
version: 0.1.0.0
license: BSD-3-Clause
license-file: LICENSE
author: Ziad Elshahawy
maintainer: ziadelshahawygit@gmail.com
build-type: Simple
extra-doc-files: CHANGELOG.md
extra-source-files: scripts/dump_ast_json.py
category: Development, Lint
synopsis:
A Python linter written in Haskell using AST-based static analysis
description:
Pyleft is a Python linter written in Haskell. It parses Python source files
into an AST, applies rule-based static analysis, and reports diagnostics with
file and source location information. It supports recursive directory linting,
optional TOML configuration via pyleft.toml, and configurable severity levels.
common warnings
ghc-options: -Wall
library
import: warnings
hs-source-dirs: src
exposed-modules:
Pyleft.Driver.Run
Pyleft.Lint.Types
other-modules:
Pyleft.Frontend.Parse
Pyleft.Report.Format
Pyleft.Rules.MakeDiag
Pyleft.Rules.BareExcept
Pyleft.Rules.MutableDefaults
Pyleft.Rules.WildcardImport
Pyleft.Rules.UnusedImports
Pyleft.Rules.UnusedLocals
Pyleft.Rules.ShadowBuiltins
Pyleft.Lint.Scope
Pyleft.Lint.Registry
Pyleft.Driver.Discover
Pyleft.CLI.Options
Pyleft.Lint.Config
build-depends:
base ^>=4.18.3.0
, aeson >=2.1 && <2.3
, bytestring >=0.11 && <0.13
, text >=2.0 && <2.2
, filepath >=1.4 && <1.6
, process >=1.6 && <1.7
, directory >=1.3 && <1.4
, vector >=0.13 && <0.14
, containers >=0.6 && <0.8
, optparse-applicative >=0.18 && <0.20
, toml-reader ^>=0.3.0.0
, async >=2.2 && <2.3
default-language: GHC2021
executable pyleft
import: warnings
hs-source-dirs: app
main-is: Main.hs
build-depends:
base ^>=4.18.3.0
, pyleft
default-language: GHC2021
test-suite pyleft-test
import: warnings
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
base ^>=4.18.3.0
, pyleft
, directory >=1.3 && <1.4
, filepath >=1.4 && <1.6
default-language: GHC2021
source-repository head
type: git
location: https://github.com/zelshahawy/pyleft.git