Skip to content

Commit ede93eb

Browse files
committed
Administrivia ...
Add usual set of checking tools Remove TravisCI config Fold README2.rst into README
1 parent 043c88a commit ede93eb

File tree

8 files changed

+128
-22
lines changed

8 files changed

+128
-22
lines changed

.editorconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This is an EditorConfig file
2+
# https://EditorConfig.org
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
charset = utf-8
9+
indent_size = 4
10+
insert_final_newline = true
11+
12+
[*.yml]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.py]
17+
indent_style = space
18+
19+
# Tab indentation (no size specified)
20+
[Makefile]
21+
indent_style = tab
22+
23+
# # Ignore paths
24+
# [pytest/testdata/**]
25+
# charset = unset
26+
# end_of_line = unset
27+
# insert_final_newline = unset
28+
# trim_trailing_whitespace = unset
29+
# indent_style = unset
30+
# indent_size = unset

.isort.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[settings]
2+
multi_line_output = 3
3+
include_trailing_comma = True
4+
force_grid_wrap = 0
5+
use_parentheses = True
6+
line_length = 88
7+
known_crunch = cr, zz9d, zz9lib, pycrunch, silhouette
8+
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,CRUNCH,LOCALFOLDER
9+
default_section = THIRDPARTY
10+
combine_as_imports = 1
11+
profile = black

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
default_language_version:
2+
python: python
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.0.1
6+
hooks:
7+
- id: check-merge-conflict
8+
- id: debug-statements
9+
stages: [commit]
10+
- id: end-of-file-fixer
11+
exclude: '^pytest/testdata'
12+
stages: [commit]
13+
- repo: https://github.com/pycqa/isort
14+
rev: 5.13.2
15+
hooks:
16+
- id: isort
17+
stages: [commit]
18+
- repo: https://github.com/psf/black
19+
rev: 23.12.1
20+
hooks:
21+
- id: black
22+
language_version: python3
23+
stages: [commit]
24+
exclude: 'trepan/version.py'

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

NEW-FEATURES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ over 600 rules for each of the 13 or so versions of Python.
6262
It is very easy to create nonsensical grammar rules, so we need to
6363
have a way to check the grammar. Particularly useful is the ability to
6464
find unused left-hand-side nonterminals that are not either the start
65-
symbol or used on the right-hand side. Likewise, the code has the abitly
65+
symbol or used on the right-hand side. Likewise, the code has the abitly
6666
to report unused nonterminals (lower-case symbols) that appear on the right-hand
6767
side that are not defined as a rule. Of course, tokens or upper-case symbols are ok.
6868

@@ -211,7 +211,7 @@ Removing Grammar Rules
211211
======================
212212

213213
This may sound like a weird thing to want. But in a program like
214-
`uncompyle6 <https://pypi.python.org/pypi/uncompyle6/>_ where there is
214+
`uncompyle6 <https://pypi.python.org/pypi/uncompyle6/>`_ where there is
215215
a lot of grammar sharing via inheritance sometimes the grammar
216216
inherited is too large. This gives me a way to prune the grammar back
217217
down.

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ Example
6767

6868
The github `example directory <https://github.com/rocky/python-spark/tree/master/example>`_ has worked-out examples; The PyPI package uncompyle6_ uses this and contains a much larger example.
6969

70+
Support of older versions of Python
71+
-----------------------------------
72+
73+
We support running this from older versions of Python in various git branches:
74+
75+
* ``python-2.4-to-2.7`` has code for Python 2.4 to 2.7
76+
* ``python-3.0-to-3.2`` has code for Python 3.0 to 3.2
77+
* ``python-3.3-to-3.5`` has code for Python 3.3 to 3.5
78+
* ``python-3.6-to-3.10`` has code for Python 3.6 to 3.10
79+
* ``master`` has code for Python 3.11 to the current version of Python
80+
81+
7082
See Also
7183
--------
7284

README2.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.cfg

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[bdist_rpm]
2+
release = 0
3+
packager = rocky <rb@dustyfeet.com
4+
doc_files = README.rst
5+
ChangeLog
6+
COPYING
7+
DECOMPYLE-2.4-CHANGELOG.txt
8+
HISTORY.md
9+
HOW-TO_REPORT-A-BUG.md
10+
NEWS.md
11+
# doc/
12+
# examples/
13+
14+
[bdist_wheel]
15+
# We want only Python3, not Python2
16+
universal = no
17+
18+
[metadata]
19+
description_file = README.rst
20+
licences_files = COPYING
21+
22+
[flake8]
23+
# max-line-length setting: NO we do not want everyone writing 120-character lines!
24+
# We are setting the maximum line length big here because there are longer
25+
# lines allowed by black in some cases that are forbidden by flake8. Since
26+
# black has the final say about code formatting issues, this setting is here to
27+
# make sure that flake8 doesn't fail the build on longer lines allowed by
28+
# black.
29+
max-line-length = 120
30+
max-complexity = 12
31+
select = E,F,W,C,B,B9
32+
ignore =
33+
# E123 closing bracket does not match indentation of opening bracket's line
34+
E123
35+
# E203 whitespace before ':' (Not PEP8 compliant, Python Black)
36+
E203
37+
# E501 line too long (82 > 79 characters) (replaced by B950 from flake8-bugbear,
38+
# https://github.com/PyCQA/flake8-bugbear)
39+
E501
40+
# W503 line break before binary operator (Not PEP8 compliant, Python Black)
41+
W503
42+
# W504 line break after binary operator (Not PEP8 compliant, Python Black)
43+
W504
44+
# C901 function too complex - since many of zz9 functions are too complex with a lot
45+
# of if branching
46+
C901
47+
# module level import not at top of file. This is too restrictive. Can't even have a
48+
# docstring higher.
49+
E402

0 commit comments

Comments
 (0)