Any filing fees connected with any civil action to be heard in any of the courts of the judicial system as listed in section 27-01-01 may be waived with or without a hearing, at the court’s discretion, by the filing of an in forma pauperis petition accompanied by a sworn affidavit of the petitioner relating the pertinent information regarding indigency.