Commit graph

17 commits

Author SHA1 Message Date
Dpeta
370685f6b3
Remove AttrDict and enable pylint typecheck message category.
The AttrDict class had Python 2 leftovers which the linter flagged and isn't really necessary anyway, plus it wasn't licensed under the GPL.
2023-02-15 16:34:48 +01:00
Dpeta
076735cbb0
Add pylint workflow 2023-02-13 02:46:31 +01:00
Dpeta
7e782fd5b2
Run lints through black 2023-02-13 01:34:13 +01:00
Dpeta
c1dd4bd23c
Fix remaining pylint errors. (and disable a few sillies...) 2023-02-13 01:21:14 +01:00
Dpeta
f3cacb849b
Updated black run 2023-02-09 20:52:26 +01:00
Dpeta
5b6d5d153f
Run all scripts through "pyupgrade --py38-plus" 2023-01-14 23:02:08 +01:00
Dpeta
d62222d6cd Partial build process rewrite.
- Removes files for package building to avoid PyInstaller package beviour.
 - Removed __main__.py and run_as_subprocess.py for now, calling Python from path is not an acceptable way to mitigate the relative import issue.
 - Renamed pyinstaller.py to pyinst.py to avoid the script being executed when "python -m PyInstaller" is ran.
 - Adds Python 3.8 compatible command-line options to pyinst.py
2022-10-29 21:49:35 +02:00
MiguelX413
a51e4dd69e
Reformat codebase (#97)
* Reformat codebase with black

* Create black.yml and add black style badge to README.md
2022-10-07 22:51:40 +02:00
Dpeta
082c0c9c2b 🧹🪣 Mostly pyflakes recommendations. 2022-04-11 05:57:13 +02:00
Dpeta
475b849049 1/9 2021-03-23 22:36:43 +01:00
karxi
1cf0926e9f Minor source cleanup, pending rewrites 2017-01-02 13:49:54 -05:00
karxi
22c5354bc6 AttrDict/DefAttrDict rewrite/bugfixing
The logic for both of these has been corrected; neither will try to
handle reserved or preexisting attributes as though they should be part
of their dicts.
These can still be set manually, but it makes things much safer.
New attributes have to come from the class or local __dict__ modifications.
2017-01-01 20:24:34 -05:00
karxi
02019c7dc5 Adjustments/retabbing for attrdict.py
Redid some of the logic behind AttrDict. It now raises AttributeError
when necessary, instead of giving the incorrect KeyError response.

This has restored compatibility with copy.deepcopy().
2016-12-30 20:59:47 -05:00
karxi
daeaa74f61 Allowed lexer to use shorter hex codes for colors; shouldn't break compatibility 2016-12-09 04:46:30 -05:00
karxi
c019e45c7a Lexer modifications. Still not quite ready for primetime - incoming messages use the old one. 2016-12-06 20:04:19 -05:00
karxi
3a48cf204b General cleanup. Stopped using older 'except Error, var' syntax. 2016-11-29 15:20:41 -05:00
karxi
876e06f217 Merged in some new lexer code. Older code will be phased out over time.
This code should split things more neatly than the current Pesterchum
code, thus fixing a number of irritating bugs. Ideally, when finished,
it will be easier and cleaner to work with as well.
2016-11-18 03:37:22 -05:00